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

what is 3 2/5 times 2 1/3
What is one fact about xuchal
The data represent the ages of people working at a store. 19, 27, 20, 26, 20, 24, 32, 23, 20, 19, 21 What is the first quartile of these ages?
How many union ships did the Virginia sink?
Why do automobiles rust more easily in wet climates than drier climates?
A moving company is trying to store boxes in a storage room with a length of 5 m, width of 3 m and height of 2 m. How many boxes can fit in this space if each i
how do you solve 2.75+.003+.158=
Wanda, the Channel 1 weather person, said there was a 30% chance of rain on Saturday and a 30% chance of rain on Sunday. Should Wanda be fired? HELP PLEASE
A hiking club has 9 members. How many ways can they choose a president, vice president, secretary, and treasurer from among the members?
The tickets for the concert are selling for $12.00. Juanita is going to the concert with a group of 25 people. There is a discount of 1/8 off each ticket for gr