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

how is temperature defined in terms of molecular action?
How is excess ATP stored for later use?
is 67,000 a whole number
Which is the smallest social class in Mexico? poor middle rich
The Arabian Sea touches a. Pakistan. b. Nepal. c. Bangladesh. d. Bhutan.
CAN U PLEASE HELP ME!!!!!!?????????????????? Which are characteristics of life in Sparta but not Athens? Choose all answers that are correct. A. People elected
Which of the following examples likely occurred through natural selection? A.Some humans have hair on the middle part of their fingers, while others do not. B.G
write 7/12 as a percent
Which pronunciation rhymes with the word toy? now boi out gO
A(Although) it is not a fast runner, B(wolves) can maintain a loping run for many miles, C(running) throughout the night D(if necessary). ENo error (A) (B) (C