(Physics) Buoyancy is the upward force a liquid exerts on a submerged object, as shown in Figure 6.9. The buoyancy force is given by this formula:
a. Using this formula, write a function named buoyantForce(double ro, double vol, int units) that accepts a fluid density, the volume of an object placed in the fluid, and the units to be
b. Include the function written for Exercise 6a in a working C++
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
C++ for Engineers and Scientists
- (Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one used for a balcony (see Figure 5.15), when a load is distributed evenly along the beam is given by this formula: d=wx224EI(x2+6l24lx) d is the deflection at location x (ft). xisthedistancefromthesecuredend( ft).wistheweightplacedattheendofthebeam( lbs/ft).listhebeamlength( ft). Eisthemodulesofelasticity( lbs/f t 2 ).Iisthesecondmomentofinertia( f t 4 ). For the beam shown in Figure 5.15, the second moment of inertia is determined as follows: l=bh312 b is the beam’s base. h is the beam’s height. Using these formulas, write, compile, and run a C++ program that determines and displays a table of the deflection for a cantilevered pine beam at half-foot increments along its length, using the following data: w=200lbs/ftl=3ftE=187.2106lb/ft2b=.2fth=.3ftarrow_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. 5.) Write `AB + C` as a circuit.arrow_forwardP5. ( Boolean Algebra Circuit. (1) Transform the following Boolean equation in SOP form to POS form: Y = F(A, B, C, D) = ĀB + CD (2) Expand the following Boolean equation into a sum of minterms, where each minterm should have the three input variables in their original or complement forms. Y = F(A, B, C) = AC + AB (3) Simplify the following Boolean equations using Boolean theorems. For each step in the minimization process, show which theorem or axiom or method or definition is used to get there. Y = ABC + B + AC + B (4) Transform the following Boolean equation to an equation that only has 2-input NAND gate(s) and/or NOT gate(s). You are not required to draw a schematic. Y = A + B + Carrow_forward
- subject : boolean algebraarrow_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. 7.) Write `!(AB + CD)` as a circuit.arrow_forward8.3arrow_forward
- Apply DeMorgan's Theorem to each of the following expressions so that the NOT bars do not span more than a single variablearrow_forwardEach end of a cord with u = 4.80 g/m is attached to two opposite walls. The distance between the walls is the length of the cord. A block of mass m hangs from the middle of the cord. Neglect the mass of the cord in calculating the tension. M. 3L 4 2 m (a) Find an expression for the transverse wave speed in the cord as a function of the mass of the block. (Use the following as necessary: m. Do not include units in your answer. Assume that m is measured in kg and v is measured in m/s.) v = (b) What is the mass of the block (in kg) if the wave speed is 66.0 m/s? kg Need Help? Read Itarrow_forward(Automotive) a. An automobile engine’s performance can be determined by monitoring its rotations per minute (rpm). Determine the conversion factors that can be used to convert rpm to frequency in hertz (Hz), given that 1rotation=1cycle,1minute=60seconds,and1Hz=1cycle/sec. b. Using the conversion factors you determined in Exercise 7a, convert 2000 rpm into hertz.arrow_forward
- Q2) Apply DeMorgan's theorems to the expressions:- A + BC + D(E + F)arrow_forward24 ) There are ABCDE Variables. (5 Variables) In the following cases, logic expression returns 1. A B C D E 1 1 1 1 1 1 1 1 1 1 1 1 1 *Reduce the function ( by using third order MEV method and K-map) And write the logical Expression. And Draw the Circuit.arrow_forwardSTEPS: 1. Solve the problem using the rules for simplifying boolean expressions. 2. Solve the problem using kmap. 3. Make sure answers solved in 1 and 2 are the same.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr