Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that: Asks the user to i put their current age as an integer. If the input age is not an integer the
Write a program that:
Asks the user to iput their current age as an integer.
If the input age is not an integer the program exits by saying that you have entered an invalid age. Note: use try and except statements to program this
The program then asks the user to input their current college standing ie freshman, sophomore, junior, or senior
The program then suggests the age at which the user should ideally graduate and finally tells the user to have a nice day.
Note: use a year rule for graduation
Note: Boolean expressions can also be used to compare strings
Your output should look like so:
How old are you?
What is your current standing in college? freshman
Your age at graduation will be years
Your output should look like so:
How old are you? Twenty
You have entered an invalid age.
Have a nice dav
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started