Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Create a structure called car with the followingmembers: . - make - model - y

ID: 3613356 • Letter: 1

Question

1. Create a structure called car with the followingmembers: . - make - model - year - miles . Create an instance of the car structure namedmyCar and assign data to each of the members. Print thecontents of each member to standard out using the printf() function. . 2. Using the car structure, create a structure arraywith three elements named myCars. Populate each structurein the array with your favorite car model information. Use afor loop to print each structure detail in thearray. . 3. Create a program that uses a structure array to holdcontact information for your friends. The program should allow theuser to enter up to five friends and print the phone book's currententries. Create a functions to add entries in the phone book and toprint valid phone book entries. Do not display phone book entriesthat are invalid or NULL (0). . Any help would be GREAT! 1. Create a structure called car with the followingmembers: . - make - model - year - miles . Create an instance of the car structure namedmyCar and assign data to each of the members. Print thecontents of each member to standard out using the printf() function. . 2. Using the car structure, create a structure arraywith three elements named myCars. Populate each structurein the array with your favorite car model information. Use afor loop to print each structure detail in thearray. . 3. Create a program that uses a structure array to holdcontact information for your friends. The program should allow theuser to enter up to five friends and print the phone book's currententries. Create a functions to add entries in the phone book and toprint valid phone book entries. Do not display phone book entriesthat are invalid or NULL (0). . Any help would be GREAT!

Explanation / Answer

please rate - thanks CRAMSTER rule-1 question per post. #3 is not related to the rest 1) #include #include #include struct car { char make[10]; char model[10]; int year; float miles; } myCar; int main () { char *in; printf("Enter car make: "); in=gets(myCar.make); printf("Enter car model: "); in=gets(myCar.model); printf("Enter car year: "); scanf("%d",&myCar.year); printf("Enter miles on car: "); scanf("%f",&myCar.miles); printf(" MyCar make: %s model: %s year: %d miles:%.2f ",myCar.make,       myCar.model,myCar.year,myCar.miles); getch(); return 0; } 2) #include #include #include struct car { char make[10]; char model[10]; int year; float miles; } myCar[3]; int main () {int i; char *in; for(i=0;i