Write and test a c function named flow that returns both

Assignment Help C/C++ Programming
Reference no: EM13639251

Fluid following in a pipe flows in a smooth pattern, knows as laminar flow, or a turbulent pattern, know as turbulent flow. The velocity, V, that produces each type of flow in the pipe can be determined by using these formulas:
Vlaminar = (2100µ)/(pd)
Vturbulent =(4000µ)/(pd)
Vlaminar is the velocity of the fluid, in ft/sec, that produces a definite laminar flow.
Vturbulent is the velocity of the fluid, in ft/sec, that produces a definite turbulent flow.
µ is the fluid's viscosity in lbf-sec/ft2.
P is the fluid's density in slug/ft3.
d is the pipe's inside diameter in feet.

Using these formulas, write and test a C++ function named flow () that returns both the laminar flow velocity, Vlaminar, and turbulent flow velocity, Vturbulent, using reference parameters. The function should calculate these velocities for water, which has a viscosity, µ, of 1.9 × 105 lbf-sec/ft2 and a density, P, of 1.94 slug/ft3. The pipe diameter should be passed by value to the flow () function.

Reference no: EM13639251

Questions Cloud

A retailer sold 50 vacuum cleaners at 90 and 35 vacuum : a retailer sold 50 vacuum cleaners at 90 and 35 vacuum cleaners at 140. find the weighted mean price of a vacuum
Determine the horizontal distance travelled by the bomb : an airplane is descending at an angle of 20 with respect to horizontal with a speed of 750 kmh when it drops a bomb at
The car is moving with a constant velocity at a time t 23 : a train has a length of 109 m and starts from rest with a constant acceleration at time t 0 s. at this instant a car
The electron affinity of nitrogen is a 7 while those for : the electron affinity of nitrogen is a 7 while those for carbon and oxygen are 122 and 141 kjmole respectively. why is
Write and test a c function named flow that returns both : fluid following in a pipe flows in a smooth pattern knows as laminar flow or a turbulent pattern know as turbulent
You are on the starship enterprise and the person in : you are on the starship enterprise and the person in charged of preparing the weapons that are being used in a battle
Along the paths of the ballon and pellet there are two : a hot air balloon is ascending straight up at a constant speed of 7.0 ms. when the ballon is 12.0 m above the ground a
Determine heat transfer coeffficent for water inside tube : water enters a smooth-thin-walled tube of 1 inch in internal diameter at 50f and leaves at 150f. heat is supplied to
A basketball is thrown horizontally with an initial speed : a basketball is thrown horizontally with an initial speed of 4.90 . a straight line drawn from the release point to the

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Function called timesten that returns back

Write a function called timesTen that returns back to the caller the value passed into the function multiplied by 10. If the value passed into the function is negative, the function also returns the string

  Value of x after the following code is executed

What will be the value of x after the following code is executed?int x = 20, y = 30;while (y

  Why are timestamps used in the kerberos protocol

Assume that Alice shares a secret s with her company's server computer. When Alice is on a trip, she tries to store an important message in the CEO's account directory.

  Write a program that reads in an integer

Write a program that prompts the user for a measurement in meters, and then converts it in to miles, feet, and inches.

  In competitive tournament

In competitive tournaments, it is common for all the players or teams to play in a series of matches in order to determine a single winner of the entire tournament. However, a number of different tournament formats exist. Here, we will concern our..

  Problems on oops

Problems on OOPS

  Implement a function to recursively

Implement a function to recursively determine if a word is a palindrome. A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.

  Write c function to sort one dimensional integer array

Consider the values sorted in the array. Sort it in ascending order using Bubble sort technique showing all iterations: write C function to sort one dimensional integer array in ascending order.

  C++ programs that compute the agreement for two vectors

In this assignment, you write C++ programs that compute the agreement for two given vectors (see Calculation 1 above). In these programs, in vectors A and B only nonzero elements (elements that are 1) are stored. We give you a function that gen..

  Design and implement a c++ program for find friends

MCS2514Pgm1- Design and implement a C++ program that will help find friends according to a defined method. In particular, your program will find and display the ten people in database who answered a set of survey questions closest to what the user..

  Design and implement a library system

Design and implement a library system that does the following: ? Takes details of a student/library users: first name, last name, other names, user ID number, and nationality.

  Presented a number of recurrence relations

For this problem set, you will be presented a number of recurrence relations and asked to state their actual time complexity, showing your work in the process.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd