Write a program in C++ which adds, subtracts, multiplies, divides and perform exponentiation on two specific numbers.  The two numbers should be entered by the user.     Each output should include a string describing what the numerical output is being displayed. Use the if-else-if ladder so that the user is able to select which mathematical function to perform.  Make sure the program has a neat menu for the user to use to select their choice.  Also, avoid having the computer perform a division by zero if the user attempts it by outputting a warning message in its place (use an if-else statement).  Include your C++ source code as well as the output of your program in your submission

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question
100%

Write a program in C++ which adds, subtracts, multiplies, divides and perform exponentiation on two specific numbers.  The two numbers should be entered by the user.     Each output should include a string describing what the numerical output is being displayed.

Use the if-else-if ladder so that the user is able to select which mathematical function to perform.  Make sure the program has a neat menu for the user to use to select their choice.  Also, avoid having the computer perform a division by zero if the user attempts it by outputting a warning message in its place (use an if-else statement).  Include your C++ source code as well as the output of your program in your submission

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning