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 majority of the fluid in the body is the __________.
Which input/output table corresponds to the graph of the function shown below? The first image is the input/output table, the second image are all the options.
Can some one explain how to do this please?
An equilateral triangle with sides of length 6 is inscribed in a circle what Is the diameter of the circle
True or false the England and soviet union were allies during world war ll.
why do you sometimes have only one multiplication sentence for an array?
Which types of cells are surrounded by a plasma membrane made of two layers of phospholipids and integrated membrane proteins?
PLS HELP ASAP!!!!!!!! PLEASE!!!! On the map, which feature is identified with the letter "U"? A) Great wall of china B)Genghis Khans invasion route C) Silk road
Which character best illustrates the concept that passion can inspire both love and violence? A.Juliet B.Romeo C.Lord Capulet D.Friar Laurence
Use substitution to solve for y in the system of equations. 5x + y = 6 3x - 3y = 18 A. y = -4 B. y = 8 C. y = 16 D. y = 2