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

Dena is biking down a 9/10 mile bike trail. She stops to greet a friend after biking 1/3 of a mile. How much farther does she need to travel?
Simplify the expression below 5+3*2-4^2*|-2| A) 43 B) 48 C)-16 D)-21
What is Charles Darwin's major contribution to science? A. He categorized thousands of species to compare their different traits. B. He explained how species ev
the committee to plant more trees has raised 40% of their goal. they want to raised $3,000. How much more money do they need to raise to meet their goal
Multiply. –1.1 • (–8) = A. –88 B. –8.8 C. 8.8 D. 88
Electromagnetic technology is used in many different ways today. Which of these are uses of this technology?
During Gupta India's golden age, many cultural and scientific achievements were made. What did Aryabhata contribute to this era? created great poetry and litera
as the wavelength of A wave in a uniform medium increases, its speed will what?
Abe and Ben each have a certain number of dollars. If Abe gives Ben $5 then Abe and Ben will have the same number of dollars. If Ben gives Abe $5 then Abe will
Help!!!! Add. 7 2/15+ 5 2/3+ 9 13/15 A.21 2/3 B.20 2/3 C.22 2/3 D.21 10/15