Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

both 2 and 3. 2. Implement the following as a console application. You are to write a program (can be in either Python or C#)

image text in transcribed
image text in transcribed
both 2 and 3.
2. Implement the following as a console application. You are to write a program (can be in either Python or C#) 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. 3. Implement a console application in Python that get the necessary inputs needed from the user to evaluate the following Boolean condition and write the result to the console window: The condition is true if Meg is older than both Sue and Elise, OR Mary can eat at least 2 more pizza slices than Elise, OR NOT (Sue is younger than Mary but Sue can eat more slices than Elise), OR Sue can eat at least 4 slices; the condition is false otherwise. 2. Implement the following as a console application. You are to write a program (can be in either Python or C#) 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. 3. Implement a console application in Python that get the necessary inputs needed from the user to evaluate the following Boolean condition and write the result to the console window: The condition is true if Meg is older than both Sue and Elise, OR Mary can eat at least 2 more pizza slices than Elise, OR NOT (Sue is younger than Mary but Sue can eat more slices than Elise), OR Sue can eat at least 4 slices; the condition is false otherwise. 2. Implement the following as a console application. You are to write a program (can be in either Python or C#) 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. 3. Implement a console application in Python that get the necessary inputs needed from the user to evaluate the following Boolean condition and write the result to the console window: The condition is true if Meg is older than both Sue and Elise, OR Mary can eat at least 2 more pizza slices than Elise, OR NOT (Sue is younger than Mary but Sue can eat more slices than Elise), OR Sue can eat at least 4 slices; the condition is false otherwise. 2. Implement the following as a console application. You are to write a program (can be in either Python or C#) 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. 3. Implement a console application in Python that get the necessary inputs needed from the user to evaluate the following Boolean condition and write the result to the console window: The condition is true if Meg is older than both Sue and Elise, OR Mary can eat at least 2 more pizza slices than Elise, OR NOT (Sue is younger than Mary but Sue can eat more slices than Elise), OR Sue can eat at least 4 slices; the condition is false otherwise

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

More Books

Students also viewed these Databases questions

Question

8. Provide recommendations for how to manage knowledge.

Answered: 1 week ago