Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This program has to work in Visual Studios Express Edition, 2008 Write a simple

ID: 3621869 • Letter: T

Question

This program has to work in Visual Studios Express Edition, 2008
Write a simple C++ program that performs addition, subtraction, multiplication, division, exponentiation, base-10 logarithm, and factorial operations. The program should start with a menu letting the user to choose one of the eight operations the user wants to perform. A sample menu is given below (hint: use loop to calculate more than once, use functions for each operation):

Enter:
+ for the addition operation
- for the subtraction operation
* for the multiplication operation
/ for the division operation
^ for the exponentiation operation
l for the base-10 logarithm operation
! for the factorial operation and
q to quit.
-->
After an operation is chosen, the program will ask the user to input operands (hint: there will be only one operand for logarithm and factorial operations). The result should be displaced in the form of a
formula, e.g. 2^2=4, log(10) = 1, and 4!=24.

Explanation / Answer

#include "stdafx.h" #include #include #include #include using namespace std; void addition(); void subtracttion (); void multiplication (); void division (); void exponentiation(); void base10logarithm(); void factorial(); int main() { char choose; for (;;) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote