Question

How to calculate and display salesperson's commission. The commission rate is 20% when the sales amount...

How to calculate and display salesperson's commission. The commission rate is 20% when the sales amount is at least $25,000;otherwise, the commission rate is 15%.Display commission with the dollar sign and two decimal places. write the pseudocode for the calcButton_Click procedure and then code the procedure.

Sales                    Calculate

Commission         Exit

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find pseudocode as required:

calculate_commision(){

1. ask user for sales amount : store in float sale_amount

2. if(sale_amount>=25,000)

3.        commision = 0.20 * sale_amount

4. else

5.       commision = 0.15 * sale_amount

6. print("Commison: $0.2f", commision)

}

Add a comment
Know the answer?
Add Answer to:
How to calculate and display salesperson's commission. The commission rate is 20% when the sales amount...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • When the user has finished entering the sales amounts, the program should display the number of...

    When the user has finished entering the sales amounts, the program should display the number of sales amount entered and the average commission. #include <iostream> using namespace std; int main() { const double rate =0.2; int sales = 0; double commission = 0.0; double totalSales =0.0; cout << "First salesperson's sales (-1 to stop) : "; cin >> sales; while (sales !=-1) { commission = sales * rate; cout << "Commission : $ " << commission << endl; cout <<...

  • Write the pseudocode below as a working Python program. Take a screenshot of your code and...

    Write the pseudocode below as a working Python program. Take a screenshot of your code and output and paste into your answer document. User input of ‘y’ or ‘Y’ should cause the loop to continue.    // Constant for the commission rate    // Declare as a global variable    Constant Real COMMISSION_RATE = 0.10     Module main()        // Local variable         Declare String keepGoing = "y"         // Calculate as many commissions         // as needed.         While...

  • The following form will be used to determine the sales commission of employees. Using Visual Basic...

    The following form will be used to determine the sales commission of employees. Using Visual Basic Studio, build the form with these features:  The checkbox “Target Met” must be disabled.  The title of the form should appear as “Sales Commissions” Write the code to do the following: After entering the totals sales, the checkbox will automatically be checked if the average sales per month was $1,500 or more. Note: The average sales per month can be calculated by...

  • use elulel spaces or tab escape sequences 36. (10 pts) Write a program that will calculate...

    use elulel spaces or tab escape sequences 36. (10 pts) Write a program that will calculate the gratuity by reading in the bill (subtotal) and gratuity rate. Echo the inputs and output the result. For example, if the subtotal is $10 and the gratuity rate is 15%, output $10.00 + $1.50=$11.50 Include the dollar sign (s) in your output Your code must be syntactically correct (no need to write comments) Prompt for the subtotal and gratuity rate Calculate the total...

  • Project 2 Description Create a Visual C# project that when an employee's biweekly sales amount is...

    Project 2 Description Create a Visual C# project that when an employee's biweekly sales amount is entered and the Calculate button is pressed, the gross pay, deductions, and net pay will be displayed. Each employee will receive a base pay of $1200 plus a sales commission of 8% of sales. Once the net pay has been calculated, display the budget amount for each category listed below based on the percentages given.         base pay = $1200; use a named...

  • Pittman Company is a small but growing manufacturer of telecommunications equipment. The company has no sales...

    Pittman Company is a small but growing manufacturer of telecommunications equipment. The company has no sales force of its own: rather, it relies completely on independent sales agents to market its products. These agents are paid a sales commission of 15% for all items sold "Pull all of these numbers together and we'll show them to the executive committee tomorrow," said Karl. With the approval of the committee, we can move on the matter immediately Barbara Cheney, Pittman's controller, has...

  • Suppose that today you deposit the amount of $550 in a bank. How much would the...

    Suppose that today you deposit the amount of $550 in a bank. How much would the deposit grow to at the end of year 16 if the interest rate is 7.00%? $ Place your answer in dollars and cents. Do not include a dollar sign or comma in your answer. Work your analysis with at least four decimal places of accuracy.

  • Marston Corporation manufactures disposable thermometers that are sold to hospitals through a network of independent sales...

    Marston Corporation manufactures disposable thermometers that are sold to hospitals through a network of independent sales agents located in the United States and Canada. These sales agents sell a variety of products to hospitals in addition to Marston's disposable thermometer. The sales agents are currently paid an 18% commission on sales, and this commission rate was used when Marston's management prepared the following budgeted absorption income statement for the upcoming year Marston Corporation Budgeted Income Statement $ 39,000,000 Sales Cost...

  • Write a C++ program that will calculate how much of a profit an investor will make....

    Write a C++ program that will calculate how much of a profit an investor will make. You will need to ask the user for the following three inputs: • The number of shares the investor purchased. The price of the stock (per share) when the investor purchased it. The price of the stock (per share) now. The formula to use: Profit = (# of shares Current Price) - (# of shares * Purchase Price) Output this message to the screen:...

  • Pittman Company is a small but growing manufacturer of telecommunications equipment. The company has no sales...

    Pittman Company is a small but growing manufacturer of telecommunications equipment. The company has no sales force of its own; rather, it relies completely on independent sales agents to market its products. These agents are paid a sales commission of 15% for all items sold. Barbara Cheney, Pittman's controller, has just prepared the company's budgeted income statement for next year as follows: $ 17,000,000 10,030,000 6,970,000 Pittman Company Budgeted Income Statement For the Year Ended December 31 Sales Manufacturing expenses:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT