Question: C Programming #include Geekville Grocer needs a program that lets them enter the stores sales for each day of the week and calculates the total

C Programming

#include

Geekville Grocer needs a program that lets them enter the stores sales for each day of the week and calculates the total sales for the week as well as the day with the highest amount of sales. Write a program that has main() call function loadArray() that asks the user to enter the sales amount for each day of the week. The amounts should be stored in an array. This must be done with pointer notation instead of subscript notation. Next have main( ) call a calcTotal() function that determines the total sales for the week and returns this value to main() again you must use pointer notation. Next have main() a calcHighest( ) function that determines the day with the highest sales and returns this day to main (use pointer notation to access the array). Finally, call a function display( ) that displays the sales for each day (pointer notation), the total sales for the week, as well as the day with the highest amount of sales.

Example run:

Geekville Grocer Sales Program

Enter sales for Sunday: 23456.90

Enter sales for Monday: 1234.50

Enter sales for Tuesday: 10567.80

Enter sales for Wednesday: 13456.78

Enter sales for Thursday: 13450.00

Enter sales for Friday: 18560.00

Enter sales for Saturday: 25678.56

Geekville Grocer Sales recap

Sunday 23456.90

Monday 1234.50

Tuesday 10567.80

Wednesday 13456.78

Thursday 13450.00

Friday 18560.00

Saturday 25678.56

TOTAL: $106404.54

Day with highest amount of sales: Saturday with sales $25678.56

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!