Starting from:
$35

$29

Project 02. Java Basic Solution




Project Objectives:




This project was designed to reinforce programming concepts from Chapter 2. In this project, the students will practice:

Declare variables
Use Scanner and String objects
Do arithmetic operations, including /, %
Use basic data types int



Description of the Problem:




Write a program that asks the user input a change between 1 and 99 cents. The program then will display it in amount of quarters, dime, nickels and pennies.




Example run 1: (the bold Italic numbers/strings are input):




Enter a change between 1 and 99 cents:




68

You have change 68 cents. That is:

quarters
dimes
nickels
pennies



Example run 2:




Enter a change between 1 and 99 cents:




97

You have change 97 cents. That is:

quarters
dimes
nickles
pennies



After finish the program successfully, you need to comment away (don’t delete) the user input part. Replace it by the code that randomly generates a change between 1 and 99 cents, inclusive. Run and test the modified program.




Submit YourNameProject02.java via blackboard link. The due date is specified on blackboard.

More products