/*Imports Java library files*/
import javax.swing.JOptionPane;
import java.text.*;

/*Filename for programs class*/
class KwikKapers
	{
		
		/*Runs program- method*/
		public static void main(String[] args)
			{
						KwikKapers optpane = new KwikKapers();
			}
		/*Constructor*/
		public KwikKapers()
		{

			/*Instruction to begin start menu method*/
			Startmenu();
		}	
	/*Method for main start menu*/		
	public void Startmenu()
	{
		/*Booleen statement to keep program running so long as an input is selected*/
		while (true)
		{
			/*String array value containing questions for the start menu*/
			String [] startquest = new String[]{"•	What is the duration and destination of flight?","•	What flights and destinations are available from?","•	What flights land at ?",
			"•	What time are flights of no more than?","•	What time does the flight from ? arrive in ?",
			"•	What is the full information for a route from ? to ?"};
		
			/*Object for start displaying questions from String values already declared. Displayed in JOptionPane */
			Object start = JOptionPane.showInputDialog(null,"What do you want to do?",
			"Kwik Khemists Enquiries",JOptionPane.QUESTION_MESSAGE,null, startquest,"Category of name entered"); 
		
			/*If statement used to close program if cancel button is pressed*/
			if (start==null)
			{
				System.exit(0);
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("•	What is the duration and destination of flight?"))
			{
				Categoryduration();
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("•	What flights and destinations are available from ?"))
			{
				Destinations(); 
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("•	•	What time are flights of no more than ? hours from ?"))
			{
				NomoreThan(); 
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("What time does the flight from ? arrive in ?"))
			{
				FlightTime();
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("What is the full information for a route from ? to ?"))
			{
				infomation();
			}
		
		}
	}

1) Put code between [code] [/code] tags when posting it (There is a button that will surround highlighted text with code tags in the toolbar of the post editor as well)
2) Compiler errors tell you explicitly what the problem is and on what line it occurs. Read them. Post them with your code if you don't understand them.

1) Put code between [code] [/code] tags when posting it (There is a button that will surround highlighted text with code tags in the toolbar of the post editor as well)
2) Compiler errors tell you explicitly what the problem is and on what line it occurs. Read them. Post them with your code if you don't understand them.

This is what we have got in edit plus and keep getting errors sorry struggling?

Attachments
[code]
/*Imports Java library files*/
import javax.swing.JOptionPane;
import java.text.*;

/*Filename for programs class*/
class KwikKapers
	{
		
		/*Runs program- method*/
		public static void main(String[] args)
			{
						KwikKapers optpane = new KwikKapers();
			}
		/*Constructor*/
		public KwikKapers()
		{

			/*Instruction to begin start menu method*/
			Startmenu();
		}	
	/*Method for main start menu*/		
	public void Startmenu()
	{
		/*Booleen statement to keep program running so long as an input is selected*/
		while (true)
		{
			/*String array value containing questions for the start menu*/
			String [] startquest = new String[]{"	What is the duration and destination of flight?","	What flights and destinations are available from?","	What flights land at ?",
			"	What time are flights of no more than?","	What time does the flight from ? arrive in ?",
			"	What is the full information for a route from ? to ?"};
		
			/*Object for start displaying questions from String values already declared. Displayed in JOptionPane */
			Object start = JOptionPane.showInputDialog(null,"What do you want to do?",
			"Kwik Khemists Enquiries",JOptionPane.QUESTION_MESSAGE,null, startquest,"Category of name entered"); 
		
			/*If statement used to close program if cancel button is pressed*/
			if (start==null)
			{
				System.exit(0);
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("	What is the duration and destination of flight?"))
			{
				Categoryduration();
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("	What flights and destinations are available from ?"))
			{
				Destinations(); 
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("		What time are flights of no more than ? hours from ?"))
			{
				NomoreThan(); 
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("What time does the flight from ? arrive in ?"))
			{
				FlightTime();
			}
			/*Else if statement used to start method if start = String below*/
			else if (start.equals("What is the full information for a route from ? to ?"))
			{
				infomation();
			}
		
		}
	}
	[/code]

1) Put code between [code] [/code] tags when posting it (There is a button that will surround highlighted text with code tags in the toolbar of the post editor as well)
2) Compiler errors tell you explicitly what the problem is and on what line it occurs. Read them. Post them with your code if you don't understand them.


This is the problem we are tring to program[/B] and need to hand in friday 4pm gmt time are we close at all
You are expected to design, implement, test and document a Java program to fulfil the design brief.

Kwik Kapers is keen to perform a number of enquiries on the data. The enquiries are based on a user input. Below are the enquiries that Kwik Kapers would like to query:

• What time are flights of no more than<User Input – Flight Time> leaving from < User Input – Departure Airport>?
(e.g. What time are the flights of no more than 3 hours leaving from Bangkok?)
• What is the duration and destination of flight<User Input – Flight Number>?
(e.g. Where is flight QF5 going to and how long will it take?)
• What flights and destinations are available from <User Input – Departure airport>?
(e.g. What flights are there from Brisbane?)
• What flights land at <User Input – Destination Airport>?
(e.g. What flights are going to Manchester?)
• What time does the flight from <User Input – Departure Airport> arrive in <User Input – Destination Airport>?
(e.g. What time does the flight from Cairns arrive in Sydney?)
• What is the full information for a route from <User Input – Departure Airport> to <User Input – Destination Airport>?
(e.g. Can I get from Perth to Manchester? If so, how do I do it?)

Part A
Using a well structured modular approach to program design, implement and test a complete solution for the flight enquiry software system package.

As your program will be managing time, you are advised to design, implement and test your time method prior to the implementation of the rest of the program. You should build a test harness to allow you to enter two different times and calculate the difference.

You should ensure the smooth running of your program through effective use of error checking.

User documentation (paper guide or help button) must be produced including menu designs (screen printouts of different layouts) for users.

Deliverables:
1. Design Documentation
2. Fully commented source files
3. Fully compiled and working program, either with a batch file to begin execution of your program or as an executable jar file
4. Test Documentation, including test plan and comprehensive testing, including both black and white box testing.
5. User documentation

And yet you still have not posted the code in code tags, nor posted the compiler errors you are getting.

This article has been dead for over six months. Start a new discussion instead.