Create a java program to compute the area and perimeter of a rectangle given the length and width (in centimeters). Output the area in sq. cm.; sq. m.; sq. in.; and sq. ft. For perimeter in cm.; m.; in.; and ft. Use Scanner Scan to get input from the user and System.out to output the result. image below is sample output.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Create a java program to compute the area and perimeter of a rectangle given the
length and width (in centimeters). Output the area in sq. cm.; sq. m.; sq. in.; and sq. ft.
For perimeter in cm.; m.; in.; and ft. Use Scanner Scan to get input from the user and System.out to output the result. image below is sample output.

Enter Length of Rectangle
Enter Width of Rectangle
Area =
Perimeter =
:
:
sq. cm.
sq. m.
sq. in.
sq. ft.
cm.
m.
in.
ft.
cm.
cm.
Transcribed Image Text:Enter Length of Rectangle Enter Width of Rectangle Area = Perimeter = : : sq. cm. sq. m. sq. in. sq. ft. cm. m. in. ft. cm. cm.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT