Question: Must use html and javascript to determine amount of change given. Have the user input a whole number for the number of cents (this can

Must use html and javascript to determine amount of change given.

Have the user input a whole number for the number of cents (this can be larger than 100). You will determine how many quarters, dimes, nickels, and pennies based on the number entered by the user. The results are to be on separate lines with the colons lining up as shown. This is pure math. No if statements are to be used! Use modular division and integer division and subtraction.

If a new value is entered, the computations are performed again, without the need of refreshing the page!

output should look like the following:

Change Calculator

Enter amount of cash back:

quarters:

dimes:

nickels:

pennies:

An example:

Change Calculator

Enter amount of cash back: 99

quarters: 3

dimes: 2

nickels: 0

pennies: 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!