Guest User

Bank Game

a guest
Sep 25th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class BankGame {
  2.  
  3.     // create a enumeration Coins that contain all the coins in the US currency
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         // print out a prompt that asks the user to enter an amount (e.g. 4.56)
  8.  
  9.         // using your prior assignment where you split up the money values,
  10.         // determine how
  11.         // many coins there are
  12.  
  13.         // using the enumeration and each item's ordinal value, calculate what
  14.         // that would
  15.         // be worth if you were to use your money system instead of ours.
  16.  
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment