Question: Write a complete C program that manages the sales data for five different products across three different stores. The program should: (1) Prompt the
Write a complete C program that manages the sales data for five different products across three different stores. The program should: (1) Prompt the user to input the sales quantity for each product in each store. Apply a 3D array to store the sales quantities. (ii) Identify which store has the highest total sales. Apply a non-return value function, include a parameter list if necessary. (iii) Identify which store has the lowest total sales. Apply a non-return value function, include a parameter list if necessary. (iv) Calculate the average sales quantity for each product and display it. Apply a return value function, include a parameter list if necessary. (v) Determine whether each product is selling well or needs improvement by comparing its sales quantity to the average. If a product's sales quantity is greater than or equal to the average, then it's selling well; otherwise, it needs improvement. Requirements: Apply a 3D array. Use functions for better modularization. Display the results clearly for each product and store.
Step by Step Solution
There are 3 Steps involved in it
Heres a complete C program that meets your requirements include define STORES 3 define PRODUCTS 5 Function to input sales quantity for each product in ... View full answer
Get step-by-step solutions from verified subject matter experts
