Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please try to write it in a good structure and well organized. thanks C++ 1. (20 marks) Write a program that asks the user to
please try to write it in a good structure and well organized. thanks
C++
1. (20 marks) Write a program that asks the user to enter two doubles and prints the sum, difference, product, and division of these numbers. If the second number that is entered by the user is zero, the program should print out a message that the Division can not be calculated. However, it prints the results for the other operations. Here are two examples of the execution of the program: Enter the first number: 15 Enter the second number: 4 The results are: Sum: 19 Difference: 11 Product: 60 Division: 3.75 Enter the first number: 10 Enter the second number: 0 The results are: Sum: 10 Difference: 10 Product: Division: can not be calculated because of the value 0 of the second number Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started