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

The Babylonian Exile was also known as the Babylonian Exodus. Captivity Diaspora. Migration
Tamara bought one quart of juice. She drank one pint of juice. How many cups are left?
For your US history class, you are assigned to give a speech about how the US economy has significantly changed in the past 200 years. Which US historical event
preventing the outbreak of a new war is the purpose of who
In its early days, the colony of Georgia prohibited representative government and
Tamara bought one quart of juice. She drank one pint of juice. How many cups are left?
Find the midpoint of the line segment whose endpoints are (0, 1/2) and (0, 3/4). (0, 2/3) (0, 5/8) (0, 1 1/4)
Who was Robert Oppenheimer?
The argument that the United States was meant to expand across the United States was known as Manifest Destiny
a 14 ounce energy drink contains 10 1/2 teaspoons of sugar. How much sugar is in one ounce of the drink?