You are cutting off a piece of pie like this, where c is the length of the straight part (called the chord length) and h is the height of the piece.
There is an approximate formula for the area:
However, h is not so easy to measure, whereas the diameter d of a pie is usually well-known. Calculate the area where the diameter of the pie is 12 inches and the chord length of the segment is 10 inches. Generalize to an
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
BIG JAVA: LATE OBJECTS
Additional Engineering Textbook Solutions
Starting Out with Java: Early Objects (6th Edition)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Concepts of Programming Languages (11th Edition)
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Problem Solving with C++ (10th Edition)
- Aerospace engineers sometimes compute the trajectories of projectiles such as rockets. A related problem deals with the trajectory of a thrown ball. The trajectory of a thrown by a right fielder is defined by the (x,y) coordinates as displayed in the Figure below. Find the appropriate initial angle θ0 , if v0 = 30m/s, and the distance to the catcher is 90 m. Note that the throw leaves the right fielder’s hand at an elevation of 1.8 m and the catcher receives it at 1 m. Also, you have to write your Matlab code.arrow_forwardYou're hosting a game show that needs a wheel of fortune. Your task is to test if the wheel of fortune works well. To do this, spin the wheel several times and write down normalized deviation angles from the initial state so that the results range between 0 and 1. The wheel of fortune is suitable for the show if the results are evenly distributed on the interval [0, 1]. You will get the following 25 observations:0.42 0.06 0.88 0.40 0.90 0.38 0.78 0.71 0.57 0.66 0.48 0.35 0.16 0.22 0.08 0.110.29 0.79 0.75 0.82 0.30 0.23 0.01 0.41 0.09Use a suitable program language (e.g. R or Python) and a Kolmogorov–Smirnov test to check whether the wheel of fortune is suitable. Determine the p-value.arrow_forwardA fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that a fish is swimming past if:there are four consecutive depth readings which form a strictly increasing sequence (such as 3 4 7 9) (which we will call "Fish Rising"), orthere are four consecutive depth readings which form a strictly decreasing sequence (such as 9 6 5 2) (which we will call "Fish Diving"), orthere are four consecutive depth readings which are identical (which we will call "Constant Depth").All other readings will be considered random noise or debris, which we will call "No Fish."Create a Python program called "fishfinder_firstname_lastname" that takes 1 input of string of 4 numbers separated with comma. Your program must display "Fish Rising", "Fish Diving.", "Fish At Constant Depth" or "No Fish".Example:30,10,20,20 Must display No…arrow_forward
- INTRODUCTION: Heat conduction from a cylindrical solid wall of a pipe can be determined by the follow T1-T2 q = 2nLk R2 In R. where: q is the computed heat conduction in Watts. k is the thermal conductivity of the pipe material in Watts/°C/m. L is the length of the pipe in cm. Ri is the inner radius of the pipe in cm. R2 is the outer radius of the pipe in cm. Ti is the internal temperature in °C. T2 is the external temperature in °C. ASSIGNMENT: Write a C program that will allow the user to enter the inner and outer radii of the pipe, the the internal and external temperatures. Once the user enters the input values, the programarrow_forwardThere are two isotopes of an unknown element, X-19 and X-21. The abundance of X-19 is 14.29%. A weighted average uses the percentages of each isotope to scale their contribution to the total mass. Each isotope's contribution is the percentage (in decimal form) multiplied by the mass of the isotope. What is the contribution (in amu) to the weighted average from the X-19 isotope, which has a mass of 19.00 amu?arrow_forwardNumerical Analysis--- --- Rounding will be done after each iteration.arrow_forward
- vvvHarry has a big wall clock, that got hit while he was playing. Now, the minute hand doesn't rotate by the angle 2π/3600 each second, but now it moves according to different angle x. You can assume that coordinates of the centre of the clock are (0, 0) and the length of the minute hand is l. One endpoint of the minute hand is always located at the clock centre; the other endpoint is initially located at the point (0, l). One second later, Harry observes that this endpoint is at distance d above the x-axis, i.e., the y-coordinate of this endpoint is equal to d. Harry is curious about where the minute hand will be (specifically, its y-coordinate) after t seconds. Because t can be very large, Harry can't wait for that moment. Please help him to write a python code that prints a single line containing the output.Input: 4 2 2Output4Harry has a big wall clock, that got hit while he was playing. Now, the minute hand doesn't rotate by the angle 2π/3600 each second, but now it moves according…arrow_forwardQ. Given a 2d grid map of '1's (land) and '0's (water),count the number of islands.An island is surrounded by water and is formed byconnecting adjacent lands horizontally or vertically.You may assume all four edges of the grid are all surrounded by water. Example 1: 11110110101100000000Answer: 1 Example 2: 11000110000010000011Answer: 3""" def num_islands(grid): count = 0 for i in range(len(grid)): for j, col in enumerate(grid[i]): if col == 1: dfs(grid, i, j) count += 1 Please code it. .arrow_forwardPlot (as a function of angular frequency), the magnitude and the phase of the impedance resulting from a resistor (1.2 kOhm) and inductor (1.5 mH) in parallel. Use a logarithmic axis for the frequency, and for the magnitude. Use the range [10, 10**10] rad/s. The impedance of an inductance L is ???Ljω. Label axes. In python and can use cmath if neededarrow_forward
- Although the plot function is designed primarily for plotting standard xy graphs, it can be adapted for other kinds of plotting as well. b. Make a plot of the curve, which is defined parametrically by the equations x = 2cosθ + cos2θ, y = 2sinθ - sin2θ, where 0 < θ < 2π. Take a set of values of θ between zero and 2π and calculate x and y for each from the equations above, then plot y as a function of x. b. Taking this approach a step further, one can make a polar plot r = f(θ) for some function f by calculating r for a range of values of θ and then converting r and θ to Cartesian coordinates using the standard equations x = r cosθ, y = r sinθ. Use this method to make a plot of the function r = ecosθ – 2 cos(4θ) + sin5 (θ/12) in the range 0 <= θ <= 24π. use python code to answer the highlight onearrow_forwardWrite a triangle (x0, y0, x1, y1, x2, y2) function to draw the triangle with vertices (x0, y0), (x1, y1), and (x2, y2). Use your function to draw some triangles. www..arrow_forwardThe distance d between a point p(x, y), where x and y are the coordinates of p, and the center of a circle (a, b), where a and b are the coordinates of the center, is given by the formula: (a, b). r d = (x – a)² + (y – b)² r The point p(x, y) is considered inside the circle if d r. (x, y)' (x', y') Write a Java class called CirclePointthat: a. Reads from the user 2 integer values x and y represent the coordinates of the point p, b. Reads from the user 2 integer values a and b represent the coordinates of the center of the circle, c. Reads from the user a real value r represents the radius of the circle, d. Calculates and prints the distance d (rounded to 2 decimal places) between the point p and the center of the circle, and e. Checks and prints whether the point is inside, on or outside the circle. NOTE: if the radius value is negative, an error message should be shown. Sample Run 1: ==================== Enter the coordinates of the point: 5 7 Enter the coordinates of the center of…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