Solved Please Answer Task 2 Pls Do The Code In Java And P

Solved Please Answer Task 2 Pls Do The Code In Java And P