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

Given: f(x) = x - 7 and h(x) = 2x + 3 Write the rule for h(f(x)). h(f(x)) = 2x - 11 h(f(x)) = 2x - 7 h(f(x)) = 2x - 4 h(f(x)) = 3x - 4
Which of the following is NOT TRUE in determining if two graphs are inverses of each other? The graphs are reflections of each other over the line y = x The gra
Need help! spanish question
What is the value of | -17 |, which is read, "the absolute value of 17"?
Read this excerpt from Robert Stawell Ball’s Great Astronomers: Though every child may now know more of the actual truths of the celestial motions than ever Pto
Andrew jackson's presidency coincided with the important changes in american politics. discuss how jackson benefited from, and contributed to, the vibrant polit
What is 2/3 – (-2/3)? A. -4/3 B. 4/3 C. 0 D. 2/3
when you are giving a presentation, which of these elements will assist you to explain the content better? a. slide layoutb. design theme c. speaker notes d. sl
What percent of 36 is 9?
Use the periodic table to determine what element cesium-135 () becomes after beta decay.