- 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

17th Oct 2017, 8:09 AM
Ramabaka Nkobolo
Ramabaka Nkobolo - avatar
2 Answers
+ 8
17th Oct 2017, 8:11 AM
Hatsy Rei
Hatsy Rei - avatar
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.
14th Jul 2018, 9:17 PM
Relebohile Roux
Relebohile Roux - avatar