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

If y = x2 + x -1, find y if x = 3. y =
Which of these provide the best pictures to go with the word abstract? A. A snowstorm B. A city street C. A strange painting D. A graffiti-filled wall
5. The value of ACOR stock rose 4.5% during June. The stock sold for $28 a share at the end of May. How much did the value of ACOR stock increase during June?​
Please helpppppp!~ I don't remember if I'm suppose to divide -12 by 7 or wut!
what area contains Newfoundland, with industry focused on mining ,logging, and fishing
Write a story that incules the sentence “ would he be able to convince them? “
4. (03.01 MC) Read, look at the image, and choose the correct option. (2 points) -Me gusta la banana. -No me gusta la banana. -Me encanta el pimiento. -No me en
A sofa is priced at $661.50. There is an 8% sales tax rate. What is the sales tax for the sofa in dollars and cents?
6. Cereal costs $2.79 for 16.4 ounces. At this rate, if you buy 25 ounces, how much change would you get back from a $5 bill? (Round answers to nearest hundredt
asap please question 444444444j if jritjti rn fjjf​