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

Which MAJOR body of water borders the nation of Israel?
In which ways does Odysseus’s character change over the course of The Odyssey? Check all that apply.
need help with this equation
There are 24 plants growing in the garden. Five-sixths of the plants are vegetables. How many vegetable plants are growing in the garden?
Active transport is different from passive transport in that active transport involves
PLEASE HELP ASAP Which of the following does not have a negative connotation in the excerpt from “the divine comedy” A. Leopard B. Lion C. Greyhound D. She-wol
m∠R = 120 and m∠S = 110. Find m∠T. The diagram is not to scale.
An orchestra needs 2 minutes to set up for a piece, and each piece is at least 10 minutes long. What is the greatest number of pieces that can be played in 1 ho
Which expression has an irrational answer? A) 4+2.5 B) 3x 1/3 C) 2x ^7 D) 1.25+ 4.25
Jeff has $24. He spend $10.81, including tax, to buy a new DVD. He needs to set aside $10 to pay for his lunch next week. If peanuts cost $0.38 per package, inc