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

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
Get step-by-step solutions from verified subject matter experts
