Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Implement the following as a console application. You are to write a program (in Python) to calculate and display the number of 8ft 2x4
2. Implement the following as a console application. You are to write a program (in Python) to calculate and display the number of 8ft 2x4 studs that will be required for the side walls of simple "shotgun" style fishing camps. The user will enter the width and length of the camp building in floating point feet (14.3' for instance). For simplicity, assume the camp buildings have no interior walls (only exterior ones), and ignore any door and window openings. Assume all lumber is 8' 2x4 studs. Plates: Each exterior wall has one horizontal 2x4 bottom plate and two horizontal 2x4 top plates running the length of the wall. Studs: vertical 8' 2x4 studs are spaced every 16"; spacing may be less at the end of a wall if wall length is not an even multiple of 16" but cannot exceed 16". In addition, add three 8' 2x4 studs for each corner. Make sure not to duplicate count corners or the vertical studs already included in the wall. Assume 3% loss (meaning you should purchase 3% more lumber then you theoretically need) Hint: Integer division and rounding functions (Math.Round, Math.Ceiling, Math.Floor) can be useful in solving this problem. 2. Implement the following as a console application. You are to write a program (in Python) to calculate and display the number of 8ft 2x4 studs that will be required for the side walls of simple "shotgun" style fishing camps. The user will enter the width and length of the camp building in floating point feet (14.3' for instance). For simplicity, assume the camp buildings have no interior walls (only exterior ones), and ignore any door and window openings. Assume all lumber is 8' 2x4 studs. Plates: Each exterior wall has one horizontal 2x4 bottom plate and two horizontal 2x4 top plates running the length of the wall. Studs: vertical 8' 2x4 studs are spaced every 16"; spacing may be less at the end of a wall if wall length is not an even multiple of 16" but cannot exceed 16". In addition, add three 8' 2x4 studs for each corner. Make sure not to duplicate count corners or the vertical studs already included in the wall. Assume 3% loss (meaning you should purchase 3% more lumber then you theoretically need) Hint: Integer division and rounding functions (Math.Round, Math.Ceiling, Math.Floor) can be useful in solving this
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