Question: Answer question use object programming in java. QUESTION 3 Given the following information of super class named Converter and its subclass named Mile2 KM. Super
Answer question use object programming in java.

QUESTION 3 Given the following information of super class named Converter and its subclass named Mile2 KM. Super class: Converter Attributes private double n // the value to be converted Methods : constructors, mutators, retrievers, printers and processors Subclass : Mile2KM Attributes private static final double KM = 1.6093 // 1 mile = 1.6093 km Methods: constructors, mutators, retrievers, printers and processors a) Write the definition of normal constructor for the super class and subclass. (3 marks) b) Write the definition of converto () method for the subclass to calculate and return the converted value. (3 marks) c) Assuming that the array named arr consists of 100 objects of Mile2KM type. Write a program segment to count and display the number of converted values ranging from 15.5 to 30.0 (4 marks) d) Write a program segment to calculate and display the difference between the maximum and minimum converted values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
