Activity 1. Write a linked list program using a struct that stores items (item name, barcode, price, quantity, total price) in the transaction and all related functions. 2. Test the program by printing the items in the linked list (output as shown in Figure 1). 3. Delete an item from the linked list and show new output (total price of the transaction).

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

Please write it in C++ 

Iņ a POS system, a transaction is based on items purchased by the customer. The following is an example
of a customer transaction receipt.
ABC SUPERSTORE SDN BHD (1190415-W)
ALAMESRA 1
UNIT NO. 110,111,112,
GROUND FLOOR, BLOCK Q,
ALAMESRA PLAZA UTAMA (PHASE 3) 88450, KOTA
KINABALU,
Invoice No: ALM102202204140032
Cashier : RAFIDAH BINTI MUSA (ALM1)
14/02/22
12:47:44
F&N 325ML ICE CREAM SODA
9556570105061
1.80*1
1.60
MAGNUM 90ML*1 CLASSIC AMBER
8851932295796
4.70*2
9.40
NESTLE MUSANG KING 75ML
9556001263827
6.60*1
6.60
Total Item 3
Total Qty 4
Total Saving 0.00
Sub Total
17,80
Rounding
Total
0.00
17.80
CASH 20.00
Change. 2.20
GOODS SOLD ARE NOT REFUNDABLE
VISIT US AT
www.facebook.com/abcsuperstore
THANK YOU AND PLEASE COME AGAIN
Figure 1: Sample of POS transaction slip
Activity
1. Write a linked list program using a struct that stores items (item name, barcode, price, quantity, total
price) in the transaction and all related functions.
2. Test the program by printing the items in the linked list (output as shown in Figure 1).
3. Delete an item from the linked list and show new output (total price of the transaction).
Transcribed Image Text:Iņ a POS system, a transaction is based on items purchased by the customer. The following is an example of a customer transaction receipt. ABC SUPERSTORE SDN BHD (1190415-W) ALAMESRA 1 UNIT NO. 110,111,112, GROUND FLOOR, BLOCK Q, ALAMESRA PLAZA UTAMA (PHASE 3) 88450, KOTA KINABALU, Invoice No: ALM102202204140032 Cashier : RAFIDAH BINTI MUSA (ALM1) 14/02/22 12:47:44 F&N 325ML ICE CREAM SODA 9556570105061 1.80*1 1.60 MAGNUM 90ML*1 CLASSIC AMBER 8851932295796 4.70*2 9.40 NESTLE MUSANG KING 75ML 9556001263827 6.60*1 6.60 Total Item 3 Total Qty 4 Total Saving 0.00 Sub Total 17,80 Rounding Total 0.00 17.80 CASH 20.00 Change. 2.20 GOODS SOLD ARE NOT REFUNDABLE VISIT US AT www.facebook.com/abcsuperstore THANK YOU AND PLEASE COME AGAIN Figure 1: Sample of POS transaction slip Activity 1. Write a linked list program using a struct that stores items (item name, barcode, price, quantity, total price) in the transaction and all related functions. 2. Test the program by printing the items in the linked list (output as shown in Figure 1). 3. Delete an item from the linked list and show new output (total price of the transaction).
Expert Solution
steps

Step by step

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