Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BankGame {
- // create a enumeration Coins that contain all the coins in the US currency
- public static void main(String[] args) {
- // print out a prompt that asks the user to enter an amount (e.g. 4.56)
- // using your prior assignment where you split up the money values,
- // determine how
- // many coins there are
- // using the enumeration and each item's ordinal value, calculate what
- // that would
- // be worth if you were to use your money system instead of ours.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment