main.c Test Case 1-Input is 14 and expected output-Teenager Test Case 2-Input is 2 and expected output-Child Test Case 3-Input is 60 and expected output-Senior Citizen

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

main.c

Test Case 1-Input is 14 and expected output-Teenager

Test Case 2-Input is 2 and expected output-Child

Test Case 3-Input is 60 and expected output-Senior Citizen

main.c
8. Age Category
by crazy asians
It's time for the annual city Sportsfest. All individuals young and old may
join but it wouldn't be fair to match a young player against an older one.
So to keep the event fun, we decided to hold separate tournaments for
different age groups. The categories are:
• Child - 0 to 12 years old
• Teenager - 13 to 17 years old
• Adult - 18 to 59 years old
• Senior Citizen - 60 years old and above
Let's try to do this as quick as possible by using the power of technology
and programming!
Input Format
A single line containing the age.
Constraint:
-0 <= age <= 99
Input Sample
14
Custom Input
Output
Test Cases
Output Format
A single line containing the appropriate age category
O Test Case 3
Output Sample
O Test Case 4 Hidden
Teenager
Transcribed Image Text:main.c 8. Age Category by crazy asians It's time for the annual city Sportsfest. All individuals young and old may join but it wouldn't be fair to match a young player against an older one. So to keep the event fun, we decided to hold separate tournaments for different age groups. The categories are: • Child - 0 to 12 years old • Teenager - 13 to 17 years old • Adult - 18 to 59 years old • Senior Citizen - 60 years old and above Let's try to do this as quick as possible by using the power of technology and programming! Input Format A single line containing the age. Constraint: -0 <= age <= 99 Input Sample 14 Custom Input Output Test Cases Output Format A single line containing the appropriate age category O Test Case 3 Output Sample O Test Case 4 Hidden Teenager
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
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