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 the awnser to 96x67+362-1220+2=
The local supermarket buys lettuce each day to ensure really fresh produce. Each morning any lettuce that is left from the previous day is sold to a dealer that
Mrs. Lopez had $150.55 in her checking account. She wrote checks for the following amounts: $45.76, $35.82, and $79.00. What is the new balance in Mrs. Lopez’s
Identify the domain of the function shown in the graph.
Which of the following expressions is equivalent to the expression 42 + 90
At what step in the scientific method does a scientific propose the problem that he or she wants to solve
Two cars start from the same place at the same time One car travels west at 70 miles per hour and another travels east at 20 miles per hour in how many hours w
What industry will cut jobs due to the Coronavirus pandemic? CNN 10
Read this excerpt from The Outsiders. I’m different that way. I mean, my second-oldest brother, Soda, who is sixteen-going-on-seventeen, never cracks a book at
HELP ME How was monkey king punished for refusing to be a monkey