Question: This is a intro level coding class, please try not to use advanced coding so I can follow the work: Use opening documentation, document the

This is a intro level coding class, please try not to use advanced coding so I can follow the work: Use opening documentation, document the body of the code and add your name as the last output. Create a program that computes and then outputs the change that will be dispensed similar to what happens at the WAWA or a grocery store. The user will enter an amount for change like 99 for 99 cents. Ex: How much change do you want to make? Use final constant for value of a quarter, dime, nickel and penny. Starting with the largest value coin which is quarters, you will determine the amount of quarters to dispense. Next, the new balance of change needs to be updated accounting for what has been dispensed in quarters. Again, you check to see how many dimes will be dispensed and update the balance of the change that still needs to be calculated. Continue on with process for nickels and pennies until the proper change has been calculated. Output message will contain the change being dispensed along with the number of quarters, dimes, nickels, and pennies. Sample output: You have entered 99 cents for change which is 3 quarters, 2 dimes, 0 nickels, 4 pennies Output your name at the end of the program. Test your program with various values so you know it works properly.

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!