Question description

Programming Task three: Inheritance and ArrayListFor this task, we’ll work with the worker program. See the supplied recordsdata.Class Worker will characterize the superclass. This class is an instance of re-use in your object-oriented design.Class StudentEmployee might be derived from the Worker class. It ought to have fields to carry the next info:Parameters Descriptions hoursWorked The variety of hours labored within the present two-week pay interval isWorkStudy True is the coed is eligible for work research standing; false in any other case payRate The scholar’s hourly pay charge Q1. Create the StudentEmployee as a little one class of Worker(you have to override the constructor).Q2. Learn the record of pupil workers from semployee.csv and retailer them into a ArrayList.Q3. Work together with your consumer by command-line run arguments.instructions Actions present show each the coed worker’s info (id, charge, and so forth.) add add a new pupil worker (consumer wants to offer the require informations)take away take away a number of pupil workers (consumer want to offer ids) sort-by-name kind the record of pupil workers by their namessort-by-rate kind the record of pupil workers by their hourly ratestudent-isWorkStudy present all the scholars which might be eligible for work research statusshow-highest present the coed worker with highest hourly rateshow-lowest present the coed worker with lowest hourly ratechange-rate id/identify xxx consumer enter the coed worker’s identify or id, this system change its charge to xxxrate x y (bonus) present the coed workers that with the hourly charge between x and y.

Published by
Essays
View all posts