Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fabric must be purchased in whole yards, so purchasing just 1 inch of fabric requires purchasing 1 entire yard. With this in mind, write

   

Fabric must be purchased in whole yards, so purchasing just 1 inch of fabric requires purchasing 1 entire yard. With this in mind, write a Python program that asks the user enter the number of inches of fabric desired, and then print the smallest number of whole yards of fabric that must be purchased. Note: 36 inches equals 1 yard. Sample of expected output:- Sample 1:- Enter the number of inches: 54 The smallest number of whole yards of fabric is: 2 Sample 2:- Enter the number of inches: 72 The smallest number of whole yards of fabric is : 2 Sample 3:- Enter the number of inches: 110 The smallest number of whole yards of fabric is :3

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

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions

Question

Do the Ewens have a valid claim against Federico Maccherone?

Answered: 1 week ago