libbygillespie1749 libbygillespie1749
  • 18-01-2020
  • Computers and Technology
contestada

Write an expression that computes the integer average of the int variables exam1 and exam2 (both declared and assigned values).

Respuesta :

ijeggs
ijeggs ijeggs
  • 18-01-2020

Answer:

#include <iostream>

using namespace std;

int main()

{

   int exam1 = 70;

   int exam2 = 85;

   int examAverage;

   examAverage = (exam1+exam2)/2;

   cout <<"The Average of Exam1 and Exam2 is: "<<examAverage<<endl;

   return 0;

}

Explanation:

Using the C++, we declare the three variables all of type

exam1

exam2 and

examAverage

We assign initial values of 70 and 85 to exam1 and exam2 respectively

Answer Link

Otras preguntas

An elevator is on the 20 floor it goes down 11 floor and then up 5 floor what floor is the elevator on now
Plzzzzzzzzzzzzzzzzzzzzzzzzz helpppppppp meeeeeee
Although they borrowed aspects of the greek culture, such as ______, the romans developed a unique culture of their own.
In the diagram below lines ab and cd are _.
What happens to the body if the unirary system no longer functions? A. The body cannot fight infections B. Toxic cellular waste builds up C. Nutrients can not b
would the scale factor 4/5 reduce, enlarge, or preserve? . would the scale factor 7/2 reduce, enlarge, or preserve?
How does the dialogue in the excerpt further develop the conflict? Miss tesman reveals her frustration with the new mistress Miss tesman confesses her jealousy
Find the square (5p-9)(5p-9)
What question should you ask about your thesis statement when you want to refine and polish it ?
I know the answer is 18rad 3 but why is it 18rad3​