Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please write me a working code the language is WING 101 PYTHON 3 Exercise 1 - Age Calculation Write a program that asks for the
please write me a working code the language is WING 101 PYTHON 3
Exercise 1 - Age Calculation Write a program that asks for the user's name and the year in which he or she was born. Your program will accept those values as input and then display the two possible current ages for the user as output. (e.g., Since the year is 2018 and the user was born in 1995, you can conclude that they must be between 22 and 23 years old). Sample Output (with user input highlighted) What is your name? Paul In what year were you born? 1995 Paul must be between 22 and 23 years of age Exercise 2 - Age Calculation Part 2 Modify the program you created for Exercise 1 so that it asks for the current year (so that this program will still work for years other than 2018) and addresses the user by name when asking for the year of birth. Sample Output (with user input highlighted) What is your name? Paul In what year were you born, Paul? 1995 What is the current year? 2017 Since it is 2017, Paul must be between 21 and 22 years of ageStep 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