(
r is the radius of the cylindrical rod in inches.
d is the length of the crank arm in inches.
P is the weight placed on the pedal in lbs.
S is the stress in lbs/in2.
Using this information, design, write, compile, and run a C++
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
C++ for Engineers and Scientists
- (Thermodynamics) The work, W, performed by a single piston in an engine can be determined by this formula: W=Fd F is the force provided by the piston in Newtons. d is the distance the piston moves in meters. a. Determine the units of W by calculating the units resulting from the right side of the formula. Check that your answer corresponds to the units for work listed in Table 1.1. b. Determine the work performed by a piston that provides a force of 1000 N over a distance of 15 centimeters.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_forwardQuestion The refractive index of Sodium Chloride is 1.54. Make a function by which user can Find the critical angle of diamond by taking Air as a rare medium (Refractive index of Air is 1). Note: (User Take different incident Angles as a Input)arrow_forward
- can you solve this on pythonarrow_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_forwardWhen a tension force of 900 N is applied to a steel wire, it is assumed that E = 210 GPa and that the diameter of the wire increases by 1.05 mm. Calculate the diameter of the wire.arrow_forward
- My v and d are incorrect, please write the equations correctly.arrow_forwardSuppose that a parachutist with linear drag (m=50 kg, c=12.5kg/s) jumps from an airplane flying at an altitude of a kilometer with a horizontal velocity of 220 m/s relative to the ground. a) Write a system of four differential equations for x,y,vx=dx/dt and vy=dy/dt. b) If theinitial horizontal position is defined as x=0, use Euler’s methods with t=0.4 s to compute the jumper’s position over the first 40 s. c) Develop plots of y versus t and y versus x. Use the plot to graphically estimate when and where the jumper would hit the ground if the chute failed to open.arrow_forwardA vertical tower stands on a horizontal plane and is surmounted by a vertical flag-staff of height 6 m. At a point on the plane, the angle of elevation of the bottom and top of the flag-staff are 30° and 45° respectively. Find the height of the tower. (Take √3=1.73)arrow_forward
- Question 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_forwardSuppose you are driving a car at 80 miles per hour. Again decelerating at 16 feet per second squared it will take you (..............) seconds to stop. During that time you will travel(............) feet. Assuming that it takes you 1 second to react to an emergency before you start braking, at the same initial speed, and the same constant deceleration, you will travel a total of (................) feet, before coming to a stop.arrow_forward5. The function y = a + b ·x² is a solution to one of these differential equations for all a and all b. Using dsolve, find the DE. a. y y" (y)² = 0 b. xy'-y (1 + x) = 0 c. xy" - y' = 0 d. xy" + y = 0arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr