fabulous43 fabulous43
  • 02-09-2017
  • Computers and Technology
contestada

Write a C++ Program to read 2 grades from the keyboard ( Math and Physics ) .

Respuesta :

tonb
tonb tonb
  • 04-09-2017
cin is discouraged, so I'd go with:

string math, physics;
getline(cin, math);
getline(cin, physics);

of course, parsing needs to happen to verify that a correct grade was typed...
Answer Link

Otras preguntas

The ____ movement had a profound effect on education
List the elements of the sample space defined by the experiment. (Enter your answers as a comma-separated list.) Select an even single-digit whole number.
calculate the change in GPE stored when a 15 kg post driver is lifted by 70 cm
Apply a four-point refutation about divorce
what is the value of the expression? 5.32 × 1.9
when you are dividing two decimals, how can you check whether you have divided the decimals correctly
The gcf of two numbers is 50. Neither number is divisible by the other. What is the smallest that these two numbers could be?
Producers are organisms that obtain their energy from sunlight. Consumers obtain their energy from eating food. This food may be producers, other consumers, or
An investor puts ​$500 in an account that pays 3​% interest compounded annually. Find the account balance after 6 years.
The speed of light in a certain medium is 61.2% of the speed of light in vacuum. What is the index of refraction of the medium?