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 <<...

  • 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...

  • Xcode or cus please! Write a program to prompt for the income, then calculate and display...

    Xcode or cus please! Write a program to prompt for the income, then calculate and display the initial amount, the amount after deductions, and the deducted amount. Again use good programming practices. Display messages so that the results are understandable. Assume individuals are taxed at an incremental rate as given below. Note that the above ranges are not total income but additional income. For example if one earns $125,000 per year, then there is no tax on the first $30,000....

  • write a c++ program. A real estate broker sets fees for selling properties according to the...

    write a c++ program. A real estate broker sets fees for selling properties according to the property type as shown in the table. The broker wants you to write a program that prompts the user for the broker type, sale price of the property and the property code. If the user enters an invalid property code or broker code, the program should display an appropriate message and end the program. Allow the user to enter uppercase and lowercase letters. If...

  • 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.

  • Programming question. Using Visual Studio 2019 C#. Windows Forms Application. Write the code to display the message “Entry error” in the msgLabel when the value in the Integer units variable is less t...

    Programming question. Using Visual Studio 2019 C#. Windows Forms Application. Write the code to display the message “Entry error” in the msgLabel when the value in the Integer units variable is less than or equal to 0. Otherwise, calculate the total owed as follows: If the value stored in the units variable is less than 20, multiply the value by $10; otherwise, multiply it by $5. Store the total owed in the total variable.

  • 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:...

  • 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...

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
ADVERTISEMENT