Question: Can you please write a C++ program in codeblocks for this question? thank you! 326 Modularity Using Functions 7. (Physics) Buoyancy is the upward force

Can you please write a C++ program in codeblocks for this question? thank you!

Can you please write a C++ program in codeblocks for this question?

326 Modularity Using Functions 7. (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 fermula: B is the buoyancy force (lbf or N). p is the fluid density (slug/ft3 or kg/m3). g is the acceleration caused by gravity (32.2 ft/sec2 or 9.8 m/s2) V is the object's volume (ft or m3). 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 force exerted on the object. b. Include the function written for Exercise 6a in a working C++ program, and use your pro- gram to complete the following chart Fluid Object's Buoyancy Fluid Fluid Density Volume Force (N) Density Volume Force (Ibf) (kg/m3) (m3) 998 998 Object's Buoyancy (slug/ft3) (ft3) Water Water Oil (SAE 912 0.005 0.400 0.005 1.936 1.9368.000 1.77 0.125 Oil (SAE 912 Mercury 13600 0.005 0.125 8.000 0.125 0.400 1.77 30W) 26.3 Mercury 13.600 0.400 26.3 8.000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!