hey guys; having some trouble with this program i'm writing

Reply

Join Date: Oct 2004
Posts: 3
Reputation: chungaroo is an unknown quantity at this point 
Solved Threads: 0
chungaroo chungaroo is offline Offline
Newbie Poster

hey guys; having some trouble with this program i'm writing

 
0
  #1
Oct 17th, 2004
hey, i'm in a high school computer science class and we're learning java..anyways, i've got this lab that i've been working on but i don't quite know how to proceed.

heres a scan of the lab sheet.
http://www.bellsouthpwp.net/c/h/chun...slab%20004.jpg

here's what i've done so far:
  1. {public static void main (String [] args)
  2. {//create variables
  3. EasyReader console = new EasyReader();
  4. NumberFormat money = NumberFormat.getCurrencyInstance();
  5. NumberFormat percent = NumberFormat.getPercentInstance();
  6. String password, tutor_name;
  7. int selection, code;
  8. boolean selection1=true, selection2=false, selection3=false;
  9.  
  10. System.out.print("Enter the password to enter the system: ");
  11. password = console.readLine();
  12. while(password.equals("GO GO GADGET!"))
  13. {
  14. System.out.println ("SAT HELP BILLING");
  15. System.out.println (" MENU");
  16. System.out.println ("[1] TUTOR'S INFORMATION");
  17. System.out.println ("[2] ENTER STUDENT'S INFORMATION");
  18. System.out.println ("[3] PRINT STUDENT'S RECEIPT");
  19. System.out.println ("[9] QUIT PROGRAM");
  20.  
  21. System.out.print ("Please make a selection from the menu: ");
  22. selection = console.readInt();
  23. if (selection == 1 && selection2==false && selection3==false)
  24. {System.out.print("Please enter your name: ");
  25. tutor_name = console.readLine();
  26. System.out.print("Please enter your personal 4-digit code: ");
  27. code = console.readInt();
  28. }
  29. }
  30. }
  31. }

am i going in the right direction? i know there's a policy about trying hard before asking for help and i hope it doesnt look like i'm asking for a quickfix, but just wanted some direction because i'm kinda lost. cool, thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC