(General math) The perimeter, approximate surface area, and approximate volume of an in-ground pool are given by the following formulas:
Using these formulas as a basis, write a C++
Trending nowThis is a popular solution!
Chapter 3 Solutions
C++ for Engineers and Scientists
- 09.......arrow_forwardEXAMPLE: The sum of any two even integers is even. Answer: Proof. (direct) Suppose x and y are even integers. By definition of even, let x = 2k and y = 2j for some integers j and k. Then, x+y=2k+2j = 2(k + j) Note that k+j is an integer because it is the sum of integers. Therefore, by definition of even, x + y is even.arrow_forward2. Compute the kinetic energy, in joules, of a 3 g rifle bullet travelling at 300 m/s.arrow_forward
- 5arrow_forwardQ2/ The pipe in Fig. is driven by pressurized air in the tank. What is the friction factor (f) when the water flow rate through pipe is ( 85 m/hr ) and the pressure at point 1 is (2500 kPa). (25Marks) 30m smooth pipe d = 70mm open jet P1 1 90m 15m 60marrow_forwardEXAMPLE: The sum of any two even integers is even. Answer: Proof. (direct) Suppose x and y are even integers. By definition of even, let x = 2k and y = 2j for some integers j and k. Then, x+y=2k+2j = 2(k + j) Note that k+j is an integer because it is the sum of integers. Therefore, by definition of even, x + y is even.arrow_forward
- V:38) Given the following equations f(x) = x4 - x - 10 = 0. Determine the initial approximations for finding the smallest positive roots. Hence , use the secant method to find the root correct to three decimal places.arrow_forwardQuestion 1 : (Solve quadratic equations) The two roots of a quadratic equation ax? + bx + c = 0 can be obtained using the following formula : -b + V² – 4ac -b – Vb – 4ac and n = 2a 2a b² - 4ac is called the discriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zero, the equation has one root. If it is negative, the equation has no real roots. Write a program Equation.java for solving a quadratic equation that prompts the user to enter values for a, b, and c and displays the result based on the discriminant. If the discriminant is positive, display two roots. If the discriminant is 0, display one root. Otherwise, display "The equation has no real roots". Note that you can use Math.pow(x, 0.5) to compute the discriminant. Here are some sample runs. Enter a, b, c: 1.0 3 1 -Enter The equation has two roots -0.381966 and -2.61803 Enter a, b, c: 1 2.0 1 -Enter The equation has one root -1 Enter a, b, c: 1 2 3 -Enter The equation has no real…arrow_forward(B) Find the result of the following equation: A = 3² + 3+3² √2arrow_forward
- 2) Use Simpson and calculates the trape zoidal sules following integral.. to Also write Code for both these methodarrow_forward2. A force is acting on a 1.0 kg block of wood that is falling down as it speeds up at 9.8 m/s?. If the original acceleration of the wooden block is being countered by an unknown force that causes its downward acceleration to decrease to 4.9 m/s², what's the magnitude of the unknown force?arrow_forwardI A bob attached to a cord is moved to the right where its vertical position is 1.05 cm above the equilibrium position and is then given an initial speed of 0.6 m/s. What are the values of the maximum speed and maximum height reached by the bob? (Take g = 9.8 m/s') (a) hmax (b)hmax =D1.87 cm; tnax 3.44 m/s (c) hmax (d) hmax 2.89 cm; Vnax = 0.75 m/s 1.87 cm; max 0.75 m/s 2.89 cm; 1,ax 3.44 m/s or frequency to 2/:arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr