Answered step by step
Verified Expert Solution
Link Copied!

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) :

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Question Can any type of stock or securities be used in an ESOP?

Answered: 1 week ago

Question

Question Can a self-employed person adopt a money purchase plan?

Answered: 1 week ago