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 you write a short Happy valentines' day quote to a strangers?
In the periodic table, how are elements in the same group related to each other? A.They have the same atomic mass. B.They have very different properties. C.They
Harris High School has 500 students. 16% of the students are taking biology. How many students are taking biology?
7-2(x-5) ............................
!!! According to the graph of H(w) below, what happens when w gets very large? H(w) (5.0, 20.00) A. H(w) moves left. B. H(w) gets very small C. Hw) moves right
PLEASE HELP DUE RIGHT NOW I HAVE 5 minutes !!!
HURRRYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY PLEASSSSEEEEEEEEEEEEEE Complete the sentence below about the book The Loner. After a long discouraging trip, t
Find the 5th term of (x+7)^7
Solve the system by substitution. y = 5x y = 9x + 4
can anyone help me please?