(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
- P5. ( 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---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_forwardQ2) Apply DeMorgan's theorems to the expressions:- 1) (AB'.(A+ C))+ A'B.(A + B+ C)arrow_forward
- (Computer Graphics)Using the Cohen-Sutherland line clipping algorithm, clip the line PQ with coordinates P (-5, 3) and Q (15, 9) against a clipping rectangular window with coordinates (0, 0) and (10, 10) as lower left and upper right corner respectively. Also, find intersection points if any.arrow_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
- Calculate the value of g and h in the following equation.arrow_forwardIn matlab code Find the velocity of mars, earth, venus. In the descent phase of an extraterrestrial space mission, a spacecraft free falls through the planet's atmosphere. As it falls, it will reach a constant or terminal velocity when the air resistance force balances the gravitational attraction force. The terminal velocity is given by V₁ = where m is the spacecraft's mass [m], g is the acceleration due to gravity on the planet, p is the atmosphere's density [kg/m³], Cp is the spacecraft's drag coefficient, and A is the spacecraft's cross-sectional area [m²]. a) Write a function named terminalVelocity which calculates the terminal velocity an object. The function should . 2mg pCDA input m, g, p, CD, and A output the terminal velocity b) Write a program named q03.m which calculates the terminal velocity of a spacecraft at 10 km above the surface of various planets. The spacecraft's properties are m = 240 [kg], A= 15 [m²], and Cp = 0.5. The program should use the gravity and terminal…arrow_forward2- The short circuit is defined as resistance, then the current is . .Amper.arrow_forward
- Q2) Apply DeMorgan's theorems to the expressions:- A + BC + D(E + F)arrow_forward2. RADIOACTIVE DECAY, REVISITED This is a modified version of chapter 1 problem 4 in your textbook. Consider the radioactive decay of nuclei A into nuclei B, which can then also decay. The numbers of each species as a function of time are given by N₁ (t) and NB (t), and the decay of each species is governed by¹: dNA dt == NA dNB NA NB = dt ΤΑ TB where T and T are the decay time constants for each type of nucleus.arrow_forward(python) There are 100 light bulbs lined up in a row in a long room. Each bulb has its own switch and is currently switched off. There are 100 people lined up outside the entry door. Each bulb is numbered consecutively from 1 to 100 and so is each person.Person No. 1 enters the room, switches on every bulb, and exits. Person No. 2 enters and flips the switch on every second bulb (turning off bulbs 2, 4, 6...). Person No. 3 enters and flips the switch on every third bulb (changing the state on bulbs 3, 6, 9...). This continues until all 100 people have passed through the room.What is the final state of bulb No. 64? Output the state of bulb 64 and all of the bulbs that are turned on at the end (Bulb #).arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr