Question: This is for my Object Oriented Programming class, I need help in creating a client class that takes int value (dollar) of the users input

This is for my Object Oriented Programming class,
I need help in creating a client class that takes int value (dollar) of the users input and converts it into change value for remaining quarters, dimes, nickels, and pennies.
I know that modulus will be of use in this program. Heres what I have as a logic so far...
users input = int
quarter = int /25
int = int % 25
dime = int / 10
int = int % 10
nickel = int / 5
int = int % 5
pennies = int
If print those value types out, they would print as expected for changes.
I need help in setting it as JavaScript.

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!