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

what does transform mean
Work out the surface area of a cube of edge 2m
Which child is least likely to develop a psychopathic personality? a. A child who lacks the opportunity to form an attachment in the first three years of life
the mass of a textbook is about 1.25 kilograms. about how many pounds is this?
Which of the following devices electronically sorts mail by ZIP code? A. Optical character reader B. Electronic organizer C. Fax modem D. Handheld scanner
Janow practices basketball every afternoon in her driveway each day her goal is to make 4 more baskets then she made the day before if she makes 10 baskets the
Is a bobcat a consumer
The first step in writing a critical essay is to be very familiar with the text. TrueFalse
The conflict that occurs when a person holds two contradictory attitudes or thoughts is called __________.
A normal fault is a result of a type of stress known as what?