Question: Create a new class called Rectangle ( in the same lab 0 2 project ) . The main method should output your name, lab number,

Create a new class called Rectangle (in the same lab02 project). The main method should output your name, lab number, and the output of the calculation for the area of a rectangle and the perimter. Create the variables width, length, area, and perimeter of Type Double. Use the numbers 2.5 for width and 4.0 for length for initial valuses.
Remember the area of a rectangle is width * length and the perimeter is 2* width +2* length.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!