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

6.6 Car service invoice This programming assignment is a straightforward impleme

ID: 3722267 • Letter: 6

Question

6.6 Car service invoice This programming assignment is a straightforward implementation of a conditional problem. You must define four functions as follows print_menu() prints a menu of car services provided by Zooey's (College Fund) Car Shop and the corresponding cost of each service it takes no parameters and returns no values.(2 pts) Ex: Zooey's (College Fund) Car Shop Services: 0il change $35 Tire rotation $19 Car wash$7 Car wax$12 select_svc()prompts the user for two services from the menu. It takes no parameters but returns the two services to main) (2 pts) Ex Select first service: oil change Select second service: Car wax

Explanation / Answer

#include <stdio.h>

void print_menu() {
   printf("Zooey's (College Fund) Car Shop Service ");
   printf("Oil change -- $35 Tire rotation -- $19 Car wash -- $7 Car wax -- $12 ");
}

void select_svc(char s1[], char s2[]) {
   printf("Select first service: ");
   gets(s1);
   printf("Select second service: ");
   gets(s2);
}

int main() {
   char s1[100], s2[100];
   print_menu();
   select_svc(s1, s2);
   return 0;
}