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

Women readily develop lower body fat around the hips and thighs and men readily develop central body fat around the abdomen. This primarily is due to gender dif
PLEASE HELP ME WITH THIS QUESTION ASAPP
The guy wire is approximately blank feet long
Tanto Andrés como su hermano Jaime tienen guardado su propio dinero. Andrès sabe que tiene el triple de dinero que su hermano, así que decide darle 130€ Después
What are the general requirements and major impacts of the gdpr, and how does this law differ from data protection legislation in the united states?.
If the concentration of red dye #40 in the original syrup is 4. 68 x 10-3 m, what is its concentration in dilution #3?.
Sean is a monopolist who operates a business rigging tablets to run twice as fast as the original specifications. If sean charges $40, he would have 10 customer
If f ( x ) = x 2 and g ( x )= 2x - 2, find f ( g ( 7 ) )
Lee y escoge la mejor respuesta. Read and select the best answer. Algunas personas no quieren usar dinero o bancos tradicionales ya que no desean pagar gastos a
Compute your average velocity in the following two cases: (a) You walk 73.2 m at a speed of 1.22 m/s and then run 13.2 m at a speed of 3.02 m/s along a straight