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

Help not sure of the answer would appreciate help
Applying the concepts. Find the value of.
Which is a case of drug abuse? a. taking an analgesic whenever you have a headache, no matter how mildB. taking double the dosage, by accident, of a medicine th
I need help on this question plz answer me plz
A proton enters a constant magnetic field of magnitude 0.050 t and traverses a semicircle of radius 1.0 mm before leaving the field. what is the proton's speed?
There are 8 ducks swimming in a pond. If 6 have green wings and 2 have blue wings, what fraction of the ducks have blue wings?
Write a Let" statement for the unknown, write an equation, and solve the equation. 11. Jane bought a number of records for $7 each. She then spent $3 more for a
A sudden change in the body’s salt and water balance would most likely be caused by a malfunction in which organ?
The magnetic field a distance 2 cm from a long straight current-carrying wire is 2 × 10–5 t. the current in the wire is:
-2 2/3, -5 1/3, -10 2/3, -21 1/3, -41 2/3 Which formula can be used to describe the sequence? A. f(x + 1) = –2f(x) B. f(x + 1) = f(x) C. f(x + 1) = f(x) D. f(x