Thread: I needs a simple C++ program to be written to calculate the monthly sales statistics.

  1. #1
    Registered User
    Join Date
    Mar 2015
    Location
    Colombo, Sri Lanka
    Posts
    1

    I needs a simple C++ program to be written to calculate the monthly sales statistics.

    Anyone Pls! Help for this...
    (using C++ & Visual Studio)


    "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) Find the average sales figures for that month.


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


    Questions:
    1) Draw the flowchart for the program.
    2) Construct the algorithm with Pseudo code.
    3) Write the program with a programming language learnt.
    4) Prepare 3 test cases with different values for input and 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.

  2. #2
    Registered User setleaf's Avatar
    Join Date
    Dec 2014
    Location
    Virginia/USA
    Posts
    47
    So how far have you gotten with the code?

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,487
    This isn't a homework factory.
    Announcements - C++ Programming
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sales program
    By juanjuanjuan in forum C Programming
    Replies: 5
    Last Post: 06-29-2014, 02:55 PM
  2. Replies: 9
    Last Post: 07-23-2011, 01:23 AM
  3. Monthly Payment Program Help
    By sharingan_gv in forum C Programming
    Replies: 7
    Last Post: 07-14-2011, 09:07 AM
  4. calculate monthly payment
    By yacek in forum C Programming
    Replies: 2
    Last Post: 10-04-2010, 07:59 PM
  5. Replies: 10
    Last Post: 09-07-2008, 11:38 PM

Tags for this Thread