Friday, July 31, 2009

Can someone plz help me to work out this question in C programming...??

A small airline that operate flights to one destination use a computer system to:


1.Provide an enquiry system regarding the number and type of seats available for a flight on a specified day.


2.Issue a single ticket to a passenger containing the following information.


(i)Name of destination


(ii)Type of seat booked, i.e, first or tourist class


(iii)Departure, arrival times and date


(iv)Cost of ticket


(v)Name of passenger


3.Output a passenger list for each flight.





Assume the following:


(a)There is only 1 flight per day at different times over a period of 5 days. The airline operate from Monday to Friday only. The duration of the flight is 2 hrs.


(b)Every plane used has a maximum of 50 seats, the distribution of first class seats to tourist class being 10 and 40 respectively.


(c)A seat is bookable up to 1 week in advance but not on the day of the flight.


(d)The cost of the flight first class seat is $500, whilst that of a tourist class is $250.


Write this in C programming.

Can someone plz help me to work out this question in C programming...??
What part are you having trouble with? Surely you don't expect anyone to lay out the whole thing for you! (Well, maybe for US$50 per hour they would. :-)

purple flowers

No comments:

Post a Comment