Optional Project 4: Make Change
Optional Project 4: The variable 'change' has been initialized to be a value between 0 and 100. There is also a working method called floor.
floor(a) returns the value of a rounded down to the integer that is less than or equal to a.
Example:
floor(3.7) returns 3
floor(22.2) returns 22
Task: Appropriately initialize the values of 'quarters', 'dimes', 'nickels', and 'pennies' that would make the change using the most amount of large coins first.
Example: 79 cents: 3 quarters, 0 dimes, 0 nickels, 4 pennies
Example 49 cents: 1 quarter, 2 dimes, 0 nickels, 4 pennies
**If your code works for 5 test cases, you can enter your e-mail address
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0