QUESTION
(a) Consider a car database consisting of car model, car make, car origin, Engine capacity, color, cost.
Fig
Using this car database, illustrate the process of
(i) How to define a structure with tag name car_table.
(ii) How to declare an array of structures with the following
variables car[1], car[2] and car[3].
(iii) How to enter the values in the table for the three cars. (Tips: use a FOR loop)
(iv) How to change the color of car2 from blue to black and display the new color.
(v) How to increase the cost of car 3 by 10 % and display the new cost.
(b) Using function write a C/C++ program to take two arrays of integer numbers and multiply each corresponding values and put the result in a third array.
Sample arrays and values are provided in Fig 2.
Fig 2