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

Alice spent 6 minutes on each factoring problem and 3 minutes on each evaluation problem. she spent a total of 42 minutes on 9 problems. how many minutes did sh
How and where (at what latitudes) do atmospheric convection cells form?
Why do you think James Meredith continued his march, even after he was shot?
Solve for x. Assume that lines which appear tangent are tangent.
Farmer brown built a rectangular pen for his chickens using 12 meters of fence. • he used part of one side of his barn as one length of the rectangular pen. • h
Characteristics of the early u.s. navy "super frigates" included ______________. select all that apply.
Through what system is glucose delievered to cells for cellular respiration
Write each statement as an algebraic expression. The product of two numbers, p and q, decreased by three times their sum.
What is skeletal connective tissue? Give its function
A circular swimming pool has a diameter of 12 feet. What is the circumference the pool? Use 3.14 to approximate for π . Enter your answer, as a decimal rou