5 - Switch Statement
5 - Switch Statement
Control
Structure
Lesson 2- Final Term
The Case Control
Structure
• https://www.programiz.com/c-
programming/c-switch-case-statement
Quiz Next Week
Seatwork
Create a C Program
○ Using Switch statement, write a program that displays the
following menu for the food items available to take order from
the customer:
• B= Burger
• F= French Fries
• P= Pizza
• S= Sandwiches
The program inputs the type of food and quantity. It finally
displays the total charges for the order according to following
criteria:
• Burger = Php200
• French Fries= Php50
• Pizza= Php500
• Sandwiches= Php150