Need help finishing the ARRAY program.

Objective: The purpose of this project is to expose you to: One Dimensional arrays, input/output of arrays and manipulating arrays.
Problem Specification: 
The Little League Ball Park sells Hot Dogs and Ice-cream. During the week of June 12th, the dollar sales were as follows:

Day Hot Dogs Ice-cream
        
1   $112    $93
2   $94     $325
3   $105    $225
4   $92     $71 
5   $239    $98
6   $442    $298
7   $537    $333

Program Requirements:
a.  Create separate arrays for hot dogs and ice cream by inputting the values into the arrays from the keyboard. "Do your input in main"

b.  Calculate the sales in dollars for the week for hot dogs and ice cream.

c.  Compute the grand total of sales for the week for both hot dogs and ice cream.

d.  Find the day and amount that the most hot dogs was sold.

e.  Count how many times in this week ice cream sold more than $250 in a day.

-----------
Output of the program is the following report

            Little League Ball Park
                 Sales Report
            Week of June 12,2011

Day    Hot Dogs     Ice-cream
---    --------     ---------
1      $112.00      $ 93.00  
2      $ 94.00      $325.00
3      $105.00      $225.00   
4      $ 92.00      $ 71.00
5      $239.00      $ 98.00 
6      $442.00      $298.00 
7      $537.00      $333.00

Totals $xxx.xx      $xxx.xx 

Grand Total = $xxxx.xx

Day Number: # Sold the most Hot Dogs =

Number of times in a week that ice cream sold more than $250 in a day is:

------------
The Program should contain the following functions:
1. Separate functions are used to calculate total sales for the week for each item sold.
2. A function is used to find the day and amount where the most hot dogs soda is sold.
3. A function is used to count how many times in this week ice cream sold more than $250 in a day.
4. A function is used to print the headings
5. At least one function is used to print the information.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

//Prtotype 
	float calc_HotDogs_Total (float[] , int );
	float calc_IceCream_Total (float[] , int ) ;
	float Grand_Total (float IceCream_Total_Sales, float HotDogs_Total_Sales ) ;

int main()
{
    
	const int NUM = 6;
    int Days[NUM] ;
	float HotDogs_Sales[NUM], IceCream_Sales[NUM] ;
    float HotDogs_Total_Sales, IceCream_Total_Sales ;

	 HotDogs_Total_Sales =  calc_HotDogs_Total( HotDogs_Sales,  NUM ) ;
	 IceCream_Total_Sales = calc_IceCream_Total( IceCream_Sales, NUM) ;

	for ( int i= 0; i <= NUM; i ++ )
		{
			Days[i] ;
		}
	
	for ( int i = 0; i <= NUM; i ++)
		{
			cout << "please enter number of hot dogs sold:" ;
			cin >> HotDogs_Sales[i] ;
		}

	for ( int i = 0; i <= NUM; i ++ )
		{
			cout << "please enter number of ice cream sold:" ;
			cin >> IceCream_Sales[i];
		}
	
	//cout << HotDogs_Total_Sales << endl ;
	return 0;
}
   

float calc_HotDogs_Total( float HotDogs_Sales[], int NUM )
{
	float HotDogs_Total_Sales = 0 ;
	HotDogs_Sales ;
	for ( int i  = 0; i <= NUM; i ++ )
	{
		HotDogs_Total_Sales = HotDogs_Total_Sales + HotDogs_Sales[i] ;
	}
		return HotDogs_Total_Sales;
}

float calc_IceCream_Total (float IceCream_Sales[], int NUM)
{
	float IceCream_Total_Sales = 0 ;
	IceCream_Sales;

	for ( int i = 0; i <= NUM; i ++)
	{  
		IceCream_Total_Sales = IceCream_Total_Sales + IceCream_Sales[i] ;
     }
    return IceCream_Total_Sales;

}

float Grand_Total ( float IceCream_Total_Sales, float HotDogs_Total_Sales )
{
	float Grand_Total = IceCream_Total_Sales + HotDogs_Total_Sales ;

	return Grand_Total;
}




So far im correct no errors ....need help with more functions :(

& also when i run it without debugging it shows error "Stack around the variable 'HotDog_Sales"
umm well i know because im not finish....
PLEASE HELP ME with this program
Can anyone write rest of the program for me because that's all i know so far :(
Topic archived. No new replies allowed.