(Solved) : Java Write Income Class Stores Total Monthly Income 12 Months Array Doubles Class Methods Q37167620 . . .
In java Write an “Income” class that stores the total monthlyincome for each of the 12 months into an array of doubles. Theclass should have methods that return the following:
- total income for the year
- average monthly income
- the month with the highest income
- the month with the lowest income
Write a program that demonstrates this class. You’ll need topass a 12-element double array to the class constructor.
Please name the class “Income” and the demo program’s class”IncomeDemo”. (two separate .java files)
Expert Answer
Answer to In java Write an “Income” class that stores the total monthly income for each of the 12 months into an array of doubles….
OR