Object-oriented programming create a program that manages the production of a company. The production of each of the months of the year 2021 is saved, the average production of the year is also stored. Include a method to display all company information
Object-oriented
create a program that manages the production of a company. The production of each of the months of the year 2021 is saved, the average production of the year is also stored.
Include a method to display all company information.
Include at least three public or private type attributes. If they are private don't forget to include the getter and setter methods ONLY for private attributes.
Include both default and parameterized constructors.
Your program must allow
Show all company data
Request company data
Show the name of the month that had the highest production.
Show the name of all the months with production less than the annual average.
Identify the methods that are of the class and those that are of the main program.
DO NOT forget that attributes, methods, classes, objects and messages are written in English.
The MIN and MAX methods must be part of the main program. NOT of the class
Step by step
Solved in 5 steps