audreyjj1386 audreyjj1386
  • 28-01-2020
  • Computers and Technology
contestada

Write a statement that assigns finalResult with firstSample plus secondSample, divided by 3. Ex: If firstSample is 18 and secondSample is 12, finalResult is 10.

Respuesta :

flightbath flightbath
  • 29-01-2020

Answer:

finalResult=(firstSample+secondSample)/3;  //coded inc++

Explanation:

The above code is executed in c++. As it involves basic arithmetic, so, if whole program has to be written,then they can be declared of type int,float or double as required and then the above statement must be used in which firstSample and secondSample has been added first and the result is divided by 3 to obtain the desired output.

Answer Link

Otras preguntas

Who was the first person to propose the existence of the atom?.
Two students keep track of their activities during one week as follows: Dana gets paid for $4$ hours, buys dinner once, and rides the bus $4$ times. Melanie ge
Escape From plot mountain
Which of the following is the highest-ranking taxa into which living organisms are classified in Linnaean taxonomy? Domain Trophic level Class Order.
What area of China does the Uyghur population live? Question 5 options: Beijing Xinjiang Tibet Taiwan
What is better DC or Marvel?
what role did the city of florence and italy play during the renaissance
According to this passage, what is one challenge that South Asia faces in balancing tourism and environmental protection?
Solve for all possible values of x. V6 – 5x= 0x-2
HELP I ONLY HAVE 2 mins to answer this! what is the m