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

Is it necessary to add a zero after 1.08 to find the sum
Homo erectus is believed to be the first species found outside _____. Asia Europe Africa America
What point of view provides information about others? a. first person b. second person c. third person
Which number is greater than 7.23 and less than 7.55? 7.59;7.17;7.6;7.3
If p=5 what is the value of 6p-4?
Whom did Thomas Jefferson call servants of the people? A) slaves B) delegates C) kings D) soldiers
Which sentence has a misplaced adjective phrase? a. The antique chair in the dining room is creaky. b. The old antique shops along Main Street are fun to expl
Your skateboard ramp is 2 3/8 feet high. Your friends skateboard ramp is 2 2/5 feet high. Which skateboard ramp is higher?
World War II was one of the most significant events of the 1900s and one of the most important events in US history. Think about how much the United States chan
Mrs.Jacobsen purchased a 5-pound package of ground beef for $12.40. She decided to use 8 ounces each day for dinner recipes. What was the cost of ground beef pe