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

My science exam is due tomorrow and I HAVE LIMITED TIME. can someone help me how to absorb anything you read and memorize it...
The Environmental Protection Agency fights factories that have caused pollution and environmental damage. A child struggles to overcome depression after his fat
Find the critical value. Assume that the test is two -tailed and that n denotes the number of pairs of data. n = 20, α = 0.01 A) -0.570 B) 0.570 C) +0.447 D) +0
Lee y escoge la mejor respuesta Read and select the best answer. Uno de los aspectos más esperados y polémicos de la legada de Tesla a España es el piloto autom
Things to sketch for summer please​
A. 2B. 1/3 C. 5D. -3​
Question 3 (Mandatory) (2 points) Modernist poets were concerned with all of the following except: Crowded and crime filled cities. The Alienation of the indivi
Nitrogen-13 has a half-life of 10 minutes. How much of a 128 mg sample would remain after 40 minutes?
Is it possible for an object to be in equilibrium (no net force), if only one force is acting on it ?
When one observes spalling in a fire, the following conclusion can be drawn