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

using elimination method solve ]4x-y-7=0 4x+3y-11=0]
Mizan cooks meat and he finds that the cooked meat is slow to cook. How do he speed up the cooking perfectly? (8marks)​
Which strategy does the speaker use to develop a central idea of "Money to Us Is of No Value"?
What does it mean by “I realised that a man is not what he thinks, not what he says, but what he does with his hands and legs and with his heart.”?
Escoge el artículo y adjetivo correcto de la siguiente palabra: muchacha
In the table, which of the following is most likely to account for the large expected demand for registered nurses?
who knows the answer to this????
(2x-11) + (6x-7) =180
In Europe, gasoline efficiency is measured in km/L. If your car’s gas mileage is 32.0 mi/gal, how many liters of gasoline would need to buy to complete a 142 km
There are 2.54 centimeters in one inch. How many inches are there in 54.86 centimeters?