In: Computer Science
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:
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
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
";
}