Question: Can you answer this in codeblocks and post answer please? 326 Modularity Using Functions ubmerged object, us shown in 7. (Physics) Buoyancy is the upward

Can you answer this in codeblocks and post answer please?
326 Modularity Using Functions ubmerged object, us shown in 7. (Physics) Buoyancy is the upward force a liquid everts on a subme The buoyancy foree is given by this formula: Figute 6 B is the buoyancy force (Ibf or N). is the fluid density (slug/ft3 or kg/m3) e is the acceleration caused by gravity (32.2 tsee V is the objeer's volume (ft or m3). or 9,8 m/s2) Gravity Buoyancy Figure 6.9 Buoyancy force 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 used (1 -U.S. Customary units, 2 - metric units), and returns the buoyancy for exerted on the object. b. Include the function written for Exercise oa in a working C++ program, and use your pro- gram to complete the following chart: Fluid Fluid Object's Buoyancy Fluidbct' Buoyancy Density Volume Force (N) Density Volume Force (Ib 998 998 912 0.005 i) (slug/ft3) (ft3 1.936 1.936 8.000 1.77 Im Water Water Oil (SAE 9 0.005 0.125 0.400 0.125 8.000 0.125 30W) OiI SAE 9120.400 Mercury 13600 0.005 1.77 30W) 26.3 26.3 Mercury | 13.600 |0.400 | 8.000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
