Question

In: Computer Science

The business would like to give sales managers a bonus if their sales total is more...

The business would like to give sales managers a bonus if their sales total is more than 10000.

Revise the website program to reflect the following changes:

  • Prompt the sales manager for a number of months
  • Allow the manager to input the number of months.
  • Use a for loop to prompt the sales manager for the sales amounts and input the amounts based upon the number of months. Keep a running total of the sales amounts.
  • Display the total sales
  • If the total sales is greater then 10000, display a message congratulating the sales manager

Create a 1/2- to 1-page document containing pseudocode based on the revised program needs.

Create a 1-page flowchart based on the algorithm for the revised program needs.

The flowchart should be an original file drawn and submitted in Word, PowerPoint, Lucidchart or Visio format.

Here is a link to the previous code that is based on the question. It's an extension off of that.

https://www.chegg.com/homework-help/questions-and-answers/business-manager-reassessed-needs-website-design-determined-would-better-allow-sales-manag-q39558711?trackid=x3XkgR3o

Solutions

Expert Solution

pseudocode

1. Start

2. Declare integer months, sales, total , i

3. Prompt “ Enter months”

4. Input months

5. Assign total =0, i=0

6. For i< months loop

6.1. Input sales

6.2. Total = total+ sales

6.3 i= i +1

7. End loop

8.Display “ total sales” total

9. If total>10000

9.1. Display “ congratulations “

10. Stop.

//C++ code
#include<iostream>
using namespace std;
int main()
{
int months,i;
float sales,total=0;
cout<<"Enter months:";
cin>>months;
for(int i=0;i<months;i++)
{
cout<<"Enter sales:";
cin>>sales;
total=total+sales;
}
cout<<"Total Sales : "<<total;
if(total>10000)
cout<<"\ncongratulations , you are eligible for bonus ";
}


Related Solutions

It was determined this year’s bonus would be based on whether or not the team’s sales...
It was determined this year’s bonus would be based on whether or not the team’s sales figures were significantly greater than the forecasted number. That is, if the mean sales for the team are significantly greater than a known standard (a value already known; gold standard) they will get their bonus. What would be the most appropriate analysis to run? a. Independent Samples t-test b. ANOVA c. One-sample t-test d. Repeated Measures/Dependent Samples t-test
You would like to study the following question: “Does exercising in the morning give you more...
You would like to study the following question: “Does exercising in the morning give you more energy during the day?”. You asked two of your friends Chris and Erin about when they exercise and energy level. Let ?? be the energy level of person i (it is measured as 1-10 scale, 10 is the highest energy level and 1 is the lowest energy level); ?? is an indicator for whether they exercise in the morning. Observation Energy level if exercise...
Truth Inducers Corporation has implemented the following bonus scheme for its regional sales managers. The mangers...
Truth Inducers Corporation has implemented the following bonus scheme for its regional sales managers. The mangers are paid 5% of the sales forecast and a 2% incremental pay for every $ of actual sales in excess of forecast whenever actual sales exceed forecast. However, if actual sales fall below the forecast, the total payment is 5% of the sales forecast minus 7% of the amount by which sales fall below forecast. Under the above scheme, a sales manager, who has...
BONUS COMPENSATION You have to make bonus recommendations for eight managers that you hired this year....
BONUS COMPENSATION You have to make bonus recommendations for eight managers that you hired this year. The salary range for the job is ($63,000 - $70,000). They have just completed their first year with the company and are now to be considered for their annual bonus. Indicate the size of the bonus that you will give the managers by writing a dollar amount next to their names. You have a total of $15,771 available (3% of total salary). Please show...
BONUS COMPENSATION You have to make bonus recommendations for eight managers that you hired this year....
BONUS COMPENSATION You have to make bonus recommendations for eight managers that you hired this year. The salary range for the job is ($63,000 - $70,000). They have just completed their first year with the company and are now to be considered for their annual bonus. Indicate the size of the bonus that you will give the managers by writing a dollar amount next to their names. You have a total of $15,771 available (3% of total salary). Please show...
If shareholders are more risk averse than managers are, it is a good idea to give...
If shareholders are more risk averse than managers are, it is a good idea to give managers call options with high strike prices? Discuss.
Firms occasionally give an entering manager a bonus guarantee, i.e., the bonus will be paid no...
Firms occasionally give an entering manager a bonus guarantee, i.e., the bonus will be paid no matter what the performance of the company is. What is the difference (if any) between a guaranteed bonus and a salary? Please explain. The main difference between a guaranteed bonus and a salary, is that a salary reoccurs more frequently than a bonus does.
It is very common, for program managers to have a portion of their bonus linked to...
It is very common, for program managers to have a portion of their bonus linked to program sales and specifically, how monthly sales match up with target monthly sales goals. Your supervisor, the program manager has explained to you the bonus calculation and has asked for your help. This months sales were amazing and your supervisor has asked you on the last day of the month to hold off entering your last 2 sales until the next day to "push"...
Many managers like to build slack into the budget by underestimating projected sales or overestimating future...
Many managers like to build slack into the budget by underestimating projected sales or overestimating future expenses. Do you think budgetary slack has a place in the budgeting process? Why or why not? Provide specific examples of benefits or consequences.
why would manager care about total sales,total collections, % collected( =collections/sales) and total commission( formula is...
why would manager care about total sales,total collections, % collected( =collections/sales) and total commission( formula is if % collected<35%, commission= $0, if %collected > 35%, commission= sales* 5%)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT