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

In class, jacob's teacher tells him she will give him extra credit if he can correctly identify the person and building on the face of the dime, quarter, and ha
Being pessimistic is a good way to improve your self-esteem. a. True b. False
Kellie walks 1/4 mile in 1/14 hour. At what rate does kellie walk
What will happen to the relative amounts of hydrogen and helium in the sun over the next few billion years? a. hydrogen will increase and helium will decrease.
A jury consists of five men and seven women. three are selected at random for an interview find the probability that all three are men.
The most recent treason indictment involved a U.S. citizen who was accused of turning into an operative for which of the following terrorist groups? Question op
I need help on how to write a personal narrative
Opportunity cost is a. the same thing as the money price of a good. b. the value of the next best alternative which was given up. c. the combined value of all t
States in which region receive more of their revenue from the federal government than do most other states? the west the northeast the midwest the south the non
What's the value of 5.8 divided by 1.2