import java.util.*; import java.lang.*; import java.io.*; public class MainApp { public static void main(String[] args) { Scanner sc = new Scanner(System.in);
InputStreamReader reader = new InputStreamReader(System.in); BufferedReader input= new BufferedReader(reader);
int choice;
String abbreviationsFile = "abbreviations.txt"; System.out.println("Reading data set from ["+abbreviationsFile+"]");
do{ System.out.println("\nWelcome to Abbreviation System"); System.out.println("=========================="); System.out.println("0. Display this menu"); System.out.println("1. List all abbreviations"); System.out.println("2. Query abbreviation by exact match"); System.out.println("3. Query abbreviation by prefix match"); System.out.println("4. File translation"); System.out.println("5. Abbreviation Quiz"); System.out.println("9. Exit"); System.out.print("Enter your choice: "); choice=sc.nextInt();
switch(choice) { case 0: break;
case 1: database.printAllAbbreviations(); break;
case 2: break;
case 3: break;
case 4: break;
case 5: break;
case 9: System.out.println("Program Terminating...."); break; } }while(choice!=9); } }
Attachments:
File comment: This is my assignment qns Assignement 2.zip [76.96 KiB]
Downloaded 114 times
msi_333
Question subject: Re: Need help for my Java Programming Assignment urgently
Posted: Wed Nov 04, 2009 2:05 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2103 Location: Earth Has thanked: 39 time Have thanks: 57 time
please specify your java question , after you try by your self .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
poorGal
Question subject: Re: Need help for my Java Programming Assignment urgently
Posted: Wed Nov 04, 2009 4:15 pm
Joined: Wed Nov 04, 2009 11:28 am Posts: 2 Has thanked: 0 time Have thanks: 0 time
Honestly, After i did the Database.java, i have no idea how to start from there...I'm now still trying out, to see whether i can get the rite way... but not. I'm did not expect a solution from u... but to guide me on how to start... time is short for me.. so i did not give up trying.. but i also hope someone can help me...