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

Can someone help solve, 3y+6=30-7y
How do u do this problem: W/6+5/8=-1 3/8 I got this answer: -1 53/64
Ho long does it take for the Moon to show all its faces? Thank you❤
which type of energy is associated with random motion of atoms and molecules in a sample of air? 1.chemical energy 2. electrical energy 3.nuclear energy 4. th
Why is man a special creature? What two worlds does he share in?
briefly describe the five stages of the cell cycle
why did some people treat native americans so badly?
Let E and F be independent events in a sample space S with Pr[E] = 0.4 and Pr[F] = 0.2. Find Pr[EUF] A.0.60 B.0.52 C.0.40 D.0.32 E.0.08
A non-metal usually forms 2 covalent bonds in its compounds.How many electrons will it take in its valence shell?
What builds proteins in a cell?