Q1)Use c code to create a program of vegetable ordering system.  Further enhance your program above as follows (include a loop structure): • allow data to input for more customers' name , home address and phone number.  • for purchase amount of RM80.00 or more, the delivery charge is waived • for purchase amount of RM100 or more, a 15% discount is given • allow data to be continuously input for more customers • After processing the last customer’s order, display a summary report of sales of the day showing details of total number of customers, a summary of each of the packages sold for the day and the total sales value .

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

Q1)Use c code to create a program of vegetable ordering system. 

Further enhance your program above as follows (include a loop structure):

• allow data to input for more customers' name , home address and phone number. 

• for purchase amount of RM80.00 or more, the delivery charge is waived

• for purchase amount of RM100 or more, a 15% discount is given

• allow data to be continuously input for more customers

• After processing the last customer’s order, display a summary report of sales of the day showing details of total number of customers, a summary of each of the packages sold for the day and the total sales value .

< LOCO, WELCOME message, ete >
Vegetables Ordering System
<MENU PRICES>
Customer No: 1
<input customer details here>
PACKAGE A, B, C,D (X = exit) :
Quantity
PACKAGE A, B,C,D (X = exit):
Quantity
PACKAGE A, B,C,D (X exit):
Quantity
PACKAGE a: 1 @ RM 24.50 = RM
PACKAGE B: 1 é RM 26.00 = RM
PACKAGE C: 1 i RM 27.50 = RM
24.50
26.00
27.50
PACKAGE Charges
Delivery fees
Discounts
Total to pay
= RM
= RM
= RM
= RM
78.00
5.00
0.00
83.00
THANK YOU, HAVE A NICE DAY!!
Next customer (Y"yes?): Y
<MENU PRICES>
Customer No: 2
<input customer details here>
PACKAGE A, B, c,D (X = exit) :
Quantity
PACKAGE A, B,C,D (X = exit):
Quantity
: 2
- RM
78.00
PACKAGE B: 3 @ RM 26
PACKAGE D: 2 e RM 29
= RM
58.00
PACKAGE Charges = RM
Delivery fees
Discounts
Total to pay
136.00
= RM
= RM
= RM
0.00
20.40
115.60
THANK YOU, HAVE A NICE DAY!!
Next customer (Y=yes?): n
DAILY SALES SUMMARY REPORT
Total Number of Customers = 2
Quantity Sold
PACKAGE
Sales Amount
24.50
104.00
27.50
58.00
D.
TOTAL
214.00
< ENDING mesage>
I UI AI
AI AI I
Transcribed Image Text:< LOCO, WELCOME message, ete > Vegetables Ordering System <MENU PRICES> Customer No: 1 <input customer details here> PACKAGE A, B, C,D (X = exit) : Quantity PACKAGE A, B,C,D (X = exit): Quantity PACKAGE A, B,C,D (X exit): Quantity PACKAGE a: 1 @ RM 24.50 = RM PACKAGE B: 1 é RM 26.00 = RM PACKAGE C: 1 i RM 27.50 = RM 24.50 26.00 27.50 PACKAGE Charges Delivery fees Discounts Total to pay = RM = RM = RM = RM 78.00 5.00 0.00 83.00 THANK YOU, HAVE A NICE DAY!! Next customer (Y"yes?): Y <MENU PRICES> Customer No: 2 <input customer details here> PACKAGE A, B, c,D (X = exit) : Quantity PACKAGE A, B,C,D (X = exit): Quantity : 2 - RM 78.00 PACKAGE B: 3 @ RM 26 PACKAGE D: 2 e RM 29 = RM 58.00 PACKAGE Charges = RM Delivery fees Discounts Total to pay 136.00 = RM = RM = RM 0.00 20.40 115.60 THANK YOU, HAVE A NICE DAY!! Next customer (Y=yes?): n DAILY SALES SUMMARY REPORT Total Number of Customers = 2 Quantity Sold PACKAGE Sales Amount 24.50 104.00 27.50 58.00 D. TOTAL 214.00 < ENDING mesage> I UI AI AI AI I
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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