java and python packages and libraries assignment

The instructions are attached to this question in a PDF file. This has to be done in both Java and Python please. I will review the code and see if it runs without any errors. If you have any questions let me know!