migelarias205
migelarias205 migelarias205
  • 11-11-2021
  • Computers and Technology
contestada

7.4 Lesson Practice (projectstem): what is output if the user is enters 2?​

74 Lesson Practice projectstem what is output if the user is enters 2 class=

Respuesta :

stapmoshun
stapmoshun stapmoshun
  • 11-11-2021

Answer:

18

Explanation:

lets go step by step.

the function called tryIt has a value, a variable named "a". this "a" variable will be whatever the user enters when the program says, Enter a number.

ok so if we enter "a" as 2, and b in the function will always be 7, and 2 + 7 equals 9,

and the ans variable (short for answer) will take the result of the function (9) and multiply it by 2,

then the answer is 18

Answer Link

Otras preguntas

Graph the line for this problem:    y=3x+6
Oil consumption is increasing at a rate of 1.8% per year. by what factor will oil consumption increase inn 6 years? Use the approximate doubling time formula (r
Why were Motte and Bailey castles replaced by stone castles?
Graph the line for this problem:    y=3x+6
which emperor wanted to return rome to its former glory
Which pair of rhombi are similar?
What is the annotations for the book The Giver
Laura jumped 2.3m in the high jump. Lucy jumped 20% lower. How much was Laura's jump?
Why is it important for scientists to be able to remove DNA from an organism? List two reasons.
What is the phenotype of gg x gg