exzoticgaming21 exzoticgaming21
  • 18-09-2021
  • Computers and Technology
contestada

Write a program calculates your age in 2030 when you enter your birth year from the keyboard.

(Python)

Respuesta :

purity2m
purity2m purity2m
  • 18-09-2021

Answer:

print('THIS PROGRAM FORECAST YOUR AGE IN 2030 ' )

year = int(input('Please enter your year of birth: '))

age = 2030 - year

print ('YOUR AGE IN 2030 WILL BE - ', age)

Explanation:

The year entered will be stored in the variable "year", the value in "year" will be subtracted from 2030 and the result will be stored in the variable "age".

This value is displayed with a prompt as the persons age in 2030.

Answer Link

Otras preguntas

You can buy jars of olives in two sizes. Jar A: 800g for $12.40 Jar B: 500g for $8.20 Which jar is better value?
What is the value, after 7 years, of a 2014 Ford Mustang that originally costs $25,000.00 if it depreciates at a rate of 8% per year? Round your answer to the n
What is 25100×3098281
What kinds of environmental stimuli are some animals capable of sensing that humans cannot sense?
How might a college degree serve as a certification, like in the used car market with a car inspection? What effect might this have on the market?
What is the function? 4th grade math
Martin Luther King jr. and Malcolm X DBQ analysis forms
If you roll a fair 6 sided die 24 times, what is a possible number of times that you will roll a two?
On a particular day, the wind added 4 miles per hour to Jaime's rate when she was rowing with the wind and subtracted 4 miles per hour from her rate on her retu
What are the side lengths in a rectangle if the area is 60 and perimeter is 32?