This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A commercial establishment implemented a service system with a single queue, | |
// in which people always enter at the end of the queue, except if they are elderly (those over | |
// 59 years old), who always enter before the person younger than him who is closest to the | |
// start of the queue. | |
// Implement a program to control this queue, in order to meet the requirements | |
// above. | |
// The program must read a sequence of people, each one with their age and the time they entered. | |
// Considering that each person is attended in 3 minutes, the program must print the queue at each time a person enters it. | |
#include<stdio.h> |