1. Define a struct named carType to store the following data about a car (pick the best data types):
2. Declare variables named myCar and yourCar from the carType. Show how to assign values to these variables. Make sure to display the values of the variables.
3. Define an array with 3 elements from the carType struct.
4. Write a function named getCar to read and store data into an array of carType. You can ask the user for the data inside this function.
5. Write a function named displayData that accepts an array of carType and the name of a file. Write the data to the file.
6. Use command line arguments to accept the name of the output file from the command line.
You should be able to run your code as the following:
./a.out cars.txt