Question
COP2800 Java Programming Using the concepts Modify a Java program that meets the following requirements: Given the program listing 2.10 ComputeChange (found in chapter 2),
COP2800 Java Programming
Using the concepts Modify a Java program that meets the following requirements:
Given the program listing 2.10 ComputeChange (found in chapter 2), I want you to modify that program so that the user may enter the amount to compute change multiple times using a sentinel value to end the program, and add a prompt to ask the user if they want to check another amount to determine the maximum number of dollars, quarters, dimes, nickels, and pennies. Also add an if statement to determine if there is an amount in cents and proceed to determine the number of quarters, dimes, nickels, otherwise if cents is zero then bypass those calculations.
At the beginning of the program add the following comments. //Filename //Written by //Written on //Assignment number
//Program description
Purpose:
Modify a java program from detailed directions. Ability to:
Follow established programming conventions for writing java programs Add comments as needed Able to modify an existing program Add a prompt making sure the user understands the purpose of the program Add an IF statement
Use the appropriate type of loop Use a sentinel value Modify print statements for output
Upload your .java file, screen shots of code, proof of compile, output and zip and place in the Assignment 2 folder.
Assignment 2 (10 points) Using the concepts learnt up to and including chapter 5. Modify a Java program that meets the following requirements: Given the program listing 2.10 ComputeChange (found in chapter 2), I want you to modify that program so that the user may enter the amount to compute change multiple times using a sentinel value to end the program, and add a prompt to ask the user if they want to check another amount to determine the maximum number of dollars, quarters, dimes, nickels, and pennies. Also add an if statement to determine if there is an amount in the cents and proceed to determine the number of quarters, dimes, nickels, otherwise if cents is zero then bypass those calculations. At the beginning of the program add the following comments. //FilenameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started