Question: n Not JAVA e: Rectangle Area-Complete the Program using the starter code is given r source code given below contains partially written program named AreaRectangle

n Not JAVA e: Rectangle Area-Complete the Program using the starter code is given r source code given below contains partially written program named AreaRectangle Your job is to complete the program organizing it. When you complete and run the program it asks the user to enter the width and length of a rectangle, and then display the rectangle's area. by write the methods and import javax.swing.JOptionPane; Programming Challenge , Rectangle Area public class AreaRectangle public static void main(StringIl args) double lengthiThe rectangle's length double width; double area; // The rectangle's width // The rectangle's area // Get the rectangle's length from the user. length = getLength(); // Get the rectangle's width from the user. width getWidth0 // Get the rectangle's area. area getArea (length, width): // Display the rectangle data. displayData (length, width, area); System.exit (0): These are the methods and their purpose. getlength-This method should ask the user to enter the rectangle's len and then return that value as a double. getWidth-This method should ask the user to enter the rectangle's width then return that value as a double , and getArea aisplay Duta
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
