Question: C++ -======================- For this project, you are required to build a simple calculator simulator in C++ You are required to implement all operations (explained in
C++ -======================-







For this project, you are required to build a simple calculator simulator in C++ You are required to implement all operations (explained in this document) as separate functions. Each function will be responsible for one mathematical operation. C++ has a very convenient mathematical library, but unfortunately you cannot use it. So, you need to write your own function for each operation. The code for the functions that implement the root, power, LCM (least common multiple), and GCD (great common divisor) is given at the end of the document. You are ALLOWED to copy and paste those functions into your project and use them The user must choose which operation she/he will perform based on a menu option displayed. Once an operation is selected and performed the program should return to initial menu. This shall happen until the user select the quit" option. It is expected a welcome" message in the main menu and "exit" message when exiting. Both should be implemented as functions, returning the string with the messages. If no correct option is selected, the user will be asked again for a valid input. Operations: addition, subtraction, multiplication, division, roota, powerb percentagec least common multipled greatest common divisord and modulus; a The user must specify the number and the nth-root desired: see algorithm in the end of this document. b the user must specify the exponent - a, where "a" and "n" will be provided by the user, and must be positive =in the format of X% of N, where N is a number and X the requested percentage of that number (it is up to you how to handle the input, as long it is correct) assume that these operations work only with positive integers The next page shows an example of menu and execution shown to the user For this project, you are required to build a simple calculator simulator in C++ You are required to implement all operations (explained in this document) as separate functions. Each function will be responsible for one mathematical operation. C++ has a very convenient mathematical library, but unfortunately you cannot use it. So, you need to write your own function for each operation. The code for the functions that implement the root, power, LCM (least common multiple), and GCD (great common divisor) is given at the end of the document. You are ALLOWED to copy and paste those functions into your project and use them The user must choose which operation she/he will perform based on a menu option displayed. Once an operation is selected and performed the program should return to initial menu. This shall happen until the user select the quit" option. It is expected a welcome" message in the main menu and "exit" message when exiting. Both should be implemented as functions, returning the string with the messages. If no correct option is selected, the user will be asked again for a valid input. Operations: addition, subtraction, multiplication, division, roota, powerb percentagec least common multipled greatest common divisord and modulus; a The user must specify the number and the nth-root desired: see algorithm in the end of this document. b the user must specify the exponent - a, where "a" and "n" will be provided by the user, and must be positive =in the format of X% of N, where N is a number and X the requested percentage of that number (it is up to you how to handle the input, as long it is correct) assume that these operations work only with positive integers The next page shows an example of menu and execution shown to the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
