Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started