Question: In Java, create a program to determine the perimeter and area of a rectangle. Write a rectangle class with a separate runner class. Allow the

In Java, create a program to determine the perimeter and area of a rectangle. Write a rectangle class with a separate runner class. Allow the user to input the rectangle length and width. All should be tested in a runner. You need: file input using scanner, instance variables, constructors, minimum of 3 objects and 3 methods.

Example:

Please enter the length of the rectangle (in inches): 6

Please enter the width of the rectangle (in inches): 10

The area of the rectangle is 60 inches. The perimeter is 32 inches. Would you like to run another (y/n)?

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!