Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYTHON It costs a company $0.75 per cubic foot to build a box. they charge their customers 1.20$ per cubic foot for the box.

USING PYTHON

It costs a company $0.75 per cubic foot to build a box. they charge their customers 1.20$ per cubic foot for the box. You have been asked to write a script that asks for the dimensions of the box.(length,width,height) and the number of items in the box. Then the script should calculate and display the volume in cubic feet, cost,customer price, and profit for a box with those dimensions. the script should check if the owner wants to add additional features to the box like fans for an extra $0.10 per cubic feet. also it should check if the owner wants to add a fire suppression system for an extra $0.05 per cubic feet, and if so , calculate the additional cost. lastly, the script should check if the length, width, and height are greater than 0 . if any of the inputs are less than 0 the script should print "Invalid input, the dimensions must be greater than 0 ".

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions