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

I need Help Don't know
four fifths of senior class went to prom. if 324 seniors went to prom, how many are there in the senior class
Write the meaning of an object has 2 meter length
can a body be regarded in a rest as well as at motion in same te
Answer plz I will give brainiest for the first to answer correctly.
Vicky created a map of her neighborhood on a coordinate plane. Her house is located at (-3, 6) and her school is located at (-3 -1) How far, in units, is Vicky'
Find q if p = -1/2 and the quotient pq = -3.
Read the following actions and decide if they are responsible or irresponsible. checking my credit score: paying a credit card bill one day late: listing e
can you guys please help me answer all of those questions on the picture?? I'm having some difficulties! thanks
In this triangle, AB=6. Find the length of one of the legs.