The civil engineering department has asked you to write a
The water towers are a cylinder topped with a half sphere. The engineers want to find the design that has the highest volume.
The dimensions of the three designs are as follows:
Design 1:
Sphere
Radius 98 feet
Cylinder
Radius 98 feet
Height 102 feet
Design 2:
Sphere
Radius 90 feet
Cylinder
Radius 90 feet
Height 120 feet
Design 3:
Sphere
Radius 100 feet
Cylinder
Radius 100 feet
Height 98 feet
Write two functions that will calculate the volume of a sphere and a cylinder respectively. Then, use these functions to write a program that will find the design with the largest volume.
Hint: Remember that the tower only consists of a half sphere.
Solve in Python Please
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images
- Draw a flowchart for the Frazzle function.arrow_forwardWrite a program that paints the 4 areas inside the mxm square as follow: Upper left: black. RGB (0, 0, 0) Upper right: white. RGB (255, 255, 255) Lower left: red. RGB (255, 0, 0) Lower right: random colors Random colors Hint: Define a function that paints one of the four squares. Call the function 4 times to complete the painting. (painting means setting the pixels)arrow_forwardHelp Me With C Programming. At Lili's birthday party, there is a game arranged by Jojo as the host. The game is handing out a number of Y candies to a number of X people where all the sweets taste sweet except for the last one candy that tastes like rotten beans. The distribution of sweets will be sequential starting from position Z and if it passes the last position then the distribution of candy continues to the first position. Write down the person in the position of who will get the last candy. Format Input The first line of input is T, which is the number of test cases. The second row and the next number of T lines are X, Y, Z. X is the number of people who will be handed out candy. Y is the number of candies available. Z is the initial position of the person who will be handed out the candy. Format Output A string of "Case #N: " and a number that is the position of the person who got the last candy [Look at Image] In the sample above, for example, which is inputted in the…arrow_forward
- In Python using the Pandas Module: Find the Player with the Highest Batting Average from 2019, only if their number of plate appearances (PA) >= 250. Plate Appearances (Pl_App), calculated as: Pl_App = HBP + SH + SF + AB + BB + Batting Average (B_AVG) is the ratio of Hits to at Bats. So B_AVG = H / AB, and is reported to three decimal points. Show code and output to prove functionality. Below is 3 years of player data: player year team lg G AB R H HR BB SO IBB HBP SH SF Alan J. 2020 NYA AL 2 0 0 0 0 0 0 0 0 0 0 Barry B. 2020 HOU AL 4 0 0 0 0 0 0 0 0 0 0 Michael J. 2020 CHA AL 60 240 43 76 19 18 59 1 3 0 1 Jim R. 2020 ATL NL 46 160 46 40 14 38 60 2 4 0 0 Nolan R. 2020 TBA AL 54 185 29 48 8 20 74 0 0 0 0 Sammy S. 2020 CHN NL 13 0 0 0 0 0 0 0 0 0 0 Frank T. 2020 SDN NL 3 1 0 0 0 0 1 0 0 0 0 Alan J. 2019 KCA AL 6 0 0 0 0 0 0 0 0 0 0 Barry B. 2019 ATL NL 16 49 4 9 2 2 18 0 0 0 0 Michael J. 2019 LAA AL 38 124 9 20 3 7 55 0 1 0 0 Jim R. 2019 MIN AL 44 89 10 17 0…arrow_forwardPython Your first assignment is to help test the “red mushroom” power-up. This power-up provides a speed boost to the player for a limited time. The team wants to be able to easily test different speed values to find the one that is the most fun. Your task is to write the function calculate_boost_distance(speed, time). This function takes an integer value for speed representing the miles per hour of the kart and a floating point value time that represents the number of seconds the boost will last. It returns a floating point number representing the speed multiplied by the time. Sample usage of the completed function: Full explain this question and text typing work onlyarrow_forwardthis is a java exercisearrow_forward
- In pythonarrow_forwardBuilding Arena models: A few years ago, I was in a group involved with building industrial facilities. A team of consultants visited us to make a presentation about improving the building process. They had a demonstration in the form of a game. We were divided into two teams of four and sat four in a row at a table. Person 1 was given 100 poker chips. The game process was Person 1 would roll a single die. Whatever the number was, he or she would pass that number of chips to Person 2. Person 2 would roll the die, and • If the number of the roll is less than or equal to the chips in front of Person 2, the number of the die roll is passed to the next person. Any remaining chips stay in place, to be passed on another turn when possible.• If the roll on the die is greater than the number of the chips in front of Person 2, all the chips are passed, but the difference in what could be passed is lost on that turn. For example, if Person 2 has 3 chips and rolls a “1,” then one chip is passed.…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education