shaylasimonds81 shaylasimonds81
  • 04-03-2020
  • Computers and Technology
contestada

Write a program that has variables to hold three test scores. The program should ask the user to enter three test scores, and then assign the values entered to the variables.

Respuesta :

thamimspartan thamimspartan
  • 10-03-2020

The solution program has been coded in C language. It can be different for any other programming language

Explanation:

#include <iostream>

using namespace std;

int main()

{

   int score1,score2,score3;

   cout<<"Enter Test score 1\n";

   cin>>score1;

   cout<<"Enter Test score 2\n";

   cin>>score2;

   cout<<"Enter Test score 3\n";

   cin>>score3;

   cout<<"Test Score 1 : "<<score1<<"\n";

   cout<<"Test Score 2 : "<<score2<<"\n";

   cout<<"Test Score 3 : "<<score3<<"\n";

   return 0;

}

Answer Link

Otras preguntas

First former ffa member elected to u.S. Presidency
Do you prefer to qpply formats before text is typed while typing or after typing?
The small intestine is superior to the diaphragm true or false
Plz help the ones with question marks
Economically a “need” is something
What ultimately contributed to the weakening of the Persian Empire?
Simplify 6 - 4[x + 1 - (y + 3)] + 5y. -4 + 2x + 3y 8 + 2x + 3y 14 - 4x + 9y 22 - 4x + 9y
A point in the figure is selected at random. Find probability that the point will be in the shaded region
The line y = –2x – 8 is graphed. Which ordered pairs are solutions to the equation? Check all that apply. (–8, 8) (–6, 2) (–2, 4) (0, –4) (2, –12)
I ran 240 times last year. I swam 712 times last year. I played soccer 189 times last year. Howmany times did I exercise last year in all?​