Okay I'm going to make a C program (definitely not a homework this time) to keep track of timber (using structures) and I need your assistance.
Each unit of timber has got an identification code consisting of:
Zone - a character representing the zone of the tree:
ID - a 10-character identification numberCode:char zone;
Then I will define a structure called TimberIDType that contain the above information.Code:int ID[10];
I would like to store the ff. information for each of the timber unit:
TimberID - of TimberIDType above
Kind - a 30-character description of the timber
Diameter, Weight and Height - float numbers that tell about the timber's dimensionsCode:char Kind[30];
My program should be able to store up to 100 TimberRec records in an array called TimberArray.Code:float Diameter, Weight, Height;
My program should perform the ff. operations:
1. Add a new record into TimberArray
2. Display all records
3. Display a particular record given the Kind
4. Display records given the Weight
5. Display records given the TimberID