java netbean
To develop an airline reservation system.
The system should be able to provide the following:
- Accept passenger information.
- Assign an appropriate seat.
- Display the boarding pass.
Outcomes:
1. Apply the object-oriented programming techniques of Java.
2. Write decision-making statements and control structures to solve problems.
3. Create user-friendly interfaces and apply event-handling techniques of Java.
4. Explore best practices for designing and developing applications.
Problem statement:
A small airline has just purchased a computer for its new automated reservations system. You have been asked to design the logo and develop the new system.
Currently, the airline runs only one aircraft with a capacity of 10 seats and has three types of travel sections ¡V First, Business, and Economy. It is identified by an aircraft number and type. The system should generate a user-friendly interface to accept the passenger¡¦s first name, last name, date of birth and choice of travel section. The system should be able to assign seats on each flight of the airline¡¦s only plane.
Type of travel selection Denoted as Seat numbers assigned
First F 1001-1003
Business B 1004-1006
Economy E 1007-1010
If a seat has already been assigned, it cannot be used to assign to another person on that flight. If a particular section is full, based on the seat availability, it should ask the user if he/she wishes to upgrade.
Scenario If seat is available If seat is not available
When Economy section is full Ask and Assign in Business section Print an appropriate message along with the message ¡§Next flight leaves in 4 hours.¡¨
When Business section is full Ask and Assign in First-class section Print an appropriate message along with the message ¡§Next flight leaves in 4 hours.¡¨
When First-class section is full Ask for user¡¦s choice, and assign the seat (Business/Economy) Print an appropriate message along with the message ¡§Next flight leaves in 4 hours.¡¨
Once all the information has been entered, the system should print a boarding pass (on the screen itself), indicating the following:
- Flight number (since there is only one aircraft, this can have only one value).
- Date of the flight (this can be assumed to be the current date as per your computer)
- Passenger¡¦s first name and last name
- Passenger¡¦s date of birth
- Type of travel section.
- Passenger¡¦s seat number.
Add an extra feature to enhance the functionality of your application.
Important guidelines:
- Use NetBeans 6.7.1 as the integrated development environment.
- The project name must begin have the pattern as <Firstname><Lastname><Project Name>.
- Use appropriate comment entries to signify your course code, student ID, last name and first name at the beginning of each program.
- All user-defined variable names must begin with the first three characters of your last name.
- Use object-oriented techniques to enhance the functionality of your system (for example ?³ classes, constructors, methods, inheritance, composition, polymorphism Date class, etc.)
- Arrays can be used to add effectiveness.
- Apply exception-handling techniques of Java.
- Appropriate validations must be done.
- Ensure that the interface/s generated by your program are user-friendly and give a professional look. The system must be a GUI.
-
View Answers
Related Tutorials/Questions & Answers:
java netbean - UMLjava netbean
To develop an airline reservation system.
The system... the object-oriented programming techniques of
Java.
2. Write decision-making... interfaces and apply event-handling techniques of
Java.
4. Explore best practices
Advertisements
Connect database in Access to Netbean?Connect database in Access to
Netbean? how to connect database in micrsoft access to
Netbean?i know it can be connected by using JDBC-ODBC bridge, can i know the steps in connecting the database?
Is there any source code
How to netbean mobile application - MobileApplicationsHow to
netbean mobile application Hello,
i am recently... database on request. i use
netbean 6.5 and ms sql server 2000. i will also like to knw how to use
netbean to design a mobile application that sends and recieve
use netbean develop a library systemuse
netbean develop a library system Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work with the library, including:
1) Adding a new item to the library
Java NetBean
Java NetBean
The NetBeans IDE is a free,
open-source Integrated Development Environment... to create professional desktop,
enterprise, web and mobile applications in
Java Writing a loop statement using NetbeanWriting a loop statement using Netbean Write a loop program using NetBeans.
Java Loops
class Loops{
public static void main(String[] args){
int sum=0;
for(int i=1;i<=10;i
To call jrxml/jasper file through jsp code in netbeanTo call jrxml/jasper file through jsp code in netbean I am making web application in jsp with
netbean. For report I am using ireport 3.6.7. Through plugin ,ireport is integrated with neatbean and I also created one report. So
javajava dear sir
how to create MDI form using
netbean java codingjava coding i am using
netbean to my project and it is Desktop Application.i want my textfield to accept only numbers or only alphabets .........plez plez plez do help me..........i am just beginner to
java codes
Java web ApplicationJava web Application Hi! I have developed a
java web application project using
netbean IDE with glassfish server. My question is how to create a runnable file from this. How can we make it to a single file? I think it is war
Java Servlets - Java Interview Questions where can i download
NetBean 5.5.1? Pojo class is normal
java...
Java Servlets 1.What is Pojo class? How and where it is used?
2.Can... " THE
JAVA CLASS CANNNOT EXTENDS ANY PREDEFINED THIRDPARTY API CLASS OR INTERFACE".
3
java - EJBjava i have a login form in swing in
netbean with username and password .i want store data in database through Sessionbean And Entitybean .when i insert data in username & password field , if data is incorrect show a massege
N - Java Glossary language, not in
Java.
Java NetBean
The NetBeans...
N -
Java Glossary
Java Number Format
In programming languages, a pattern of special
Connecting to Hardware - Java BeginnersConnecting to Hardware I'm currently using
netbean for my Final Year Project system that involve some hardware like electronic weighihng scale. Can you please provide me at least the idea if not the coding on how the system can
how to make this java mail works? - Java Beginnershow to make this
java mail works? Dear experts,
Recently, I... himself.
The problem is that
netbean ide is sending many error message on this
java file as below :-
package com.XmlEcomBook.Chap05;
import java.util.
RMI - RMIRMI DEAR SIR,
I WANT TO LEARN RMI USING
NETBEAN 6. PLEASE HELP ME WITH A STEP-BY-STEP, ON
NETBEAN.
THANK YOU AND BEST REGARDS,
KUMAR.S...://www.roseindia.net/
java/
java-tips/background/30java_tools/netbeans.shtml
http
to add on to my queries - Java Beginnersto add on to my queries
Dear Experts,
Sorry but I am worried that I did not explain clearly so I am adding in the error message I get from
Netbean IDE when I run that queries using the last solution provided.
I'm puzzled
Add menu - IDE QuestionsAdd menu sir,i m student and learning
netbean in which i want to develop web application but i cant find how to add menu item(not the case for
java application where menu can be added from palette)so that when i run
Clarify my last question's answer - Java BeginnersClarify my last question's answer Dear expert,
I've tried out many times your solution but I'm not sure why it is not working. And I do not see how your solution is giving me the matching that I hope to do.
Netbean Ide
jarfile - JDBCjarfile i m making my project in
netbean so i dont have mail.jar or activation.jar file so what should i do
404 error404 error i have 404 error in my addition programe of servlet how should i solve this.
i'm using
netbean on glassfish server
404 error404 error i have 404 error in my addition programe of servlet how should i solve this.
i'm using
netbean on glassfish server
J2EE Application Development Solutions and Services Services
J2EE is the modular, component-oriented derivative of
Java and has become... cycles of developed applications. Key
java services available from
Java application servers and the J2EE framework include
java server pages,
Java's
Why Dose Hibernate Run Very Slow?Why Dose Hibernate Run Very Slow? I use Hibernate in
netbean 6.9.1, when I run by F6 of
netbean, Hibernate run very slow, it run some row INFO.... in GlassFish of
netbean, web of me run very slow.
I have configure Hibernate
Struts tag - StrutsStruts tag I am new to struts,
I have created a demo struts application in
netbean,
Can any body please tell me what are the steps to add new tags to any jsp page
javajava diff bt core
java and
java Error In starting Glassfish in Eclipse. the installed jre to C:\Program Files\
Java\jdk1.6.0_06.
But when i want to start... Executable
Cannot run program "C:\Program Files\
Java\jdk1.6.006/bin/
java... command,It is start.
And with also
netbean it works fine.
Hope i will find
JAVAJAVA how the name came for
java language as "
JAVA java java why iterator in
java if we for loop
javajava explain technologies are used in
java now days and structure
java javajava different between
java & core
java Java Java Whether
Java is pure object oriented Language
javajava is
java open source
javajava what is
java reflection
java java in
java does not pointers concept but what is nullpointers in
java?
nullpointer is a runtime Exception
javawhat is the size of array in
java ? what is the size of array in
java ?
what is the mean of finalize in
java javajava give a simple example for inheritance in
java javajava give a simple example for inheritance in
java javajava why to set classpath in
java javajava why to set classpath in
java javajava why to set classpath in
java javajava why to set classpath in
java