Create a C++ program file called AgeCalculator.cpp a. If "another_age" works outto be more than 150, the screen outputis: Sorry, but you'll probably be dead by [year]! b. The program should deal with...


Create a C++ program file called AgeCalculator.cpp<br>a. If

Extracted text: Create a C++ program file called AgeCalculator.cpp a. If "another_age" works outto be more than 150, the screen outputis: Sorry, but you'll probably be dead by [year]! b. The program should deal with months as well as years, and produces outputas shown: Enter the current year then press RETURN. 1996 Enter the currentmonth (a number from 1 to 12). 10 Enter your current age in years. 36 Enter the month in which you were born (a number from 1 to 12). Enter the year for which you wish to know your age. 2001 Enter the month in this year. Your age in 6/2001:41 years and 1 month. c. The program should cope with singulars and plurals properlyin the output, e.g., "1 month" but "2 months".

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here