subject

Assign a constant named year with the value 2050.
edit the statement mynewage = mycurrentage + (2050 − currentyear) so it uses the constant named year.
edit the statement print("i will be" + str(mynewage) + "in 2050.") so it uses the constant named year.
execute the program and verify that the output is correct.

# this program calculates your age in the year 2050.
# input: none
# output: your current age followed by your age in 2050

mycurrentage = 29
currentyear = 2016

mynewage = mycurrentage + (2050 - currentyear)
print("my current age is " + str(mycurrentage))
print("i will be " + str(mynewage) + " in 2050.")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Page orientation can be either landscape or
Answers: 1
question
Computers and Technology, 22.06.2019 01:00
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
You know the right answer?
Assign a constant named year with the value 2050.
edit the statement mynewage = mycurrentage +...
Questions
question
Biology, 08.12.2020 01:40
question
Mathematics, 08.12.2020 01:40
question
Mathematics, 08.12.2020 01:40
question
Social Studies, 08.12.2020 01:40
Questions on the website: 13722367