type is as follows: Туре Price RM 15 for 1 kilogram RM 6 for 1 kilogram RM 10 for 1 kilogram Clothes blankets / towels comforter Only one type can be washed at a time. This laundry shop also provides discounts t customers as follow: Total price Discount >= RM30 10% from total price >= RM20 dan = RM15 dan

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
Shamira Laundry has designed a new calculation system for their shop. The price for each
type is as follows:
10
Туре
Price
Clothes
RM 15 for 1 kilogram
blankets / towels
RM 6 for 1 kilogram
RM 10 for 1 kilogram
comforter
Only one type can be washed at a time. This laundry shop also provides discounts to its
customers as follow:
Total price
>= RM30
Discount
10% from total price
>= RM20 dan <RM30
5% from total price
3% from total price
0% from total price
>= RM15 dan <RM20
< RM15
Calculate the price that the customer should pay after taking into account the discount
given. Display the output as below:
BILL FOR ABC LAUNDRY
Customer Number
Total Price
Discount
Amount Paid
Write a coding to solve this problem.
Transcribed Image Text:Shamira Laundry has designed a new calculation system for their shop. The price for each type is as follows: 10 Туре Price Clothes RM 15 for 1 kilogram blankets / towels RM 6 for 1 kilogram RM 10 for 1 kilogram comforter Only one type can be washed at a time. This laundry shop also provides discounts to its customers as follow: Total price >= RM30 Discount 10% from total price >= RM20 dan <RM30 5% from total price 3% from total price 0% from total price >= RM15 dan <RM20 < RM15 Calculate the price that the customer should pay after taking into account the discount given. Display the output as below: BILL FOR ABC LAUNDRY Customer Number Total Price Discount Amount Paid Write a coding to solve this problem.
Expert Solution
steps

Step by step

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