Task 2-Group of workers objects-solution:
In addition to the main class, create a class that describes the worker under the name of e.g. "Worker". Specify the attributes as shown in the image:
In the main class, workers should be created as objects, data should be entered for them:
Then calculate the weekly earnings and display on the screen: