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 First Continental Congress sent a petition to King George. What did it proclaim?
a 9 gram sample of a substance that's used for drug research has a k-value of 0.1459
Gunpowder was brought to europe during the crusades. what advantage did it give european explorers over the natives in lands they were exploring
Secular governments often limit _____A.wealth b.poverty c.freedom d.health care
WHAT IS A COMMON NAME FOR SODIUM HYDROXIDE?
Which of the following points lies on the circle whose center is at the origin and whose radius is 13? (-5, 12) (, ) (6, -7)
Find three points that solve the equation, then plot on the graph -5x-3y=-7
What is the product of a substitution reaction if the reactants are fluoroethane and sodium hydroxide? a. ethanol and sodium fluoride b. flouroethanol and sod
Find the missing number ? – 4 = 4
Which of the following pairs share the same empirical formula? CH4 and C2H4 PbCl2 and PbCl4<----- my answer, correct? NO2 and N2O4 C2H6 and CH4