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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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.

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

Fenerbahce4015SunnyAdanaspor6045CloudyTrabzonspor4223SunnyBesiktas439RainyDone

Sample Output 0

1
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY