Question: how would i write this in C++ Write the necessary program in t++that does the following: 1. Asks the user to input two decimal numbers

Write the necessary program in t++that does the following: 1. Asks the user to input two decimal numbers by using a prompt "Enter a decimal number: "on the screen for each number 2. Reads the user's inputted decimal values from the keyboard and Stores it in the variables called number1 and number2 3. Calculates the sum of those two numbers and Stores it in a variable called total 4. Displays the two inputted values and the sum with proper labels to the values, on the screen e.g., if the user entered 3.2 and 7.1 as the inputs on the keyboard, then the output should be: The first number is: 3.2 The second number is: 7.1 The total of the two numbers is: 10.3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
