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

What is it about adolescent thinking that makes them better problem solvers than children?
Based on what you have learned so far, how is the world of scout and jem different from the "world of maycomb"
let x stand for the number of bananas in one bag. write an equation to find x. 7 bananas in total 3 bags and one banana. bananas in each bag14 bananas in total
How did Belgian imperialism in Africa differ from British imperialism
let x stand for the number of bananas in one bag. write an equation to find x. 7 bananas in total 3 bags and one banana. bananas in each bag14 bananas in total
Compute the requested average. Tim Worker receives the following income monthly from a second job. July Aug. Sept. Oct. Nov. Dec. Jan. Feb. Mar. Apr. May June
which expression is equivalent to (125^2/ 125 4/3)? A. 1/25 B.1/10 C.10 D.25
Nathan and Sydney start out together on a bike trail that is 24 miles long. Nathan bikes at 88 miles per hour while Sydney bikes at 12 miles per hour. Which sta
2 equal x subtract 9x equals 14
Can someone please help me