Calculate the age of a cat in human years. Only use the equivalence table below – no alternatives please Life stage Age of cat Human equivalent Kitten birth to 7 months Human overlap is okay 1 month 2 months 3 months 4 months 5 months 6 months 7 months 1 year 2 years 3 years 8 years 9 years 10 years 11 years Human overlap is okay Junior 8 months to 24 months 8 months 12 months 18 months 24 months 11 years 15 years 21 years 27 years Prime 3 years to 6 years 3 years 4 years 5 years 6 years 28 years 32 years 36 years 40 years Mature 7 years to 10 years 7 years 8 years 9 years 10 years 44 years 48 years 52 years 56 years Senior 11 years to 14 years 11 years 12 years 13 years 14 years 60 years 64 years 68 years 72 years Geriatric 15 years to 18 years 15 years 16 years 17 years 18 years 76 years 80 years 84 years 88 years Comp101 2023-24 Assignment-03: Page 4 4. Requirements a) Present the user with a main menu of three options and a prompt: Cat Age Main Menu A. Months 8 to 24 B. Years 3 to 6 X. Exit Program Enter Option (A, B or X): Validate option entry for A, B or X. If user enters an invalid option, tell them they are in error and exit the program. Option-A: Is to work for life stage Junior age of 8, 12, 18 or 24 months. Prompt for an age in months and inform the user cat is at junior life- stage and their age in human years, then exit the program. If user inputs outside the age range, tell them they are in error and exit the program. Option-B: Is to work for life-stage Prime age of 3, 4, 5 or 6 years. Prompt for an age in years and inform the user cat is at prime life-stage and their age in human years, then exit the program. If user inputs outside the range, tell them they are in error and exit the program. Option-X: End the program with a message to user.
Calculate the age of a cat in human years. Only use the equivalence table below – no alternatives please Life stage Age of cat Human equivalent Kitten birth to 7 months Human overlap is okay 1 month 2 months 3 months 4 months 5 months 6 months 7 months 1 year 2 years 3 years 8 years 9 years 10 years 11 years Human overlap is okay Junior 8 months to 24 months 8 months 12 months 18 months 24 months 11 years 15 years 21 years 27 years Prime 3 years to 6 years 3 years 4 years 5 years 6 years 28 years 32 years 36 years 40 years Mature 7 years to 10 years 7 years 8 years 9 years 10 years 44 years 48 years 52 years 56 years Senior 11 years to 14 years 11 years 12 years 13 years 14 years 60 years 64 years 68 years 72 years Geriatric 15 years to 18 years 15 years 16 years 17 years 18 years 76 years 80 years 84 years 88 years Comp101 2023-24 Assignment-03: Page 4 4. Requirements a) Present the user with a main menu of three options and a prompt: Cat Age Main Menu A. Months 8 to 24 B. Years 3 to 6 X. Exit Program Enter Option (A, B or X): Validate option entry for A, B or X. If user enters an invalid option, tell them they are in error and exit the program. Option-A: Is to work for life stage Junior age of 8, 12, 18 or 24 months. Prompt for an age in months and inform the user cat is at junior life- stage and their age in human years, then exit the program. If user inputs outside the age range, tell them they are in error and exit the program. Option-B: Is to work for life-stage Prime age of 3, 4, 5 or 6 years. Prompt for an age in years and inform the user cat is at prime life-stage and their age in human years, then exit the program. If user inputs outside the range, tell them they are in error and exit the program. Option-X: End the program with a message to user.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Calculate the age of a cat in human years. Only use the equivalence table
below – no alternatives please
Life stage Age of cat Human equivalent
Kitten
birth to 7 months
Human overlap is okay
1 month
2 months
3 months
4 months
5 months
6 months
7 months
1 year
2 years
3 years
8 years
9 years
10 years
11 years
Human overlap is okay
Junior
8 months to 24 months
8 months
12 months
18 months
24 months
11 years
15 years
21 years
27 years
Prime
3 years to 6 years
3 years
4 years
5 years
6 years
28 years
32 years
36 years
40 years
Mature
7 years to 10 years
7 years
8 years
9 years
10 years
44 years
48 years
52 years
56 years
Senior
11 years to 14 years
11 years
12 years
13 years
14 years
60 years
64 years
68 years
72 years
Geriatric
15 years to 18 years
15 years
16 years
17 years
18 years
76 years
80 years
84 years
88 years
below – no alternatives please
Life stage Age of cat Human equivalent
Kitten
birth to 7 months
Human overlap is okay
1 month
2 months
3 months
4 months
5 months
6 months
7 months
1 year
2 years
3 years
8 years
9 years
10 years
11 years
Human overlap is okay
Junior
8 months to 24 months
8 months
12 months
18 months
24 months
11 years
15 years
21 years
27 years
Prime
3 years to 6 years
3 years
4 years
5 years
6 years
28 years
32 years
36 years
40 years
Mature
7 years to 10 years
7 years
8 years
9 years
10 years
44 years
48 years
52 years
56 years
Senior
11 years to 14 years
11 years
12 years
13 years
14 years
60 years
64 years
68 years
72 years
Geriatric
15 years to 18 years
15 years
16 years
17 years
18 years
76 years
80 years
84 years
88 years
Comp101 2023-24 Assignment-03: Page 4
4. Requirements
a) Present the user with a main menu of three options and a prompt:
Cat Age Main Menu
A. Months 8 to 24
B. Years 3 to 6
X. ExitProgram
Enter Option (A, B or X):
Validate option entry for A, B or X.
If user enters an invalid option, tell them they are in error and exit the
program.
Option-A:
Is to work for life stage Junior age of 8, 12, 18 or 24 months.
Prompt for an age in months and inform the user cat is at junior life-
stage and their age in human years, then exit the program.
If user inputs outside the age range, tell them they are in error and exit
the program.
Option-B:
Is to work for life-stage Prime age of 3, 4, 5 or 6 years.
Prompt for an age in years and inform the user cat is at prime life-stage
and their age in human years, then exit the program.
If user inputs outside the range, tell them they are in error and exit the
program.
Option-X:
End the program with a message to user.
4. Requirements
a) Present the user with a main menu of three options and a prompt:
Cat Age Main Menu
A. Months 8 to 24
B. Years 3 to 6
X. Exit
Enter Option (A, B or X):
Validate option entry for A, B or X.
If user enters an invalid option, tell them they are in error and exit the
program.
Option-A:
Is to work for life stage Junior age of 8, 12, 18 or 24 months.
Prompt for an age in months and inform the user cat is at junior life-
stage and their age in human years, then exit the program.
If user inputs outside the age range, tell them they are in error and exit
the program.
Option-B:
Is to work for life-stage Prime age of 3, 4, 5 or 6 years.
Prompt for an age in years and inform the user cat is at prime life-stage
and their age in human years, then exit the program.
If user inputs outside the range, tell them they are in error and exit the
program.
Option-X:
End the program with a message to user.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education