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

one more, i promise lm`ao Read the following statement: Line segment CD is congruent to line segment XY. Which of the following is an equivalent statement? A) C
Plz help me out ...And pls don’t use my points and don’t say idk sry in the answer’s
To determine the relative age of rock layers 1-3, you could use the principle of
Find the equation of the line. Use exact numbers. y=
PLease help Rewrite the following phrases in the plural form. Form complete sentences. Pay attention to the pronunciation. 10. Je mets un pantalon gris: Nous___
In order to participate in the government of Anthens, one had to be a- A.free male B.male who served in the military for at least 5 yrs C
how does skin protect the body from pathogens?
The government was called the Fengjian.
Two fathers and two sons are in a car, yet there are only three people in the car. How?
A boy wants to purchase 1,400 green marbles. If there are 70 green marbles in each bag, how many bags of marbles should the boy buy?