programming final

 Create a project and name the source file final followed by your initials

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

final-fd.cpp

Write a program that does the following functions

void displayMenu()to print the menu 

 1 to add two items

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

2 to subtract two numbers

3 to multiple two numbers

4 to divide two numbers

5 to get average of 5 numbers

6 to format a phone number

X to exit 

 Gets a menu selection that does the following

Char getSelection(); 

 Uses a do while loop and switch to get and validate the selection

Prints and error message is user inputs a wrong selection

Make sure to use toupper() 

 Use switch

Functions  

 Int getPosNumber(); 

 Used to get a positive number

The number should be input using getline string and coverted to an integer  

 using stoi 

 Use getPosNumber()to get all number 

 int sum();

int difference();

int product(); 

 double quotient();

double average(); 

 string getPhoneNumber()

gets a 10 digit phonenumber using getline 

 string formatPhone()

formats the 10 digit string to (xxx)-xxx-xxx 

 use string insert to format 

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.

Order your essay today and save 30% with the discount code ESSAYHELP