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

Lawyers for each side of a case are questioning people who received a jury summons. What part of the trial process does this describe, and what will happen next
Tell what the following people are going to do tomorrow, by changing the present tense verb to the correct form of the future tense. Julio bebe la leche. Nosot
The perimeter of a rectangular garden is 338 feet. If the length of the garden is 96 feet, what is its width?
the perimeter of a square is 24 cm. what is the length of the diagonal
Which description of Adam Smith is accurate? A. author of Das Kapital and founder of communism B. author of The Wealth of Nations and "father of modern economic
The SI unit of power is the
A skateboarder on a half-pipe changes his velocity from 6.0 m/s forwards to 4.0 m/s backward in 5.0 s. What is the acceleration of the skateboarder?
What is 23 less than x?
The SI unit of power is the
a picture has dimensions of 5cm by 10 cm. if you want to enlarge the picture to a size of 31 1/2 cm by 65 by what fraction would you multiply the dimensions?