(Physics) a. The weight of an object on Earth is a measurement of the downward force onth e object caused by Earth’s gravity. The formula for this force is determined by using Newton’s Second Law:
Given this information, design, write, compile, and run a C++
b. After verifying that your program is working correctly, use it to determine the weight, on Earth, of a person having a mass of 3.2 lbm.
Trending nowThis is a popular solution!
Chapter 2 Solutions
C++ for Engineers and Scientists
- (ii) Find whether a given year is a leap year. Hint. A year is said to be a leap year if it is either divisible by 4 but not by 100 or divisible by 400 .arrow_forward((AB׳C)׳+B)׳׳.(A+C׳)׳.B Simplify logic equationsarrow_forward1. A 500-liter tank initially contains 10 g of salt dissolved in 200 liters of water. Starting at to = 0, water that contains 1/4 g of salt per liter is poured into the tank at the rate of 4 liters/min and the mixture is drained from the tank at the rate of 2 liters/min. Determine the quantity Q(t) of salt in the tank at time t = 0 until the time when the tank overflows. Code a C program which determined this quantity Q(t) by using RK4 method with h = 1. Note: May use the concept of function prototypes, function definition, function call, recursion etc. in a program. 2. A team of surveyors conducted depth-sounding at equidistant locations across the river to measure the area of a river cross-section. Determine the area of the cross-section by coding a C program of the Composite Simpson Rule, taking into consideration the river's 6.0 m width and the fact that it is equally divided into 7 stations. Station Depth, m 0 1 -1.23 24555 3 6 7 -2.08 -2.57 -1.86 -0.65 -0.24 Note: Determine the…arrow_forward
- 7. For each of the following equations of lines in x-y coordinates, find the values of ‘p’ and ‘θ’ in the polar system given as: “p=xcos θ + ysin θ”: a) x=4 b) y=10 c) x=yarrow_forward(Homework's) Q1/ Two shafts which are 300 mm apart are to be connected by spur gearing. The driving shaft rotates at 1400 rpm and the driven is to be rotate at an approximate speed of 400 rpm If the moduke pitch of the gears is 8 mm, determine the number of teeth on the gears and the actual speed of the driven shaft. Assume that the gears available are of teeth rising in steps of 3 and the smallest gear dose not has teeth kess than 15. Q2/ Find the pitch diameter, diametral pitch and module of a toothed gear having 36 teeth and circular pitch of 13 mm. Q3/ Two wheels of 18 and 45 teeth respective ly are geared together. Determine the pitch circke radius of the two wheeks, if the circular pitch is 50 cm. Q4/ In a compound train of gears spur gear 1, with 40 teeth and rotating at 15 rpm, drives a pinion 6 with 15 teeth at 300 rpm across two intermediate spindles. The first intermediate has gears 2 and 3 and the second carries gears 4 and 5. Gear 2 gearing with gear 1 while 3 gearing with…arrow_forwardA rope of negligible mass is wrapped around a 225-kg solid cylinder of radius 0.400 m. The cylinder is suspended several meters off the ground with its axis oriented horizontally, and turns on that axis without friction. (a) If a 75.0-kg man takes hold of the free end of the rope and falls under the force of gravity, what is his acceleration? m/s² (b) What is the angular acceleration of the cylinder? rad/s² (c) If the mass of the rope were not neglected, what would happen to the angular acceleration of the cylinder as the man falls?arrow_forward
- (For a and b) Equation: a. f(x) = [()*+10]. 12 (3)], for x = 21,2,.. 2 b. x Use the inverse transform method to generate variates from the given equation. With the given equation, derive mathematically and numerically the mean and variance. PROVIDE CODE COMMENTS OR FURTHER EXPLANATION IF NECESSARY.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---BOOLEAN FORMULAS TO CIRCUITS--- The following question requires you to draw circuit diagrams. Draw these out, for each of these problems, translate the given formula directly, without any simplifcation. 6.) Write `A + (B + CD)` as a circuit.arrow_forward
- please type instead of handwriting only answer G AND H IN DEGREE FORM An electron is in a state with L = 1 (a) What multiple of ℏ gives the magnitude of the angular momentum? (b) What multiple of μB gives the magnitude of the orbital magnetic dipole moment? (c) What is the largest positive value of, (d) what multiple of ℏ gives the corresponding value of Lz, and (e) what multiple of μB gives the corresponding value of μorb, z? (f) What is the value of the semiclassical angle θ between the directions of the angular momentum vector and the z-axis? What is the value of angle θ for (g) the second-largest possible value of and (h) the smallest (that is, most negative) possible value of?arrow_forward(c) Solve the differential equation 2r(s? + 1)dr + (r* + 1)ds 0arrow_forwardProblem 3. Write a program to solve the system of equations using Gaussian elim- ination. Conclude the number of solution, the exact solution in case of unique solution, the number of free variable in case of infinitely many solutions.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr