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 3x – 10 = 17, what is the value of 6x + 20 ?
What is twenty percent off 600 hundred pounds
Why did immigrants tend to group together in cities?
What is the value of 6P6?  A.1  B.36  C.720  D.46,656
What is the value of 6P6?  A.1  B.36  C.720  D.46,656
Indicate which pattern of evolution is shown by the many species of finches on the Galápagos Islands.
How long does water evaporation take? What factors influence it?
Why can't plants and animals use the nitrogen directly from the atmosphere? Answer A.There is not enough of it in the air. B.Nitrogen gas contains the element i
What is the biggest cause of extinction today? a. pollution b. exotic species c. global warming d. habitat loss
Write good insulators around the home