I don't understand how to do this, I'm a little lost on arrays and these instructions!
Write a program using a two-dimensional array to compute and print the following information from the table of data discussed below:
(a) Total value of sales by each girl.
(b) Total value of each item sold.
(c) Grand total of sales of all items by all girls.
Item 1 Item 2 Item 3
Salesgirl #1 310 275 365
Salesgirl #2 210 190 325
Salesgirl #3 405 235 240
Salesgirl #4 260 300 380
Your program needs to read the values first and finally outputs the results.
Simple C programming with Arrays.?
I really wish people would stop oosting their homework up for someone else to do. In future, if you absolutely must and really need help, at least include an attempt you've made at the problem.
Here's a link to a tutorial that deals with two dimensional arrays in C:
http://www.exforsys.com/tutorials/c-lang...
Phlox
baby breath
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment