From 4c084f6f4bfc46352a449b04246588e369593e32 Mon Sep 17 00:00:00 2001 From: marsmccrann04 <48620387+marsmccrann04@users.noreply.github.com> Date: Wed, 23 Oct 2019 00:37:56 +0800 Subject: [PATCH] Create Dollars-To-Cents-App.md --- Projects/1-Beginner/Dollars-To-Cents-App.md | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Projects/1-Beginner/Dollars-To-Cents-App.md diff --git a/Projects/1-Beginner/Dollars-To-Cents-App.md b/Projects/1-Beginner/Dollars-To-Cents-App.md new file mode 100644 index 00000000..f5de105d --- /dev/null +++ b/Projects/1-Beginner/Dollars-To-Cents-App.md @@ -0,0 +1,29 @@ +# Dollars To Cents + +**Tier:** 1-Beginner + +Converting dollars to cents would enable you to practice your fundamental knowledge of programming. Loops, if conditions and a simple algorithm will be used. +Your task is to let the user input a dollar value (float), assuming that it can also accept extra cents (ex. $2.75), and convert it into an integer (in this case, if $2.75 = 275). After this, convert into coins with the sub-type of dollars: penny, nickel, dime and quarter. Use an algorithm that would divide the dollar value to the four coin types, and output few coins as possible. + +The challenge: Try this without using any frameworks. + +(EX. If you have $0.58, I would have 4 coins: 2 quarters, 0 dimes, 1 nickel and 3 pennies) + +## User Stories + +- [ ] User can enter a dollar value +- [ ] User can see the total cents from the converted dollar value + +## Bonus features + +- [ ] User can see how many were pennies, nickels, quarters and dimes from the total cents + +## Useful links and resources + +- [Math functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math) +- [Loops and iterations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration) +- [Money values in JavaScript](https://timleland.com/money-in-javascript/) + +## Example projects + +N/A