Build a table of reynolds numbers at flow velocities

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

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100) given the following formula:

Re = \frac{\rho vl}{\mu }

where

Re is the Reynolds number that is nondimensional (no units)

\rho is the density of air in slug/ft3

v is the velocity of air in ft/sec

l is the characteristic length in ft

\mu is the viscosity of air in slug/ft?sec

Additional data

Density \rho of air = 2.33 × 10-3 slug/ft3

Viscosity \mu of air = 3.8 × 10-7slug/ft?sec

Velocity to vary from 100 to 1000 at increments of 100

Sample input and output (user input in BOLD):

Input the diameter of cylinder as length in ft:

0.025

Index            velocity           Reynolds number

1.                100.00                15328.95

2.                200.00                 30657.90

3.

.

.

.

10.               1000.00              153289.48

(You need to input a length "l" and then it spits out a table of calculated Reynolds numbers)

 

 

Reference no: EM13161733

Questions Cloud

Write method called median that accepts an array of integer : Write a method called median that accepts an array of integers as its parameter and returns the median of the numbers in the array.
If interest is compounded annually : If interest is compounded annually, it grows as follows. Suppose P0 is the initial amount and INT is the interest rate per year. If P1 and P2 represent the balance at the end of the first and second year
Demonstrate the construction and output of an array : In fluid mechanics, the Reynolds number (Re) is a dimensionless quantity that is used to help predict similar flow patterns in different fluid flow situations. For example, Reynolds numbers can be computed for different velocities of fluid flow over ..
Ask the user how many times you want to run : c the algorithm. 2. Then choose a word at random from the array of Strings as the target (Use the integer random number generator)
Build a table of reynolds numbers at flow velocities : Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)
In psuedocode, design an application : In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values
Least number of comparisons needed : What is the least number of comparisons needed to sort an array of 6 numbers, in the worst case, using any sorting algorithm that sorts with binary comparisons? Explain
20 integers saved in a file called "data.txt" : There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10
All the new strings generated : Explain why, if on some round, all the new strings generated for any syntactic category are longer than s, and s has not already been generated for L(), then s cannot ever be put in L(). Hint: Use Exercise 11.3.5.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement database having array of pointers

One way to implement this database is to have an array of pointers pointing to Employee objects. You will obviously require a function named Calculate_salary() which will be different for each employee class. Write code in c++

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Write a pseudocode statement

Assume that a program has two string variables named str1 and str2. Write a pseudocode statement that assigns an all uppercase version of str1 to the str2 variable. is str.add(str1,str2) part of it?

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Array of integers declared-initialized to number of tickets

Array of integers named parkingTickets has been declared and initialized to number of parking tickets given out by city police each day as beginning of current year.

  Program to enter number of values to be processed

Write c++ statements to permit the user to enter n, the number of values to be processed; then assign the anonymous array of n double values, storing its address in doublPtr.

  Const int num_years

How do you get this program to get both player input and then display results(As described on bottom) #include  const int NUM_YEARS=15;//The number of years const int NAME_SIZE=32;//The max size of the player name string

  File system with login authentication

Implement a simple file system with login authentication and access control - Construct a hash/salt/shadow based user/password creation system.

  Write program to input series of hourly temperatures

Create and write a c++ program which inputs series of 24 hourly temperatures from file, and outputs bar chart (using stars) of temperatures for the day.

  Consists of an employee''s last name

Each input line consists of an employee's last name, first name, current base salary, total sales and percent commission. For example, in the first input line, the last name of the employee is Thomas, the first name is Andrew, the current base salary..

  You will create a linked list module

You will create a linked list module that exactly meets the specifications given in the supplied header (.h) file. The playlist program must accept a filename on the command line (argv).

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