Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started