Question: You are required to create a Java application for tailor shop, extractor Co. The following are the details of the desses: Superclass (abstract class) :

 You are required to create a Java application for tailor shop,

extractor Co. The following are the details of the desses: Superclass (abstract

You are required to create a Java application for tailor shop, extractor Co. The following are the details of the desses: Superclass (abstract class) : Tailor Data members: protected String custNo // customer's id number protected String custName // customer's Name protected String date // date of sewing order protected char custType // M: member or N: non member Methods: -normal constructor -printer - toString -accessors -calculateCharges abstract method, no parameters, return double value Subclass : Dress Data Members: private String dressType // type of dress, modern or traditional private boolean silk; // true for silk, or false otherwise Methods: -normal constructor -printer - toString -accessors -calculateCharges a) Write the full definition of the super class. (8 marks) b) Write the full definition of the subclass. The details to calculate the charges are shown below: Dress Type Silk Modem 250 Traditional 300 Note Member customer will get 5% discount Non-Silk 125 150 b) Write the full definition of the subclass. The details to calculate the charges are shown below: Dress Type Modem 250 Traditional 300 Note: Member customer will get 5% discount. 125 150 (12 marks) OOP (DCEE) FEB, 2021 CONFDENTRAL 6/6 c) Write driver dass TailorApp to perform following tasks: i) Store data on various dresses into an array of object named as dressCustomer. The number of data to be stored and information on each dress are given by the user. ii) Calculate and display the total amount of charges for all dresses. iii) Display the information for customer that are members and opted for traditional dress

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!