SECTION A : BASIC REQUIREMENTS OF THE SYSTEM
1. Main Menu
Your initial program design should display the following menu alternatives:
FERRY TICKETING SYSTEM
P to Purchase Ticket
V to View Seating Arrangement
Q to Quit the system
2. Submenu
The following submenu will be displayed when P is selected:
PURCHASING MODULE
B to purchase ticket for Business class
E to purchase ticket for Economy class
M to return to Main Menu
3. Assigning Seats
If the person types B, then your program should assign a seat in the business class (seats 1-10). If the person types E, then your program should assign a seat in the economy class (seats 11 - 50).
my group coding
public class Ferry_Ticketing_System {
String destination = "d";
String ferry_id = "id";
int departure_time = "t";
int BusinessClassSeatNo, EconomyClassSeatNo;
String[] seats = new string[50];
public string CheckBusinessSeat (){
for (int i = 0; i < 10; i++){
10[i]=i;
BusinessClassSeatNo = i + 1;
}
for (int i = 10; i < seats.length; i++){
seats[i]=i;
EconomyClassSeatNo = i + 1;
}
}
nid guide pls
This post has been edited by nathaniel8: 16 June 2009 - 07:49 AM

New Topic/Question
Reply




MultiQuote





|