Fill in the blanks so that randomValue has a random integer…

Fill in the blanks so that randomValue has a random integer value between 5 and 75, both ends inclusive. int randomValue = ______1______ (______2______.random() * ______3______) + ______4______; Use this template for your answer (please type fully – you cannot copy): 1: [answer in blank 1] 2: [answer in blank 2] 3: [answer in blank 3] 4: [answer in blank 4]

Write a constructor for Worker. The constructor will take th…

Write a constructor for Worker. The constructor will take the name, money, company, and salary, and set all instance variables appropriately. The constructor should also update the numberOfWorkers variable to indicate that there’s a new worker. Note: even though the class is abstract, this doesn’t affect anything on the constructor. You can treat the class as any concrete class in this particular question.

Write a concrete method with protected visibility for Worker…

Write a concrete method with protected visibility for Worker called earnMoney. It receives an int (increment), which indicates how much money a worker’s money will be increased by. If the parameter is positive, the worker’s money will be adjusted accordingly, otherwise, it should do nothing.