Question: I need a superclass and subclasses. Thank you!! The two most navigator a week and spaceship navi Cloud dusters wear uniforms which are either gray

 I need a superclass and subclasses. Thank you!! The two most
I need a superclass and subclasses. Thank you!!

The two most navigator a week and spaceship navi Cloud dusters wear uniforms which are either gray or wear goggles that are either ultraviolet. You common occupations on planet Galax are and each has its cloud duster and spaceship own hourly rate. Cloud dusters work between 3 and 8 hours gators either 11 or 17, both values being randomly chosen. black, and spaceship navigators trate how ier infrared or ultraviolet. You decide to use this example to method and output: public static void main (String [1 args) Worker c new CloudDuster(10.8, "gray") Worker s new SpaceshipNavigator(14.2, "infrared"): System.out.printin(nc's uniform color is ((CloudDuster)c).getUniform)+n); (SpaceshipNavigator)s).setGoggles("ultraviolet) Worker [1 crew (c, s); for (Worker w: crew) System.out.printin("joblt"+ w.getClass0.getName)): System.out.printin(w); System.out.printf("c's pay for this week is %6.2f", ?.computeEarnings()); System.out.printf("ins's pay for this week is %6.2rn", s.computeEarningsO); c's uniform color is gray job rate CloudDuster 10.8 uniform gray job rate SpaceshipNavigator 14.2 goggles ultraviolet c's pay for this week is 75.60 s's pay for this week is 156.20 you write the classes that it uses

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!