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

Python question 4.2: Question 2
name a country which has very high percentage of land under pasture
How were minorities treated in nazi Germany​
For what values of m, the relation K= {(-1.5m +4, -23), (6m - 7,23)} is not a function
6. When working at height do not assume that roofs are fragile unless you can confirm otherwise 7. Put in place emergency rescue arrangements. 8. Fit appropria
any news reported in a biased manner can cause _______ and disharmony​
Which of the following functions best describes this graph?​
If p/q=q/r then prove that p3+q3+r3=(1/p3+1/q3+1/r3)p2q2r2​
A pet store has three aquariums for fish. Aquarium A contains 24 fish, Aquarium B contains 51 fish, and Aquarium C contains 36 fish. Which of the following grap
Is it possible to make muscles denser/tighter/thicker without making more muscle