write-a-program-for-two-assingments

i need somebody to solve the code as it required in the uploaded file