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

good morning, help im dum Match the structure in column 1 to the characteristics in column 2. A. Moho barrier B. Oceanic crust C. Upper mantle D. Lower mantl
Because of her injury, tina's right ankle is inflamed. what are the characteristics of inflammation?
find all the solutions to the equation
A fine-grained sedimentary rock is known as _____.
Find the missing side lengths.
Selena is reading a book when she feels a tear roll down her cheek. at the same time, a feeling of sadness overwhelms her. this scenario is most in line with wh
in what way were duchamp and hoch alike?
○horizontal translation of -1 followed by vertical translation of -2○ vertical translation of 1 followed by a horizontal translation of 2○ horizontal translatio
One assumption that distinguishes short-run cost analysis from long-run cost analysis for a profit-maximizing firm is that in the short run, a. the size of the
Michael is giving his friend feedback on her paper. Which sections of his review contain constructive feedback?