Computing.Net > Forums > Programming > Help with C++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help with C++

Reply to Message Icon

Name: dreyfus
Date: March 3, 2008 at 10:30:56 Pacific
OS: xp, pro, sp2
CPU/Ram: intel centrino/1gb
Product: dell/inspiron
Comment:

I am completely lost on my homework and need a solution, can anyone help?


Use a two-dimensional array to solve the following problem. A company has four salespeople (1to4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains the following:
1. the salesperson number
2. the product number
3. the total dollar value of that product sold that day
Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume that the information from all the slips for last month is available. Write a program that will read all this information for last month's sales and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales.
After processing all the information for the last month, print the results in tabular format with each of the columns representing a particular salesperson and each of the rows representing a particular product. Cross total each row to get the total sales of each product for last month; cross total each column to get the total sales by salesperson for last month. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns

dreyfus



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help with C++

Please help with c on bowling probl www.computing.net/answers/programming/please-help-with-c-on-bowling-probl/6979.html

Help with c programming! www.computing.net/answers/programming/help-with-c-programming/9893.html

Need help with C++? www.computing.net/answers/programming/need-help-with-c/4642.html