Menu

[Solved]Java Main Function Must Separate Class Called Incomedemo Write Income Class Stores Total M Q37096940

In Java:

Main function must be in a separate class called”IncomeDemo”

Write an “Income” class that stores the total monthly income foreach of the 12 months into an array of doubles. The class shouldhave 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.

Important: name your class “Income” and yourdemo program’s class “IncomeDemo”.

Expert Answer


Answer to In Java: Main function must be in a separate class called “IncomeDemo” Write an “Income” class that stores the total mon… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *