C Language Create 3 functions for your program. Function 1: Display Menu Create a function to display your Café Menu as reference before ordering. This function has no return type and no input parameter. Function 2: Determine item price Create a function to determine the price of each item in order to facilitate calculation of total bill. Your function will take input of food item and return price for the item. Function 3: Calculate total bill and balance of payment Create a function to calculate the total bill of the customer and also the balance after the payment has been made.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

C Language

Create 3 functions for your program.

Function 1: Display Menu
Create a function to display your Café Menu as reference before ordering. This function has no return type and no input parameter.


Function 2: Determine item price
Create a function to determine the price of each item in order to facilitate calculation of total bill.
Your function will take input of food item and return price for the item.


Function 3: Calculate total bill and balance of payment
Create a function to calculate the total bill of the customer and also the balance after the payment
has been made.

Input
Output
Sunny Cafe Menu nenanurunununan
Food Menu:
f1 - Burger (RM13.50)
f2 - Sandwich(RM10.50)
f3 - Hotdog(RM10.00)
f4 - Pasta(RM12.50)
Mushroom Soup(RM8.90)
nanananane Sunny Cafe Order Form
Customer Name : Johnny English
Table Number : 12
f5
Drinks Menu:
Sunny Cafe Menu nemananananrom
d1 - Coffee(RM5.90)
d2 - Tea(RM4.90)
d3 - Juice(RM6.50)
d4 - Sky Juice(RMO.50)
d5 -
Food Menu:
f1 - Burger (RM13.50)
f2 - Sandwich(RM10.50)
Hotdog (RM10.00)
f4 -
f3 -
Fizzy(RM2.00)
Pasta(RM12.50)
f5 - Mushroom Soup(RM8.90)
Sunny Cafe unananunananana
Drinks Menu:
Order List
Coffee(RM5.90)
d2 - Tea(RM4.90)
d3 - Juice(RM6.50)
d4 - Sky Juice(RMO.50)
d5 -
d1 -
Customer : Johnny English
Table Number : 12
f3 x 1 = 10.00
f2 x 1 = 10.50
d5 x 2 = 4.00
Fizzy(RM2.00)
Order 1: f3
Order1 quantity: 1
Total bill : RM 24.50
Customer paid:
30.00
Order 2: f2
Order2 quantity: 1
Balance: RM5.50
Order 3: d5
Order3 quantity: 2
Please Come Again!
Transcribed Image Text:Input Output Sunny Cafe Menu nenanurunununan Food Menu: f1 - Burger (RM13.50) f2 - Sandwich(RM10.50) f3 - Hotdog(RM10.00) f4 - Pasta(RM12.50) Mushroom Soup(RM8.90) nanananane Sunny Cafe Order Form Customer Name : Johnny English Table Number : 12 f5 Drinks Menu: Sunny Cafe Menu nemananananrom d1 - Coffee(RM5.90) d2 - Tea(RM4.90) d3 - Juice(RM6.50) d4 - Sky Juice(RMO.50) d5 - Food Menu: f1 - Burger (RM13.50) f2 - Sandwich(RM10.50) Hotdog (RM10.00) f4 - f3 - Fizzy(RM2.00) Pasta(RM12.50) f5 - Mushroom Soup(RM8.90) Sunny Cafe unananunananana Drinks Menu: Order List Coffee(RM5.90) d2 - Tea(RM4.90) d3 - Juice(RM6.50) d4 - Sky Juice(RMO.50) d5 - d1 - Customer : Johnny English Table Number : 12 f3 x 1 = 10.00 f2 x 1 = 10.50 d5 x 2 = 4.00 Fizzy(RM2.00) Order 1: f3 Order1 quantity: 1 Total bill : RM 24.50 Customer paid: 30.00 Order 2: f2 Order2 quantity: 1 Balance: RM5.50 Order 3: d5 Order3 quantity: 2 Please Come Again!
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY