Question: In python Gene's Green Golf Center Gene's Green Golf Center is remodeling their golf course, and has hired you to design and write a program
In python




Gene's Green Golf Center Gene's Green Golf Center is remodeling their golf course, and has hired you to design and write a program that will be used to help determine what materials will be needed to complete the project. There are 18 holes on the golf course, but Gene is not very creative, so every hole looks very similar to this, only the length and width change: Smooth Green Sod Brick Retaining Wall Bushes Smooth Green Sod Entry Trail Hole Sand Trap Vidth Tee-off Area Rough Sod Length Given the length and width of a hole, Gene needs to know the following 1. Total square yards of rough sod, rounded up to nearest square yard 2. Total square yards of smooth green sod, rounded up to nearest square yard 3. Tons of sand needed for the sand trap (US tons), rounded up to nearest ton 4. Number of bricks needed for the retaining wall, rounded up to nearest brick. 5. Number of bushes needed, rounded down to nearest bush. 6. How long the given hole will take to mow each week in minutes, rounded up to nearest minute Your program should take, as input from the user, the length and the width of a hole. You program should then perform all necessary calculations and produce a tidy report with all of the required information regarding materials and maintenance Here is some information you may need. 1. Gene will provide the length and width of the hole in yards. Your program should ask for this information in that order (length followed by width). Your program should expect a float for these quantities. These should be the only inputs needed to generate the report. 2. The hole green and the tee-off green areas each are circles with a diameter that is always half of the course width. 3. The sand trap is a circle with a diameter that is always one-third of the width of the course width. 4. All sand traps are 1 foot deep 5. Sand weighs 100 lbs. per cubic foot. 6. The brick retaining walls are always one brick deep and 3 bricks tall. The retaining wall covers half of the circumference of the sand trap, and each brick is 12 inches long 7. The course is surrounded on all sides by bushes. Gene wants to plant 1 bush for every yard of the course perimeter, leaving 2 spots empty for the entry and exit trails 8. It takes 0.5 seconds to mow the grass of each square yard of rough green sod (it's a very large, fast mower!). It takes double this time for the smooth green, because the mower makes 2 passes to make it very even. The area covered by the bushes should be included in the mowing time calculation. The area covered by the sand trap should be excluded from the mowing time. You can ignore the contribution of the retaining wall and entrylexit trails Part 2- Tmplementation Now that you have taken the time to analyze the problem and to outline a design for a solution, it is time to begin implementing your design. Use the design document that you created for Part 1 of this challenge and implement your design. For each function you identified in your design outline, you will need to implement (define) that function. This often requires a little bit of additional design for example, the body of the function (the sequence of instructions that needs to be followed when this function is called) will need to be designed before you code it. Be sure to follow your design specifications (i.e. function name, list of parameter variables, etc.) You will also need to implement the code necessary to collect and store the program inputs. Then you will need to implement the code that will call your functions to compute all the required program outputs. Finally, you will need to implement the code to print out a nicely formatted report with all of the information that Gene needs Here is an example of what Gene should see when he runs your program. Enter Course Length 20 Enter Course Width 10 Total square yards of rough sod153 Total square yards of smooth sod 40 Tons of sand Number of retaining wall bricks48 Number of bushes Total Mowing Time Cmins) : 4 :58 : 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
