spec writing software

spec writing software
help with a C + +?

This is for my programming class final. Source code would be good or just some advice. Thank you! Here requirements are. You have been hired by airlines to write software for reservations specialist. Airline Specifications: "The plane has 40 passengers each row has 4 seats and an aisle in between. – Rows 1 to 4 are first class – the bathroom is in the requirements back to the reservation. – Passengers have been reserved for names – passengers can request a specific seat or just the class or by category and location – passengers may request assignment block – passengers may cancel reservations viewing requirements: – the booking agent required for each operation simple menus – main menu should have an easy way out – main menu should include a print option to display the current allocations of seats in tabular form so the booking agent can read a seating chart.

You should take a class of aircraft, first-class seat and the main class … This should start airline has a matrix security [10] [5] 10 rows with 4 seats and 1 Seat mySeat island matrix instantated for security must be true or false, empty first class seat full.public Plane private ([] thisSeat [], int first private bus, / / private boolean TRUE, FALSE; /**************************** ******* / Public Plane () (= thisSeat new headquarters [10] [5]; for (int row = 0; row <10; row + +) for (int col = 0, col <5, col + +) mySeat [row] [col] = new site (row), first = 0; coach = 5;) / / finish the construction of /********************* * **************/ public GetFirstClass Seat () (temp = new headquarters Seat ();//' \ 0 '; if (start <5) (if (thisSeat [first]. Check_If_Empty ()) (thisSeat [first]. AssignSeat ();// hold that temp = thisSeat [first], first + +;)) else System.out.println ( "first class is full"); return temp;) / / Get class flirt public /**********************************/ getCoach Seat () (temp = Seat new seat ();//' \ 0 '; if (coach> 4 & & Coach <10) (if (thisSeat [] coach. Check_If_Empty ()) (thisSeat [coach]. Temp = AssignSeat ();// hold thisSeat [technical] coach + +;)) else System.out.println ( "coach class is full"); return temp;) / / ends coach /********************* get ******************* *** / public printSeatChart void () (for (int i = 0, i <10; i + +) (if (i == 0) System.out.println ( "First Class") else if (i == 5) System. out.println ( "Economy Class"); thisSeat [i]. Printme ();)) / / print class public purposes of entry (Private First int, coach, private boolean empty; private boolean busy; seatNum public int; public /*************************/ Seat () (First = 0; coach = 0; empty = True; occupied = false;) / / default construct /************************ *** / public Seat Num (int) (if ( num <5) (First = Num 1 seatNum = First;) else (coach = Num 1 seatNum = Coach; Empty) = true; occupied = false;) / / param printme public void build () (if (first> = 1) (if (empty) System.out.println ( "This first-class seat, seat number" + first + "is empty"); else System.out.println ( "This first-class seat, seat number" + First + "is busy")) else if (Coach> = 6) (if (empty) System.out.println ( "This seat in economy class seat number" + Coach + "is empty") else System.out.println ( "This seat in economy class seat number" + + Coach "is occupied");)

So you want to be an architect – Part 7


Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>