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 waxExplanation / 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;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.