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

Membranes that surround the brain and spinal cord are called ____. a. ​hydrocephali b. ​ventricles c. ​csf d. ​meninges
Which is not a density-dependent factor limiting population growth? A) predators B) drought C) food availability D) living space
Your teacher took a survey of student’s eye colors. She found that 15 students have brown eyes, 6 students have green eyes, and 4 students have blue eyes. Make
△XYZ∼△DEF , YZ is 10 meters, ​ XZ ​ is 15 meters, and EF is 8 meters. What is ​ DF ​? ____ m
What are the 5 Main causes of the french revolution
What effect does a in ax^2 have on a graph of a porabola
What is a major assumption of kelley's covariation model of attribution?
How does a good experimental conclusion differ from an inference?
In the triangle m∠1 = 42°, and m∠4 =81°. What is m∠2°? Question 5 options: 39° 99° 42° 132°
If u actually know how to do this and has the correct answer then answer please