| | |
hey guys; having some trouble with this program i'm writing
![]() |
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Solved Threads: 0
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:
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.
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)
{public static void main (String [] args) {//create variables EasyReader console = new EasyReader(); NumberFormat money = NumberFormat.getCurrencyInstance(); NumberFormat percent = NumberFormat.getPercentInstance(); String password, tutor_name; int selection, code; boolean selection1=true, selection2=false, selection3=false; System.out.print("Enter the password to enter the system: "); password = console.readLine(); while(password.equals("GO GO GADGET!")) { System.out.println ("SAT HELP BILLING"); System.out.println (" MENU"); System.out.println ("[1] TUTOR'S INFORMATION"); System.out.println ("[2] ENTER STUDENT'S INFORMATION"); System.out.println ("[3] PRINT STUDENT'S RECEIPT"); System.out.println ("[9] QUIT PROGRAM"); System.out.print ("Please make a selection from the menu: "); selection = console.readInt(); if (selection == 1 && selection2==false && selection3==false) {System.out.print("Please enter your name: "); tutor_name = console.readLine(); System.out.print("Please enter your personal 4-digit code: "); code = console.readInt(); } } } }
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
- hey guys could u check my code PLEASE its a code with a "text file" (C++)
- trouble with looping (Java)
- File I/O (Python)
- Hey Guys, CMS needed ..... (Existing Scripts)
- best program to fight against spyware and adware? (Windows NT / 2000 / XP)
- ScanDisk Restart 10 times due to program writing to harddrive (Windows 95 / 98 / Me)
- help in using End-OF-File function (C)
Other Threads in the Java Forum
- Previous Thread: Need Help with ArrayList sorting
- Next Thread: Java Internal frames
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation bi binary blackberry block bluetooth character class client code compile compiler component consumer database desktop developmenthelp eclipse error fractal freeze ftp functiontesting game gameprogramming givemetehcodez graphics gui health html ide image integer j2me j2seprojects java javac javaee javaprojects jetbrains jni jpanel jtable julia learningresources lego linked linux list mac main map method methods mobile myregfun netbeans notdisplaying number online printf problem program project qt recursion researchinmotion rotatetext rsa scanner screen server set singleton sms sort spamblocker sql string swing system textfields threads time title tree tutorial-sample update variablebinding windows working xor





