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

Why do you like art.
Your friend saves $12 per week. How many weeks will it take your friend to save enough to buy the bodyboard? HURRY
Which numbers are​ irrational? Which numbers are​ irrational? Select all that apply. A. Square root of 25. B Square roof of 72. C. Square root of 144. D. Square
help me..........A line has slope 5 and y-intercept - 3. Which answer is the equation of the line?​
Given the expression below, which statement is true about the parentheses? 10 + (26 - 4)*2 1.The parentheses indicate that 10 * 26 should be simplified last 2.T
Define empathy in your own words
please help!!!!! what is -x+2x???
The period of development during which a child develops into an adult is called? A. Childhood process B. Adolescence C. Teen years D. Blooming
Which two patterns are used to arrange elements in the periodic table?
Examples of sociological imagination