Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

think about the following news item. which items Page 1 of 3 Copyright 2013, Dennis Rainey HW 1abed -4 programs HW 1a 1.) Create a

think about the following news item. which items
image text in transcribed
Page 1 of 3 Copyright 2013, Dennis Rainey HW 1abed -4 programs HW 1a 1.) Create a new project and name it: 2.) Create a new file and name it: 3.) Include these 3 functions: HW.1a main.cpp getSalesAmt o This function prompts the user to enter a monthly sales amount. o The amount is read and assigned to a variable. o The value is then returned to main0 (see output) - calcCommission o This function calculates the commission based on the sales amount. lf a salesperson sells more than $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). This function calculates the total monthly pay for a salesperson. calcPay . o A salesperson gets a monthly salary of $2,500. plus a commission, if the person as earned a commission. The value is returned to main. . - displayPay o This function displays the total monthly pay for salesperson. (see output) Format the output to two decimal places, and with the amounts aligned as shown. 4.) Include code to allow the user to run the program again. getSalesAmt function. Enter the monthly sales amount: Monthly Sales: 60000.00 Commission: Base Pay: Total Pay: Do it again? (Y/N) n 60,500 1210.00 $ 2500.0o s3710.00 displavPav function

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

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions