I'm get stuck at question 2 below. Got no idea! Anyone can give me some orientation? thanks
A company wants to develop a program to manage their 12 cars
data about each car includes:
-Car's ID: it is a string which has 3 characters
-Car's status: its value is:
+ 1 if the car is hiring by a customer
+ 0 if the car hasn't been hired yet
-Customer's name: It is a string which contains full name of customer who is hiring the car.
If the car hasn't been hired yet, the string shouldn't have a value
Q1: Create a structure template that contains data of one car. Then use this template to
declare an array of structures that stores data of all company's cars (12 cars)
Q2: Create a function to assign the car's ID for 12 cars in the array of structures as the
follows:
- the first car in the list should have the ID : "C01"
- the second car in the list should have the ID : "C02"
...
- the last car in the list should have the ID : "C12"