Create a second class that instantiates the first class


Part - 1:

Program: Write an application that allows a user to input the height and width of a rectangle and output the area and perimeter.

Use methods for entering the values, performing the computations, and displaying the results.  Results should be formatted and printed in a tubular display.

- Should be named Rectangle

- Prompt the user for the height and width in Main()

- Pass the height and width to a method named ComputeArea() that returns the area back to main

- Pass the height and width to a method named ComputePerimeter() that returns the perimeter back to main

- Pass the height, width, area and perimeter to a method named DisplayResults() that displays the results

Part -2:

Program: Create a class representing a student. Include characteristics such as student number, first and last name, overall GPA, classification, and major. Write at least two constructors. Include properties for each of the data items.

Create a second class that instantiates the first class with information about yourself. In the second class, create a class method that displays your name and GPA.

Please attempt to have the indentation correct. You need to make this program using java programming. Make this application in easy way.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a second class that instantiates the first class
Reference No:- TGS0953930

Expected delivery within 24 Hours