Question: I need help on forming the code in C + + . Keep getting errors and would love some help. Goal: Learn how to read

I need help on forming the code in C++. Keep getting errors and would love some help.
Goal: Learn how to read and store values from standard input.
Assignment: Write some code (not a complete program) that declares three double variables and reads three double values from the input and prints out their weighted average. The first number has a weight of 1, the second of 2, and the third of 3.
Sample Run (User input inside >)
3>
6>
2>
7.0
I need help on forming the code in C + + . Keep

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!