You are hired by a software company to write a C++ console which will work as a simple calculator. This program can take two numbers from the user and calculate the summation, subtraction, multiplication, division and modulus of two numbers. First, prompt the user to take two numbers from the user. Define a function takeInput() which is called from main function to take the input. After taking the input, user can select an option by entering any of the character: s- summation k- subtraction m- multiplication d- division p- modulus otherwise- program shows enter a valid input You can define a function void Menu() to control the input. You should define a switch case for controlling the options. For each option, you have to create five different function which will give you summation, subtraction, multiplication, division and modulus of two numbers.
You are hired by a software company to write a C++ console which will work as a simple calculator. This program can take two numbers from the user and calculate the summation, subtraction, multiplication, division and modulus of two numbers.
First, prompt the user to take two numbers from the user. Define a function takeInput() which is called from main function to take the input.
After taking the input, user can select an option by entering any of the character:
s- summation
k- subtraction
m- multiplication
d- division
p- modulus
otherwise- program shows enter a valid input
You can define a function void Menu() to control the input. You should define a switch case for controlling the options.
For each option, you have to create five different function which will give you summation, subtraction, multiplication, division and modulus of two numbers.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 6 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)