Question

In c++ format please A company changes the commission rate for sales reps depending on their...

In c++ format please

A company changes the commission rate for sales reps depending on their total sales for the month. Their regular commission is 5% (.05). However, if they sell at least $100,000, they get 7% (.07). Ask the user for the sales amount this month and then calculate how much to pay the sales rep this month.

Output 1:
Enter the sales amount for the month as a whole number, no commas or $: [assume user types: 125000]

You met the $100,000 sales goal for the month. Your commission is 7%
Your total commission on $125000 is: $8750

Output 2:
Enter the sales amount for the month as a whole number, no commas or $: [assume user types: 60000]

You did not meet the $100,000 sales goal for the month. Your commission is 5%
Your total commission on $60000 is: $3000

Hints and Notes:
1) Use an If/Else for this

2) The "100,000" portion of the output is a literal. I did not use the constant for this part of the output because I wanted to format the message nicely for the user.

Homework Answers

Answer #1
#include<iostream>
using namespace std;
int main(){
        double sales,commission=0;
        cout<<"Enter the sales amount for the month as a whole number, no commas or $: ";
        cin>>sales;
        if(sales>=100000){
                cout<<"You met the $100,000 sales goal for the month. Your commission is 7%\n";
                commission = sales * 0.07;
        }
        else{
            cout<<"You did not meet the $100,000 sales goal for the month. Your commission is 5%\n";
                commission = sales * 0.05;
        }
        cout<<"Your total commission on $"<<sales<<" is: $"<<commission;
}

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Oslo Company prepared the following contribution format income statement based on a sales volume of 1,000...
Oslo Company prepared the following contribution format income statement based on a sales volume of 1,000 units (the relevant range of production is 500 units to 1,500 units):              Sales   $   21,800 Variable expenses      12,600 Contribution margin      9,200 Fixed expenses      7,452 Net operating income   $   1,748 1. What is the contribution margin per unit? (Round your answer to 2 decimal places.) 2. What is the contribution margin ratio? (Enter your answer as a percentage...
Annapolis Company purchased a $2,000, 7%, 9-year bond at 99 and held it to maturity. The...
Annapolis Company purchased a $2,000, 7%, 9-year bond at 99 and held it to maturity. The straight line method of amortization is used for both premiums & discounts. What is the net cash received over the life of the bond investment? (all money received minus all money paid, round to nearest whole dollar) Ocean Pines Company had net income $475,000. They also had depreciation expense of $200,000, an increase or (decrease) in accounts receivable of $-30,000, and an increase or...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT