Answer to Question #255773 in Java | JSP | JSF for mike

Question #255773

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:

  1. Length         Width           Area
  2. --------          --------         -------
  3. 25               2.6              65.00
  4. 18.2             4.9              89.18
  5. Sample Run1
  6. Enter the array size5
  7. Enter the Length and Width for Rectangle 125 2.6
  8. Enter the Length and Width for Rectangle 2 18 4.9
  9. Enter the Length and Width for Rectangle 3100 3.27
  10. Enter the Length and Width for Rectangle 41.84 7.4
  11. Enter the Length and Width for Rectangle 556 9.5
  12.  
  13. Output1:
  14. Length         Width           Area
  15. --------          --------         -------
  16. 25               2.6              65.00
  17. 18.2             4.9              89.18
  18. 100              3.27            327.00         
  19. 1.84             7.4             13.62
  20. 56               9.5             532.00
1
Expert's answer
2021-10-23T18:30:27-0400
Dear mike, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS