User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,301 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1674 | Replies: 0
Reply
Join Date: Oct 2004
Posts: 3
Reputation: chungaroo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chungaroo chungaroo is offline Offline
Newbie Poster

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

  #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:
{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.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC