I am so bad at programming and after this class I am done with it and changing my program! I don't even know where to start! It says demonstrate array of Struct,2 dimensional arrays and sorting routine. A trucking company charges the customers a fixed amount per pound, based on the following table.

Write a program which will read in the above table into a 2 dimensional array. the array will be used to calculate shipping cost. Program will read in the name of the customer, the zone-area code, and the weight of the item shipped. the zone area code consists of 2 digits, the first one indicates the zone and the second indicates the area. Assume there are less than 20 records for one truckload.

Print all customers info and their shipping charges in a report form the end of the report must contain the total of all customers weighte and a total of all shipping chages.
Reproduce the above report in alphabetical order by customer rating.
Reproduce the above report sorted by weight
Produce a report of all the companies in area code number two.

Date should look like this:
3
Chevrolet 23 750
Zapata Co. 53 375
Schlumberger 51 1104

The first line of the data will contain a header record indicating how many customer records are to follow.

why don't you google C++ and some of those key concepts? You will find many code snippets illustrating the syntax.

To solve this task, you'll need to break it down into smaller steps and apply the concepts of arrays, structs, and sorting. Here's a step-by-step guide to help you get started:

1. Start by declaring a struct to represent a customer's information. The struct should have fields for the customer's name, zone-area code, and weight.

2. Create a 2-dimensional array to store the shipping cost table. The array should have dimensions (10, 10), corresponding to the 10 possible zone-area combinations.

3. Read in the shipping cost table from the input into the 2-dimensional array. Each row in the input represents a zone-area combination, and each cell contains the corresponding shipping cost.

4. Read the header record to determine how many customer records will follow.

5. Create an array of structs to store the customer records. The size of the array should be based on the number of customer records specified in the header.

6. Read in each customer's name, zone-area code, and weight, and store them in the corresponding struct in the array.

7. Calculate the shipping charge for each customer by using their zone-area code and weight to access the corresponding value from the 2-dimensional array.

8. Print a report of all the customers' information and their shipping charges. Include the customer's name, zone-area code, weight, and shipping charge. You can use a loop to iterate through the array of customer records.

9. Calculate the total weight of all the customers and the total shipping charges by summing the corresponding fields from the customer records array.

10. Reproduce the report in alphabetical order by customer name. You can achieve this by sorting the array of customer records based on the customer's name field before printing the report.

11. Reproduce the report sorted by weight. Sort the array of customer records based on the weight field before printing the report.

12. Produce a report of all the companies in area code number two. Iterate through the array of customer records and print the information for any customer whose zone-area code starts with "2".

Remember, this is just a guide to help you get started. You'll need to write code that implements each step and handle any additional details or requirements specified in the task. Good luck!