Question
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
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 StartedRecommended Textbook for
Matlab An Introduction with Applications
Authors: Amos Gilat
5th edition
1118629868, 978-1118801802, 1118801806, 978-1118629864
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App