C++ structure
Project ID: 1229391264
Project Details
- Status: Closed (Chosen Programmer: jyotirags; Paid)
- Posted: 12/15/2008 at 20:34 EST
- Closed: 12/17/2008 at 1:27 EST
- Project Creator:
- Budget: $15
- Description: This assignment demonstrates array of STRUCT (structures), two dimensional arrays and the use of a sorting routine.
The problem:
A trucking company charges the customers a fixed amount per pound, based on the following (Zone-Area) table.
Zone Area code Area code Area code
code 1 2 3
1 .40 .55 .68
2 .60 .70 .85
3 .75 .78 .96
4 .90 1.05 1.10
5 .99 1.08 1.15
Write a program which will read in the above table into a two dimensional array. The array will be used to calculate the shipping cost. Your 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 two digits, the first one indicates the zone, and the second indicates the area. Assume there are less than 20 records for one truckload.
1. Print all customers' information and their shipping charges in a report form. The end of the report must contain the total of all of the customers' weight and a total of all the shipping charges.
2. Reproduce the above report in alphabetical order by customers name
3. Reproduce the above report sorted by weight.
4. Produce a report of all the companies in area code number two.
Your test data will be similar to the following:
3
Chevrolet 23 750
Zapata Co. 53 375
Schlumberger 51 1104
The first line of the data file will contain a header record indicating how many customer records are to follow.
The actual test data will be stored under DATA10.txt
The Zone-Area table will be stored under TABLE10.txt
- Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| jyotirags | $14 | 5 hours | 12/16/2008 at 13:31 EST | (No Feedback Yet) | |
| I can do this project. | |||||
| puimic | $15 | 5 hours | 12/16/2008 at 2:26 EST | (29 reviews) |
|
| faridusi | $15 | 5 hours | 12/16/2008 at 1:08 EST | (No Feedback Yet) | |
| I can make it faster . Please read my BID | |||||
| madagaskar | $15 | 1 day | 12/16/2008 at 3:28 EST | (No Feedback Yet) | |
| Ready to make it in a day/console program/html output. | |||||
| terryconsult | $15 | 2 days | 12/16/2008 at 4:37 EST | (12 reviews) |
|
| Kindly check PMB. | |||||
| is00hcw | $20 | 5 hours | 12/16/2008 at 0:29 EST | (5 reviews) |
|
| Hi, I can start asap. | |||||
| chetanjags | $25 | Immediately | 12/16/2008 at 4:42 EST | (19 reviews) |
|
| quality work. Check your PMB | |||||
| diy286 | $75 | 1 day | 12/16/2008 at 0:08 EST | (26 reviews) |
|
| Dear sir, I can do it for you, Could you see PMB for more details? Thanks. Best Regards. | |||||
| midhusoft |
$75 | 5 days | 12/15/2008 at 22:00 EST | (88 reviews) |
|
| Please check PMB | |||||
| maysam |
$100 | 1 day | 12/16/2008 at 10:28 EST | (148 reviews) |
|
| Quality work | |||||






