Question: C Programming!!! #include #include #include Corporate Sales Data Report Write a program that read creates a structure for a companys divisions. The structure should have:
C Programming!!!
#include
#include
#include
Corporate Sales Data Report
Write a program that read creates a structure for a companys divisions. The structure should have:
Division name (North, South, East, West, and Central)
Quarter (1, 2, 3, or 4)
Quarterly sales
Your job is to write a program that will create a two-dimensional array of 5 rows (divisions) and 4 columns (quarters). The program should ask the user to enter in all four quarters of sales for each division. Output the information to a file that also calculates total sales for each division, as well as which division had the highest quarterly sales (and what quarter) and which had the highest sales amount for the year. All this will be written to a file with a header.
Sample Program Run:
Enter filename: salesout.txt
Enter sales for the North Division
Enter sales for 1 quarter 132000
Enter sales for 2 quarter 133000
Enter sales for 3 quarter 134500
Enter sales for 4 quarter 151500
Sample File Output:
Annual Sales Report for Divisions
Division Quarter Sales
--------------------------------------
North 1 $132000.00
North 2 $133000.00
North 3 $134500.00
North 4 $151500.00
Highest quarterly sales: North division in quarter 4 at $151500.00
Highest total sales: $588500.00 in division Central
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
