Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: Submit: 1) Flow chart 2) Source code 3) Sample output (include all condition required) 4) Please make sure that you submit your own work

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Instructions: Submit: 1) Flow chart 2) Source code 3) Sample output (include all condition required) 4) Please make sure that you submit your own work (Your work should NOT be the same as your friends' work). O will be awarded if found guilty of copying/plagiarism. MYABC Bookstore is now upgrading their everxdax's sales transaction from the manual to automated system. This system is provided to the cashiers of the bookstore to record everydax's sales and payments made by customers. Products available in the bookstore are categorised by their types. Each type has its respective product id as listed below: Product id bl b2 b3 b4 Product Type Educational Book Novel Magazine Stationary The following are the tasks that the system should do: i to read the related inputs (number of items bought, product id, quantity, unit price, and payment) representing each sale, ii. to calculate and display the total price of each sale, iii. to calculate and display the balance of payment made by a customer, iv. to return the product type based on its product id, and v. to display a receipt of each sale. vi. to display a daily sales report. The format of inputs and outputs is as follows: Welcome to ABS, Bookatoze Mathed AJRALI | Enter the Bunde- of product stens bought:2 Product 1d Product type Educational Book b2 Novel Mathed ARAD b3 Magazine Stationary Iten 2 Enter the product 10 (1/52/53/4 Enter quantity: 2 Batez pasce/ RAFB 11.00 Product 14 Product type Educational Book Novel b3 Magazine stationary Iten 2 Enter the product 30 (1/62/ba/ biki Enter quantity: 1 Bate: price/BRABU 150.90 Total price: RM 272.90 Bate: the payment made by : Eratover 200.00 GABC Bookstore: Receipt of sale and Paynent Product Type Educational Book pitagazine 150.90 22.00 Method PRORAR PO Isotal Price 172.90 Jangunt Tendered Balance EM 200.00 Do you want to continue? 1. ER-NO :1 Welcome to ABG Sookatoze Enter the number of product itens bought :3 Product 14 Product type Educational Book Novel Magazine Stationary Iten 2 Enter the product 10 (1/2/3/4A antes quantity: 1 Bate: PS/RATO EN 199.00 Product id Product type Educational Book Novel 3 Magazine stationary Iten 2 Enter the product 10 1/2/3/4 AZ Enter quantity Ente: pesce/RAFBX 50.50 Product 30 Product type 1 Educational Book Novel Magazine Stationary Iten 3 Enter the product 3d 1/62/53/4 Enter quantity: 5 Batez pasce/RAFEN 2.10 Potal price: RM 250.00 Bate: the payment made by a bratorer 300.00 ABS. Bookatoze: Recept of sale and Paynent. Product Type Educational Book NOTA1 stationary 199.00 50.50 10.50 Sotal Price 250.00 Amount Tendered Balance RM 300.00 Do you want to continue? 1. FRANZ-NO :2 ABC Bookstore: Sales Report Product ID Quantity 2 Sales Anount 349.90 50.30 22.00 10.50 Method JABORAD bz b3 b4 5 Grand Total 10 432.90 Thank you! See you again. Figure 1: Sample input and output You have been assigned to write a program to solve the problem based on the description given above. The program must have five methods as listed below (refer Figure 1) and use a few arrays to store data: 3) b) voltece c) listIdM d) protectie e) BiotBaleaBerest

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

Know the principles of effective service recovery systems.

Answered: 1 week ago

Question

Explain the service recovery paradox.

Answered: 1 week ago