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

What year was it when the Romanov Castle was. invaded?
Please help me ASAP!
What is the first step in dna replication?
In which of the following situations would summarizing be most useful? A. writing a synopsis of a book B. looking for statistics for a newspaper column C.
What is the distance in units between (−11, −20) and (−11, 5) ? −25 <-----? (I think its this) −15 15 25Am I right?
Which of the following describes a similarity between Ferdinand Magellan And Harnán Cortés
The actual distance between two villages is 120 kilometers. On a map of the area, 0.5 centimeter represents 2 kilometers. What is the distance between the vill
Need help with this please it's on exponential functions
Julio: ¿Y hay _____________________ bonitas en la piscina?
how many types of insurace are there?