Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[E] LAB TEST 2: DEVELOP A COMPLETE C-PROGRAMMING CODES FOR BELOW STATEMENTS AND SUBMIT WITHIN THE GIVEN TIME (3 HOURS) (10%) Popular bookstore plans to

image text in transcribed

[E] LAB TEST 2: DEVELOP A COMPLETE C-PROGRAMMING CODES FOR BELOW STATEMENTS AND SUBMIT WITHIN THE GIVEN TIME (3 HOURS) (10%) Popular bookstore plans to setup year end promotion for different categories of book. You are requested to design a checkout system their online purchase system. Each colour tag represents different discount: Yellow (3%), Red (6%), Blue (8%), Green (10%), White (discount RM1.00). Your program inputs are total book to purchase (e.g n unit), enter the coordinate of the book (e.g. [O][A],[3][B]) & quantity needed for the selected book. The program outputs are price before discount, price after discount, total price during checkout (based on total number of book). Book type [A] [B] [C] [D] Food Education Animal Car Fruit Discount [O] *Burgers *Top university Lizards * Cooper *Durian King Yellow RM:14.50 RM:23.50 RM:14.50 RM:24.50 RM:14.50 [1] Tomyam MyUniLife **Taper Maserati Mango Red RM:12.50 RM:21.50 RM:15.50 RM:22.50 RM:10.50 [2] *Thai Food *Online learning Snakes *Super car Rambutan Blue RM:10.50 RM:24.50 RM:16.50 RM:35.50 RM:16.50 [3] Chilli Crab School in India Squid Car 70's Star Fruit Green RM:10.50 RM:18.90 RM:18.50 RM:12 RM:15.50 [4] **Nasi **Private school *Spider Proton ** Langsat White lemak system RM:12.80 RM:19.50 RM:16.50 RM:13.50 RM:26.50 Note: extra discount RM1.00 (*) and RM1.50 (**) for selected book purchased during weekday

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

Define organizational culture.

Answered: 1 week ago

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago

Question

=+How will this affect the recruiting process?

Answered: 1 week ago