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

how would i write this in C++
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

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

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 Databases Questions!