Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Three funcstions * getSalesAmt - This function prompts the user to enter amonthly sales amount. - The amouts is read and assigned to a

image text in transcribed

C++ Three funcstions * getSalesAmt - This function prompts the user to enter amonthly sales amount. - The amouts is read and assigned to a variable. - The value is then returned to main(). * calcCommission - This function calculaes the commission based on the sales amount. + If a salesperson sells more then $50,000 per month, the commission is 2% of the sales amount. + If the sales are between $ 25,000 and $ 50,000 then the commission is 1,5% of the sales amount. + However, if the sales are less than $25,000 there is no commission. + The value is returned to main(). * calcPay - This function calculates the total monthly pay fora salesperson. + A salesperson gets a monthly salary of $2,500 plus a commission, If the person as aemed a commission. + the value is returned to main() * displayPay - This function displays the total monthly pay for salesperson. + Format the output to two decimal places, and with the amounts alighned as shown. * Include code to allow the user to run the program again/ Example OUTPUT: Enter the monthly sales amount: 60,500 - > getSalesAmt Monthly Sales: $ 60000,00 Commision: $1210,00 Base Pay: 2500,00 - > displayPay Total Pay: $3710,00 Do if again? (Y/N) n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions