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

Why is genetic editing a bad thing?
First person to perform a controlled airplane flight in australia?.
Which choice shows the graph of a linear function?
* I NEED THIS ASAP * A box contains 4 bags of sugar. The total mass of all 4 bags is 6 kg. What is the mass of each bag in grams
31+4x-10=2x+5 please help this is for geometry I will give brainliest
Answer keeps getting marked wrong! need some guidance.. what is the mass in grams of 8000. mL of alcohol is the density of 0.79 g/mL? Use sig figs please
What value of x makes the equation true? -3x + 10 = 5x - 6
Given that (x + 2) is a linear factor of the polynomial x3 + 4x2 + x – 6, what are the other two linear factors?A. (x – 1) and (x + 3)B. (x + 1) and (x – 3)C. (
When a golf ball is hit, it travels at 41 meters per second. The mass of a golf ball is 0.045kg. Calculate the kinetic energy of the golf ball.​
The question is in the image, so please help me. I don't understand it.