1. You must create a record for a car. A car has the following attributes: an id number (integer), a manufacturer (string), a model (string) and a registration code (string). In your code create a Pascal record for the car using appropriate field names for each attribute.
Also include the following type definition at the top of your program: type Cars = Array of Car;
2. Write a function called ReadCar(): Car; that reads from the terminal values for each of the fields in a Car record and returns the completed record.
3. Write a procedure called WriteCar(c: Car); that takes a car record and writes each of the fields to the terminal with a description for the field as well as the field value.
4. Write a function called ReadAllCars(count: Integer): Cars; that calls your ReadCar() function count times and stores each car in Cars.
5. Write a procedure called WriteAllCars(carArray: Cars); that calls your WriteCar() procedure for each car in carArray.
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.type Car = RECORD
type Cars = Array of Car;
// 2. Write a function called ReadCar(): Car; that reads from the terminal values for each of the
// fields in a Car record and returns the completed record.
function ReadCar(): Car;
write('Enter id: ');
write('Enter manufacturer: ');
write('Enter model: ');
write('Enter registration code: ');
ReadCar := ca;
By purchasing this solution you'll be able to access the following files: