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

What is a series of events that cells go through as they grow and divide
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5
Fragment in this sentenceWith her heavy dictonary, Donna thumps the top other ancient computer monitor.  Whenever the color tint flickers from normal to sickly
True or False along a divergent boundary, two plates slip past each other,moving in opposite directions.
how is the expression of sex linked genes both  similar to and different from the expression of autosomal genes?
what is the simplest square root of 1345? no decimals please
How did the Declaration of Independence change the nature of the American Revolution?
What sorts of signals does the brain use to communicate sensations, thoughts and actions?
when we look at a leaf, we see the colors of light that are reflected off its surface. how does the relatively low flow of oxygen in green light?
Fragment in this sentenceWith her heavy dictonary, Donna thumps the top other ancient computer monitor.  Whenever the color tint flickers from normal to sickly