Q1)Use c code to create a program of vegetable ordering system.  Further enhance your program above as follows (include a loop structure): • 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):

• 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 

<MENU PRICES>
Customer No: 1
<input customer details here>
РАСКAGE A, в, с, D (X %3Dexit):
: 1
РАСКAGE A, в, с, D (X %3Dexit):
: 1
РАСКAGE A, в, с, D (X %3Dexit):
: 1
A
Quantity
Quantity
в
Quantity
PACKAGE a: 1 @ RM 24.50
РАСКAGE B: 1 @ RM 26.0о
PACKAGE C: 1 @ RM 27.50
= RM
= RM
= RM
24.50
26.00
27.50
= RM
= RM
= RM
PACKAGE Charges
78.00
Delivery fees
5.00
Discounts
0.00
Total to pay
= RM
83.00
THANK YOU, HAVE A NICE DAY!!
Next customer (Y=yes?): Y
<MENU PRICES>
Customer No: 2
<input customer details here>
РАСКAGE A, B, с, D (X %3D еxit):
Quantity
PACKAGE A, B,C,D (X = exit):
Quantity
B
: 3
D
: 2
= RM
78.00
РАСКAGE B: 3е Rм 26
PACKAGE D: 2 @ RM 29
= RM
58.00
PACKAGE Charges
Delivery fees
Discounts
RM
136.00
= RM
0.00
= RM
= RM
20.40
Total to pay
115.60
THANK YOU, HAVE A NICE DAY!!
Next customer (Y=yes?): n
DAILY SALES SUMMARY REPORT
Total Number of Customers = 2
PACKAGE
Quantity Sold
1
Sales Amount
A
24.50
B
4
104.00
1
27.50
D
58.00
====--
=====
TOTAL
214.00
el
Transcribed Image Text:<MENU PRICES> Customer No: 1 <input customer details here> РАСКAGE A, в, с, D (X %3Dexit): : 1 РАСКAGE A, в, с, D (X %3Dexit): : 1 РАСКAGE A, в, с, D (X %3Dexit): : 1 A Quantity Quantity в Quantity PACKAGE a: 1 @ RM 24.50 РАСКAGE B: 1 @ RM 26.0о PACKAGE C: 1 @ RM 27.50 = RM = RM = RM 24.50 26.00 27.50 = RM = RM = RM PACKAGE Charges 78.00 Delivery fees 5.00 Discounts 0.00 Total to pay = RM 83.00 THANK YOU, HAVE A NICE DAY!! Next customer (Y=yes?): Y <MENU PRICES> Customer No: 2 <input customer details here> РАСКAGE A, B, с, D (X %3D еxit): Quantity PACKAGE A, B,C,D (X = exit): Quantity B : 3 D : 2 = RM 78.00 РАСКAGE B: 3е Rм 26 PACKAGE D: 2 @ RM 29 = RM 58.00 PACKAGE Charges Delivery fees Discounts RM 136.00 = RM 0.00 = RM = RM 20.40 Total to pay 115.60 THANK YOU, HAVE A NICE DAY!! Next customer (Y=yes?): n DAILY SALES SUMMARY REPORT Total Number of Customers = 2 PACKAGE Quantity Sold 1 Sales Amount A 24.50 B 4 104.00 1 27.50 D 58.00 ====-- ===== TOTAL 214.00 el
Expert Solution
steps

Step by step

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