I need help and I'm very new to C programming

This is a discussion on I need help and I'm very new to C programming within the C Programming forums, part of the General Programming Boards category; This is my problem and I am wondering how I go about solving it.... I would really appreciate help on ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    14

    I need help and I'm very new to C programming

    This is my problem and I am wondering how I go about solving it.... I would really appreciate help on this:

    As an employer of a software company, your team has been asked to develop a sales analysis program to track sales performance for any company (by salesperson and by quarter). The program will need all sales summaries from data entry. The data for each summary will be the sales person's number, the quarter in which the sale took place and the sales amount. The sales transactions are in no particular order.

    The following are the main tasks which you are required to carry out:

    a) Analysing problem, this involves:

    1. Describing the problem.
    2. Identify Inputs, that is the data you have to work with.
    3. Identify output, that is the desired results.
    4. Identify any additional requirements or constraints on the solution.

    b) Design of the program, this involves two main tasks:

    1. Discussion of the algorithms needed to solve the problem. It is also desirable to write Pseudocode to describe the steps of these algorithms.
    2. Appropriate use of functions.
    3. A flowchart of the program logic.

    c) Implementation of the program which involves:

    1. The fully commented source of the program.
    2. Comments describe the data requirements; these should accompany the variable declarations.
    3. Comments describe the purpose of each algorithm step.

    d) Testing

    Testing the complete program to verify that it works as desired. Create four sample data:

    1. Use only correct data.
    2. Include a salesperson number that is greater than or equal to the number of sales people (assuming that salesperson numbers are ascending, starting at 1).
    3. Include a quarter number greater than 4 (Summer).
    4. Place a data format error such as a letter where a number belongs.

    Check that your correct file produces reasonable results: The sum of the salesperson totals should match the sum of the quarterly totals.

    Thanks... and I would be very grateful for help over this....

  2. #2
    Registered User
    Join Date
    Jan 2004
    Posts
    14
    I have until tomorrow to get this thing finished....

  3. #3
    Deleted Account
    Join Date
    Jan 2004
    Posts
    40
    then hurry up and write some code!

  4. #4
    Registered User
    Join Date
    Jan 2004
    Posts
    14
    I don't know how to start it.... I am totally clueless about this work....

  5. #5
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    Is that like homework, coz then noone would help you...

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    Well the first two are paper exercises, and the first one is really your assignment restated in an alternative form.

    > 1. Describing the problem.
    That's a verbatim copy of your assignment

    > 2. Identify Inputs, that is the data you have to work with.
    Eg. "The data for each summary will be..."

    > 3. Identify output, that is the desired results.
    Your turn!

    > 4. Identify any additional requirements or constraints on the solution.
    Eg. "The sales transactions are ..."

    Though it looks to me like you've left it too late if you want to do all this in the last 24hrs of your assignment.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Registered User
    Join Date
    Jan 2004
    Posts
    14
    If someone could help me code a program that works out the following scenario, I would be totally grateful:

    As an employer of a software company, your team has been asked to develop a sales analysis program to track sales performance for any company (by salesperson and by quarter). The program will need all sales summaries from data entry. The data for each summary will be the sales person's number, the quarter in which the sale took place and the sales amount. The sales transactions are in no particular order.

  8. #8
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    Salem set out something for you to follow....use it.

  9. #9
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Homework Policy:

    The purpose of these board is not for other people to do your homework for you. Try things out work on your own, homework has a purpose. If you still have trouble with a specific piece of code or concept please feel free to ask. But please do not ask people to do your entire homework for you, it simply annoys people most of the time.

    For an example check out this thread written by Prelude. Thanks Prelude.

    If you have any questions about what is approprate, or anything else, please E-mail or PM me and I'll be happy to answer them.

    Thank you

    Kermi3
    Lead Moderator
    From: http://cboard.cprogramming.com/annou...p?s=&forumid=4

    If you truely have only 24 hours (not very likely considering that Monday is a federal holiday) then you are just SOL aren't ya

  10. #10
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >If someone could help me code a program that works out the following scenario, I would be totally grateful
    You already have step by step instructions. If you have a book on C and have been paying attention in class, you should have no difficulty figuring out how to turn those instructions into code.
    My best code is written with the delete key.

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    > not very likely considering that Monday is a federal holiday)
    My divine mod powers have determined that the OP is likely to be at a UK university.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  12. #12
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    My divine mod powers have determined that the OP is likely to be at a UK university.
    Dang you and your mod powers, dang you to heck!

  13. #13
    Registered User
    Join Date
    Jan 2004
    Posts
    2
    This is funny. This guy just wants the whole thing done.

    And you guys said i wanted work done for me and all i wanted was some problem solving.

  14. #14
    Registered User
    Join Date
    Jan 2004
    Posts
    14
    Please..... I did go to the lectures, but the tutors are crap at explaining things.... your correct, I am at an English university.... I don't have time to learn this now, otherwise I'll fail this module.... someone must be motivated enough to give me the full code to this scenario....

    I keep playing Halo, which is probably the sole reason for me not starting the programming work.... dang, I need help from somewhere.... 'who is willing to solve my problem for free and without taking the mickey out of me'....

  15. #15
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    Well yes by telling us that you have been wasting you time playing games.......

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21