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

How many corners are in a rectangle and how many flat faces
Maria exercises for 2 1/7 hours every Saturday. She runs for 1/3 of the time that she exercises. How much time does she spend running every Saturday?
Why can't we change the subscripts in balancing chemical equations?
what were the four main causes of the Cold War
What is Germany in German?
what were the four main causes of the Cold War
A special form of loose connective tissue that pads and insulates the body and stores fuel reserves is known as (A) epithelial tissue. (B) adipose tissue. (C) f
Hinge Joints-These jointscan only move in one direction, like a door hinge. One bone works against another. Movement is back and forth on one plane.Examples:___
Maria exercises for 2 1/7 hours every Saturday. She runs for 1/3 of the time that she exercises. How much time does she spend running every Saturday?
What would be m minus 4 in an algebraic expression