Final answer:
For Question 1, create a class that prompts a student for their name and GPA, then displays a message and computes the credit. For Question 2, create a Rectangle class with methods to calculate area and perimeter.
Step-by-step explanation:
For Question 1, you can create a class that prompts a student for their name and grade point average. The values can then be passed to a method that displays a descriptive message using the student's name and GPA. The credit can be computed by multiplying the GPA by 10 and displaying the result.
For Question 2, you can create a class named Rectangle with fields for length and width. Use a constructor to set the values of length and width to user-specified values. Write get and set methods for the variables, as well as methods to calculate and return the area and perimeter of the rectangle. In the TestRectangle class, create two Rectangle objects with different dimensions and call the appropriate methods to display the length, width, area, and perimeter of each rectangle.