Calculate the monthly sales statistics

"ABC Company needs a simple program to be written to calculate the monthly sales statistics of their sales persons."

The sales persons have to achieve a monthly target of $150,000. If achieved, they will be given a commission of 5% from the total sales in addition to their salary.

Construct a program that can do the following:
a) Input sales figures of five salesmen
b) Prompt a menu to the user asking which action to perform
c) Display all the sales figures in the descending order
d) Display the sales figures that has exceeded the monthly target
e) Calculate commission for each sales person. For those who have not achieved the target, display the commission as 0
f) Display the average sales figures for that month.

Note:
* All inputs should be accepted from the console
* Program should include appropriate error messages
* Code should be clean and re-usable
* Include comments in the code appropriately

Q:
1) Draw the flowchart.
2) Construct the algorithm with Pseudo code.
3) Write the program.
4) Prepare 3 test cases with different values for input & the output generated by the program for each.
5) Show examples of how sequence, selection and iteration are used in your own program and explain why it was used.
Last edited on
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
Topic archived. No new replies allowed.