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

Gary has 5 cm of string his project uses 1,750 mm how many more millimeters of string does Gary need
How can changing the temperature of water negatively affect the environment? A The water can dissolve rocks faster B Fish and aquatic animals are sensitive to
How many moles of LiMnO4 are in 0.107 Lof 2 M solution?
In one to two sentences, identify and describe the process by which the Grand Canyon was created. (2 points) Please help!!!
We have had up to date insulation put into the walls of our house. A. up to B. up to date C. date insulation D. Correct as is
Drag each tile to the correct box. Consider the three given functions. 6 h(x) X 1x) 4 -1 -8 2 0 -5 g*) = 21 - 7 х -6 --- - 2 2 6 1 -2 -2 2. 1 - 3 4 4 -6 Order t
is water a pollutant? Please help
Which is equivalent to 5x2y-5 / 10x6y10
A cat is fed a diet designed for dogs. Which amino acid is most likely to be deficient in this cat's diet?
what are three major lines of evidence that mitochondria arose from endosymbiosis with proteobacteria?