Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the process of MBO

Answered: 1 week ago

Question

=+from: a) a MNEs perspective? and b) the HRM managers perspective?

Answered: 1 week ago