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

In Figure 1, ABCD is a rectangle with AB = 12 cm and BC= 7 cm. AK= BL= CM= DN = x cm. If the area of KLMN is 54 cm², find x.
A pencil is 712 inches long. How long is the pencil in centimeters?
Instructions: Multiply all the elements of the equation by the least common multiple to simplify, and then solve. Use fractions rather than decimals in your ans
Why is sugar an organic compound
carbon 10 has a half-life of 19.29s. if you have 1.53 kg, how long will it take until you have less than 10.0 g.
when we got up it __ (rain). supply the correct from the verb​
Reciprocal of (3/7)^2
Which of the following is a true statement regarding latex allergy
what is the type of introduction of lebanon's drinking water​
Comparative study of rainfall in Kerala and chhattisgarh through bar graph