Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed #27

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions out/calls-cost.js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: calls-cost.js</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Source: calls-cost.js</h1>






<section>
<article>
<pre class="prettyprint source linenums"><code>/**
* @typedef {Object} Call
* @property {string} identifier - Call's identifier
* @property {string} type - Call's type
* @property {number} duration - Call's duration
*/

/**
* @typedef {Object} ProcessedCall
* @property {string} identifier - Call's identifier
* @property {string} type - Call's type
* @property {number} duration - Call's duration
* @property {number} callCost - Call's cost
*/

/**
* @typedef {Object} CallsResponse
* @property {number} totalCalls - Number of processed calls
* @property {number} total - Total to pay including all the processed calls
* @property {ProcessedCall[]} callsDetails - Processed information about calls
*/

/**
* Design a solution to calculate what to pay for a set of phone calls. The function must receive an
* array of objects that will contain the identifier, type and duration attributes. For the type attribute,
* the only valid values are: National, International and Local
*
* The criteria for calculating the cost of each call is as follows:
*
* International: first 3 minutes $ 7.56 -> $ 3.03 for each additional minute
* National: first 3 minutes $ 1.20 -> $ 0.48 per additional minute
* Local: $ 0.2 per minute.
*
* The function must return the total calls, the details of each call (the detail received + the cost of the call)
* and the total to pay taking into account all calls
*
* @param {Call[]} calls - Call's information to be processed
*
* @returns {CallsResponse} - Processed information
*/

function callsCost(calls) { }

module.exports = callsCost;
</code></pre>
</article>
</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#callsCost">callsCost</a></li><li><a href="global.html#fibonacci">fibonacci</a></li><li><a href="global.html#morseCode">morseCode</a></li><li><a href="global.html#peopleInformation">peopleInformation</a></li><li><a href="global.html#template">template</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Apr 20 2022 16:51:35 GMT-0500 (Peru Standard Time)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
62 changes: 62 additions & 0 deletions out/fibonacci.js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: fibonacci.js</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Source: fibonacci.js</h1>






<section>
<article>
<pre class="prettyprint source linenums"><code>/**
* Given a number, write a function that returns the "n" numbers of the fibonacci sequence
*
* @param {number} limit - Number of fibonacci numbers to be generated
*
* @returns {number[]} - Fibonacci Serie
*/

function fibonacci(limit) { }

module.exports = fibonacci;
</code></pre>
</article>
</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#callsCost">callsCost</a></li><li><a href="global.html#fibonacci">fibonacci</a></li><li><a href="global.html#morseCode">morseCode</a></li><li><a href="global.html#peopleInformation">peopleInformation</a></li><li><a href="global.html#template">template</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Apr 20 2022 16:51:35 GMT-0500 (Peru Standard Time)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
Binary file added out/fonts/OpenSans-Bold-webfont.eot
Binary file not shown.
Loading