- 1
Moshoeshoe1 airport purchase new system for registering new flights,you are asked to implement a programme that register planes
1)Register a new plane function-a boolean function to register a new plane.The array and capacity of the plane should be supplied as parameters to the function and all the seats should be initialized to empty. 2)Reserve a seat on a plane: a)Economy class seats booking function:A boolean function to reserve an economy class seat, the function should assign a seat in the economy class section. (last 80% of the seats on the plane).If the economy class is full, the function should notify the passenger and exit
3 Réponses
+ 8
Homework?
0
there are four flights a day from monday to friday. they all have different number of passengers per each flight. you will different flight numers.
they all have different number of weight they can carry per each flight both cargo weight and passeger weight.
0
"Sounds like an interesting project! Implementing functions for plane registration and seat reservation will definitely help the new system at Moshoeshoe1 Airport run smoothly. For the seat booking, you could use a boolean array to manage seat availability efficiently, especially with the economy class logic. By the way, if anyone needs a <a href="https://jewelcars.co.uk/">Taxi near Gatwick</a>, I recommend Jewel Cars for a comfortable and reliable ride – perfect for airport transfers!"