Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python programing Calculate info about a cuboid Ask for appropriate input for the length, height, and width. Then present the user with info about it.

python programing

Calculate info about a cuboid Ask for appropriate input for the length, height, and width. Then present the user with info about it. Include the surface area, volume, and lengths. Your program should store all values and calculation results as variables. Only variable names should be part of the print function

Example running of the program

Welcome to the Cuboid Calculator!

Please enter values in feet.

Enter the length: 5

Enter the width: 10

Enter the height: 8

Your 5 X 10 X 8 cuboid has a volume of 400 cubic feet and a surface area of 340 square feet.

Your program should work for integral (whole) numbers and floating-point (decimal) numbers.

What I have so far.

print("Welcome to the Cuboid Calculator!") print("Please enter values in feet.") print("Enter the length: ") length = input() print("Enter the width: ") width = input() print("Enter the height: ") height = input() volume = length.isnumeric() * height.isnumeric() * width.isnumeric() sArea = length * width.isnumeric() print( "Your" + length + "X" + width + "X" + height + " cuboid has a volume of" + volume + "cubic feet and" + "a surface area of" + sArea + "square feet.")

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

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

Students also viewed these Databases questions

Question

What are your businesss key cost drivers?

Answered: 1 week ago