Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions