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

Name two reagents used during the laboratory preparation of oxygen and write an equation for this reaction.​
What are equal to 321 Decimeters
a letter to your friend telling him how the pandemic has affected your education​
What is the author's purpose in writing "Hills Like White Elephants"? In other words, what idea or ideas does he hope to communicate?
Which SI unit would be most appropriate for expressing the mass of this animal
Find the quotient of 1 1/5 and 3 4/5
. How do the presidential and parliamentary forms of government differ from one another? Responses A. The presidential form has an executive branch and a legis
What are the pros and cons of several renewable energy sources? Renewable energy sources include biomass, wind power, hydropower, solar power, and geothermal po
Which statement best explains how the abolitionist movement exemplified the change it sought to bring about?
Jenny wants to buy cereal that comes in large and small boxes. The 32-ounce box costs $4.16, and the 14-ounce box costs $2.38. Find the unit cost for each, then