Reference no: EM13161727
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:
where
Re is the Reynolds number that is nondimensional (no units)
is the density of air in slug/ft3
v is the velocity of air in ft/sec
l is the characteristic length in ft
is the viscosity of air in slug/ft?sec
Additional data
Density of air = 2.33 × 10-3 slug/ft3
Viscosity 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
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.
|
Brownian motion is a physical phenomenon
: Brownian motion is a physical phenomenon which can be observed, for instance, when a small particle is immersed in a liquid.
|
Write a program code to compute and build a table of reynold
: 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)
|
Method called printpowersof2 that accepts a maximum number
: Write a method called printPowersOf2 that accepts a maximum number as an argument and prints each power of 2 from 20 (1) up to that maximum power, inclusive. For example, consider the following calls: printPowersOf2(3); printPowersOf2(10)
|
Create a class named gamer that has a field for name
: Create a class named Gamer that has a field for name(string) and a field for points(int).
|
Federal government regulates labels
: The federal government regulates labels, warranties, and consumer products. Without government regulation, what abuses are likely to occur?
|
Determine the current flows
: given an electrical circuit which consists of resistor and voltage sources, determine the current flows (i1,i2,i3, and i4) use the following values for the voltage and resistor sources: V1=20 volts V2=12 volts V3=40 volts, R1= 18 ohms R2= 10 ohms R3=..
|