This is a Java program that prompts the user to enter an amount of change, and then outputs the fewest number of coins needed to make that change. The program uses a series of if and else-if statements to determine the number of each type of coin required. The program reads input from the user using a Scanner object. The values of different types of coins are represented using variables, and the program uses the modulo operator to calculate the remaining change after each type of coin is subtracted from the total. The program includes multiple nested else-if statements and switch statements, making it more complex than necessary.
-
Notifications
You must be signed in to change notification settings - Fork 0
End-Us3r/Exact-Change
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This is a Java program that prompts the user to enter an amount of change, and then outputs the fewest number of coins needed to make that change.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published