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

You can buy shampoo in a 5-ounce bottle for $2.99 or in a 15-ounce bottle for $11.89
2 Shown below is a cylinder, 6 cm ԱԾ 12cm Calculate the curved surface area. Give your answer to 1 decimal place.
what were the main causes of the 'reign of terror'
Describe the following works by DaVinci: The Virgin of the Rocks, the Last Supper, and the Mona Lisa.
You inherited $12,000 from your Great-Uncle Michael. If you invest it and average an 8% annual rate of return, compounded annually, how much will you have in 20
The process by which sperm from one flowers pollen fertilizes the eggs in a flower of a different plant is
The value of t can be determined by using the expression 2.75s. Which table represents the relationship between the values of t and s?
NEED HELP ASAP!!! Which is true about modeling a solution to an addition problem on a vertical number line? OA) When adding a negative number, you move down. O
Determine if a triangle with angle measures of 50,40,and 90 from a unique triangle more than one triangle or no triangle
What are transformations?