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

Air has a density of 1.3 kg/m³. Calculate the mass of 36 m³ of air in kilograms. Give your answer to 1 decimal place.
During a massive construction project, a city came across a treasure trove of archaeological sites under its streets. It decided to call in an expert to help de
If you are looking for a job and are underage, you need a ___.
Clara's weight is in the 30th percentile. This means that _____ percent of all babies her age weigh less than she does and _____ percent of all babies her age w
Bob has a concession at Yankee Stadium. He can sell 500 umbrellas at $10 each if it rains. (The umbrellas cost him $5 each.) If it shines, he can sell only 100
Find the volume. Explain if you can! Thanks.
HELP ME PLEASE !!!! BEGING YOU Question: In parallelogram QRST, find the measure of angle Q with the given information.
214.2 Quiz: Introduction to ProofsQuestion 2 of 102 PointsTrue or false? In a two-column proof, the left column contains a series ofdeductionsA. TrueB. False​
Frida started to solve the equation 3x = 36 by adding 3 to both sides. Explain why Friday’s method will not solve the equation.
What was a product of neolithic culture