Question: 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 i.e., 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 4-year rule for graduation)
Note: Boolean expressions can also be used to compare strings
Your output should look like so:
How old are you? 20
What is your current standing in college? freshman
Your age at graduation will be 24 years
Your output should look like so:
How old are you? Twenty
You have entered an invalid age.
Have a nice dav
 Write a program that: Asks the user to iput their current

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!