Results 1 to 3 of 3
  1. #1
    yagoob is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default help from restaurant eclips program

    tankyou for answers friends
    I am a student in the first semester and have problems in solving problems
    This is a restaurant I looked up say thanks.
    this program should write in java eclipse

    Restaurant Information Systems: The program must have the following capabilities:
    1 Ability to add, edit, delete and Simple and Advanced Search All restaurants Members include membership number, name, surname, ID -
    National, contact numbers and addresses of all members within a data file is sorted by membership number

    Java Code:
    import java.io.*;
    import java.util.Scanner;
    import java.util.Scanner;
    
    public class a121211 {
    
    	public static void main(String[] args) throws FileNotFoundException {
    		Scanner input=new Scanner(System.in);
    		int x;
    		System.out.print("enter namber:");
    		String a[]=new String[6];
    		for( x=0;x<6;x++)
    			
    		{	if(x==1)
    				System.out.println("enter name:");
    		if(x==2)
    			System.out.println("enter family:");
    		if(x==3)
    			System.out.println("national code:");
    		if(x==4)
    			System.out.println("tel number ");
    		if(x==5)
    			System.out.println("address ");
    		
    			a[x]=input.next();}
    		File f1=new File("D:\\f.txt");
    		File f3=new File("D:\\f1.txt");
    		PrintWriter outfile=new PrintWriter(f3);
    
    		for(x=0;x<4;x++)
    			outfile.print(a[x]+"    ");
    		Scanner b=new Scanner(f1);
    		while(b.hasNext())
    			{outfile.println();
    			outfile.print(b.nextLine());
    			}
    		     outfile .close();
    		     b.close();
    		     f1.delete();
    		    f3.renameTo(f1);
    
    
    
    			}
    
    		}

  2. #2
    pj6444 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    165
    Rep Power
    2

    Default Re: help from restaurant eclips program

    So what have you tried so far?

  3. #3
    yagoob is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: help from restaurant eclips program

    Do not believe it, but the professor still did not learn the code and hopefully we can resolve the question and get the same score!

    please help me

Similar Threads

  1. restaurant system, how to create credit card payment
    By jacklee1992@ in forum Networking
    Replies: 4
    Last Post: 05-19-2013, 09:00 AM
  2. eclips not set the server
    By vishvadeepaktripathi in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 09-08-2009, 07:40 AM
  3. Replies: 0
    Last Post: 12-31-2008, 05:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •