C programming

Create a program which reads in from the user a series of cars and stores them in an array of structures. Create a loop which reads in input from the user for each car and stores it in the array. Create a second loop that will print out all the data related to a car using a ShowCar() function (that takes in only a car struct as a parameter).

 

 

Your car structure should have the following attributes:      –

-make

-model

-year

-mileage

-color

 

 

 

Example IO: (bold indicates data typed in by the user at runtime)

 

Welcome to the car inventory program.

Enter car #1 make: Ford

Enter car #1 model: Fiesta

Enter car #1 year: 1972

Enter car #1 mileage: 142000

Enter car #1 color: rust

 

—- repeats 4 more times —–

 

You have the following cars:

A 1972 rust-colored Ford Fiesta with 142000 milea

—- repeats 4 more times —–

Order from us and get better grades. We are the service you have been looking for.