A timetable for the consultation of a member of the parliament is organized, in which citizens are registered, with their name, surname, and age. Consultation provided by a member of the parliament takes ~10 minutes. Therefore the duration of the consultation must be indicated in the registration, and however, it can be shorter and also longer. If the length of consultation of a new citizen is 70% shorter comparing to the duration of a citizen standing before him,
The program must have the following features:
1) Register a new citizen for consultations;
2) Print the list of consultations (details of all waiting citizens) by providing summary information on the total duration and number of consultations;
3) Cancel longer than specified duration (entered by the operator) consultations;
4) Apologize to all citizens and cancel all consultations;
* A member of the parliament may only hold consultations for 2 hours per day.
Comments
Leave a comment