Write a java program that specifies three parallel one dimensional arrays name length, width, and area. Each array should be capable of holding a number elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values in the length and width arrays (thus, area[i] = length [i]* width [i]) after data has been entered display the following output: Length Width Area -------- -------- ------- 25 2.6 65.00 18.2 4.9 89.18 Sample Run1 Enter the array size: 5 Enter the Length and Width for Rectangle 1: 25 2.6 Enter the Length and Width for Rectangle 2: 18 4.9 Enter the Length and Width for Rectangle 3: 100 3.27 Enter the Length and Width for Rectangle 4: 1.84 7.4 Enter the Length and Width for Rectangle 5: 56 9.5
Write a java program that specifies three parallel one dimensional arrays name length, width, and area. Each array should be capable of holding a number elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values in the length and width arrays (thus, area[i] = length [i]* width [i]) after data has been entered display the following output:
-
Length Width Area
-------- -------- -------
25 2.6 65.00
18.2 4.9 89.18
Sample Run1
Enter the array size: 5
Enter the Length and Width for Rectangle 1: 25 2.6
Enter the Length and Width for Rectangle 2: 18 4.9
Enter the Length and Width for Rectangle 3: 100 3.27
Enter the Length and Width for Rectangle 4: 1.84 7.4
Enter the Length and Width for Rectangle 5: 56 9.5
Output1:
Length Width Area
-------- -------- -------
25 2.6 65.00
18.2 4.9 89.18
100 3.27 327.00
1.84 7.4 13.62
56 9.5 532.00
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)