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

Look at the image, read the sentences, and choose the option with the correct sentence that matches the image.Where is the table?A. Delante del sofáB. Detrás de
Factor completely: 10a2 - 15a + 4ab - 6b. A)(2a - 3)(5a + 2b) B)(2a - 3b)(5a + 2) C)(2a + 3)(5a - 2b) D)(2a- 3) (5a²-2b)
4. Los usuarios del transporte público llegan en forma aleatoria e independiente a una para de autobús. La tasa media de llegada es 10 persona por minuto. a. Ca
Given the definitions of f(x) and g(x) below, find the value of (gºf)(-4). f(x) = -2x - 3 g(x) = 2x2 – 2x – 8
Write the ratio 2/3/4/5 in simplest form
What is proof reading
How can knowing your learning style help you be a more succesful student? 8-10 sentences.​
This is for school. Is is presentable? please help me. Chapter 1 Alex By: KiKi He was walking all alone. Normally everybody just kicked me and said scam, but he
1Use the Zero Product Property to solve for x. a. (x +13)(x - 7) = 0 b. (2x+ 3)(3x - 7) = 0 C. x(x-3) = 0 d. x^2 – 5x = 0 e. x^2 – 2x – 35 = 0 f. 3x^2 + 14x - 5
What is the meaning behind “there is no constitutional right to vote”.