First and foremost, I'm referencing this flowchart and code located here and revising it to fit the needs of the instructions below.
Here is the link:
https://www.chegg.com/homework-help/questions-and-answers/hello-please-help-thanks-business-manager-reassessed-needs-website-design-determined-would-q39653574?trackid=EvMGo580
The business updated its website program design request with a few more features to fit its needs.
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.
Start
Get TotalMonth
Set MonthCount to 0
Set TotalSales to 0
Set Bonus to 0
While MonthCount < TotalMonth
CurrentSales to 0
Get CurrentSales
Add CurrentSales to TotalSales
Set sum to TotalSales
Add Monthly count to 1
IF TotalSales >10,000
Set Bonus to BonusAmount
Print TotalSales and TotalMonths
Print Bonus
End
Input
TotalMonth
CurrentSales per month
Output
TotalSales
TotalMonths
Bonus
Create a 1- to 2-page flowchart based on the algorithm for the revised program needs.
Function Main
Declare Integer Months, i, total, highest
Input Months
Assign total = 0
For i = 0 to Months-1
Output "Enter sales"
Input sales[i]
Assign total = total+sales[i]
End
Assign highest = sales[0]
For i = 0 to Months-1
If sales[i]>highest
Assign highest = sales[i]
End
End
Output "Highest sales ="
Output highest
End
Get Answers For Free
Most questions answered within 1 hours.