944,155 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2773
  • Java RSS
Oct 17th, 2004
0

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

Expand Post »
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:
Java Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chungaroo is offline Offline
3 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Need Help with ArrayList sorting
Next Thread in Java Forum Timeline: Java Internal frames





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC