Question: Program 1 (40 points: Following the instructions in the problem statement, design and implement a Java program for programming exercise 9.1, page 360 (name it


Program 1 (40 points: Following the instructions in the problem statement, design and implement a Java program for programming exercise 9.1, page 360 (name it Rectangle.java). Next, develop a test program in a separate file (call it TestRectangle.java)to create two Rectangle objects as stated in the problem statement. In addition to creating the two Rectangle objects required by the textbook problem statement, page 3 aattoo ranctan ss statemen constructor and at least one must be created using the constructor that has parameters specifying the objects length and width). Do not declare the fields width and height with the private keyword; change and display their values without using mutator or accessor methods. Display the width, height, area, and perimeter of each rectangle object using proper labels for the outputs. Document your code and organize the output using appropriate formatting techniques
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
