Question: QUESTION 4 Magic Scissors Sdn Bhd is a retail company that offers clothing services (sewing and alteration) to their customers. Each service has three types.

 QUESTION 4 Magic Scissors Sdn Bhd is a retail company that

offers clothing services (sewing and alteration) to their customers. Each service has

QUESTION 4 Magic Scissors Sdn Bhd is a retail company that offers clothing services (sewing and alteration) to their customers. Each service has three types. The price for sewing children clothes is 15% less than the normal price. The normal price for the type of sewing is shown in the following table: Type of sewing Price (RM) Baju kurung 65.00 Baju melayu 45.00 Abaya 50.00 The price for the type of alteration is shown in the following table: Type of alteration Price (RM) Jeans 8.00 Schoolwear 5.00 Abaya 10.00 Given the following superclass and subclasses named Customer, SewService, and Alteration Service. Superclass: Customer Attributes: String customerName; int ServNo; String date Register; String dateComplete; int shoulder; int waist; int fullLength; int chest; // customer name // job number // e.g. 10/5/2014 // e.g. 10/5/2014 // shoulder measurements // waist measurements // full length measurements // chest measurements Methods: constructor, mutator, retriver abstract double calcCharges(); //calculate price Subclass : SewService Attributes : String sewType; // type of Sew e.g baju kurung String customerType // e.g. Adult or Child Methods : Constructor, mutator, retriever, printer Subclass : Alteration Service Attributes String alterType; //Type of Alter Methods : Constructor, mutator, retriever, printer a) b) Write a method named calcCharges () for both subclasses. (6 marks) Write a program fragment for each of the following tasks: i) Declare an array of objects to store THIRTY (30) customers. (1 mark) ii) Calculate and display the total price for all customers. (4 marks) iii) Display the total price and detail information for each child customer who uses the sewing service. (4 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!