Question: C-programing write it in code block and solve the lap question EXERCISE 4: [LATIHAN 4 Given a selection control structure with switch in Program 7.5.

C-programing
write it in code block and solve the lap question
 C-programing write it in code block and solve the lap question

EXERCISE 4: [LATIHAN 4 Given a selection control structure with switch in Program 7.5. [Diberikan struktur kawalan pilihan switch dalam Program 7.5.] 1/Program 7.5 #include #include int main() int choice; 8 9 10 11 12 13 printf("What flavor ice crean do you want? "); printf("Enter 1 for chocolate "); printf("Enter 2 for vanilla "): printf ("Enter 3 for strawberry "); printf("Enter 4 for Yam "); printf("Enter your choice: "); scanf("%d", schoice): 14 15 16 17 switch (choice) case 1: 61 BASIC PROGRAMMING C 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 printf("Chocolate, Mahasmad's favorite. "); break; case 2: printf("Vanilla, Ismael's favorite "); break; case 3: printf("Strawberry, Adibah's favorite "); break; case 4: printf("Yam, Munirah's favorite "); break: default: printf("We don't have any "); printf("Make another selection "); } getch(); return 0; 2 i. Draw a flowchart for the program. [Lukiskan carta alir untuk aturcara ini

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!