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

How does the pistil of flowers help the plant reproduce?
angie, brad, and carlos are discussing a physics problem in which two identical bullets are fired with equal speeds at equal-mass wood and steel blocks resting
What general factors made the United States susceptible to the anticommunist paranoia of 1947 to 1953? What activities fanned the fury and paved the way for the
Why were some people critical of Britain's imperialist practices?
What is 448 rounded to the nearest tens?
post impressionism definition
similarities between islam and christianity
Tires must have a visible tread of at least __________ of an inch across the base.
fishing capital of the world
During the Federalist era, events in other countries did much to shape political party growth and domestic policy. Look at American relations with England, Spai