One of the football fans heard that one of the most outstanding players, Mesut Ozil, has decided to play in Turkey. That guy wanted to go to the airport to welcome him. The fan wanted to find out how many football fans will be there. To do that, it is needed to have a new computer program, and you should implement it. The fan realized that a few factors affect the decision to go to the airport or not. The rules are given below: Adanaspor, Besiktas, and Fenerbahce fans are willing to go to the airport. If the age is lower than 18 or higher than 55, they prefer to stay at home. If the distance to the airport is further than 10 km and closer than 50 km, they want to go to see him. When the weather condition is starting with "S", fans want to go to the airport. Your program should read all the inputs, supported team, age, distance, and weather condition, in this order. Supported teams can only be Adanaspor, Besiktas, Fenerbahce, Galatasaray, and Trabzonspor Weather condition can only be Clear, Cloudy, Snowy, Sunny, and Rainy You will be getting several fans, until "Done" is given, and your program should count how many people are eligible to go to the airport. One line output is going to show that number.
One of the football fans heard that one of the most outstanding players, Mesut Ozil, has decided to play in Turkey. That guy wanted to go to the airport to welcome him. The fan wanted to find out how many football fans will be there. To do that, it is needed to have a new computer
The rules are given below:
Adanaspor, Besiktas, and Fenerbahce fans are willing to go to the airport.
If the age is lower than 18 or higher than 55, they prefer to stay at home.
If the distance to the airport is further than 10 km and closer than 50 km, they want to go to see him.
When the weather condition is starting with "S", fans want to go to the airport.
Your program should read all the inputs, supported team, age, distance, and weather condition, in this order. Supported teams can only be Adanaspor, Besiktas, Fenerbahce, Galatasaray, and Trabzonspor Weather condition can only be Clear, Cloudy, Snowy, Sunny, and Rainy
You will be getting several fans, until "Done" is given, and your program should count how many people are eligible to go to the airport. One line output is going to show that number.
Input Format
Your program should read all the inputs, supported team, age, distance, and weather condition, in this order.
You will be getting several fans, until "Done" is given, and your program should count how many people are eligible to go to the airport.
Constraints
Supported teams can only be Adanaspor, Besiktas, Fenerbahce, Galatasaray, and Trabzonspor Weather condition can only be Clear, Cloudy, Snowy, Sunny, and Rainy
Output Format
One line output is going to show that number.
Sample Input 0
Sample Output 0
Step by step
Solved in 3 steps with 1 images