Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Name the class BoxMeasure Prompt user for the dimensions of a box (three prompts length, width, height in inches) Get user inputs with Scanner method

image text in transcribed

Name the class BoxMeasure Prompt user for the dimensions of a box (three prompts length, width, height in inches) Get user inputs with Scanner method .nextDouble() Print out the volume and surface area of the box (format outputs to 1 decimal place) Test program with length =18.25, width =12.5, height =8.5 Submit .java file (attach) and the run output (paste in text) Sample output --jGRASP exec: java BoxMeasure Enter the length: 18.25 Enter the width: 12.5 Enter the height: 8.5 Volume and Surface Area The box volume is: 1939.1 cubic inches and the surface area is: 979.0 square inches -jGRASP: operation complete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions