Question: answer please QUESTION 2 (30 MARKS] Clean Laundry is a company which provides services for wash and dry clothes for their client. Customer can wash
answer please![answer please QUESTION 2 (30 MARKS] Clean Laundry is a company which](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4574d25794_16466f4574c8a6db.jpg)
QUESTION 2 (30 MARKS] Clean Laundry is a company which provides services for wash and dry clothes for their client. Customer can wash and dry or choose only one of the services. For wash service, free detergent and softener are given. The washing machine can accommodate up to 15kg per wash only. For this case study, only total payment need to print out. Table 1 shows the example of input and output values. Info of pricing as following: i) For cloths weight less than and equal to 10kg, the price for wash is RM8.00; ii) For cloths weight between 10kg and 15Kg, the price for wash is RM10.00; User can choose to wash either using warm or cold water. For warm water, the extra charge is RM2.00, meanwhile no extra charge for cold water. iv) For dry service, user can dry for standard time (20 minutes) with price RM6.00. If they want extra time (up more 10 minutes), the price is extra RM1.50 from the standard time: V) For membership, discount 20% are given from the total payment. Table 1 INPUT Member? Yes Service (Wash / Dry): Wash Dry Weight (KG) 12 Water (Warm / Cold): Warm Next services? Yes Service (Wash / Dry): Minute (Standard / Extra): Extra Next services? No CALCULATION Price: RM17.50 Discount: RM3.90 PRINT Total Payment RM15.60 Based on the given case study, answer the following questions: (a) Write an algorithm with module to calculate the total payment. The call-by-value and call-by-reference parameters must be clearly presented in the algorithm. [25 Marks! (b) Develop a coupling diagram based on your answer in Question 2(a). [5 Marks 4 QUESTION 2 (30 MARKS] Clean Laundry is a company which provides services for wash and dry clothes for their client. Customer can wash and dry or choose only one of the services. For wash service, free detergent and softener are given. The washing machine can accommodate up to 15kg per wash only. For this case study, only total payment need to print out. Table 1 shows the example of input and output values. Info of pricing as following: i) For cloths weight less than and equal to 10kg, the price for wash is RM8.00; ii) For cloths weight between 10kg and 15Kg, the price for wash is RM10.00; User can choose to wash either using warm or cold water. For warm water, the extra charge is RM2.00, meanwhile no extra charge for cold water. iv) For dry service, user can dry for standard time (20 minutes) with price RM6.00. If they want extra time (up more 10 minutes), the price is extra RM1.50 from the standard time: V) For membership, discount 20% are given from the total payment. Table 1 INPUT Member? Yes Service (Wash / Dry): Wash Dry Weight (KG) 12 Water (Warm / Cold): Warm Next services? Yes Service (Wash / Dry): Minute (Standard / Extra): Extra Next services? No CALCULATION Price: RM17.50 Discount: RM3.90 PRINT Total Payment RM15.60 Based on the given case study, answer the following questions: (a) Write an algorithm with module to calculate the total payment. The call-by-value and call-by-reference parameters must be clearly presented in the algorithm. [25 Marks! (b) Develop a coupling diagram based on your answer in Question 2(a). [5 Marks 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
