Answer:
import java.util.*;
public class Main {
public static void main(String[] args) {
double milesPerGallon = 0;
int totalMiles = 0;
int totalGallons = 0;
double totalMPG = 0;
Scanner input = new Scanner(System.in);
while(true){
System.out.print("Enter the miles driven: ");
int miles = input.nextInt();
if(miles <= 0)
break;
else{
System.out.print("Enter the gallons used: ");
int gallons = input.nextInt();
totalMiles += miles;
totalGallons += gallons;
milesPerGallon = (double) miles/gallons;
totalMPG = (double) totalMiles / totalGallons;
System.out.printf("Miles per gallon for this trip is: %.1f\n", milesPerGallon);
System.out.printf("Total miles per gallon is: %.1f\n", totalMPG);
}
}
}
}
Explanation:
Initialize the variables
Create a while loop that iterates until the specified condition is met inside the loop
Inside the loop, ask the user to enter the miles. If the miles is less than or equal to 0, stop the loop. Otherwise, for each trip do the following: Ask the user to enter the gallons. Add the miles and gallons to totalMiles and totalGallons respectively. Calculate the milesPerGallon (divide miles by gallons). Calculate the totalMPG (divide totalMiles by totalGallons). Print the miles per gallon and total miles per gallon.
Answer:
the flow is turbulent
Explanation:
The Reynolds number is given by
Re=ρVD/μ
where
V=fluid speed=0.48ft/s=0.146m/s
D=diameter=2.067in=0.0525m
ρ=density=0.805g/cm^3=805Kg/m^3
μ=0.43Cp=4.3x10^-4Pas
Re=(805)(0.146)(0.0525)/4.3x10^-4=14349.59
Re>2100 the flow is turbulent
Note: if you do not want to use a calculator you can use the graphs to calculate the Reynolds number according to their properties
Answer:
The answer is as given in the explanation.
Explanation:
The 1st thing to notice is the assumptions required. Thus as the diameter of the cylinder and the wind tunnel are given such that the difference is of the orders of the magnitude thus the assumptions as given below are validated.
- Flow is entirely laminar, there's no boundary layer release.
- Flow is streamlined, ie, it follows the geometrical path imposed by the curvature.
By D'alembert's paradox, "The net pressure drag exerted on a circular cylinder that moves in an inviscid fluid of large extent is identically zero".Just in the surface of the cylinder, the velocity profile can be given in the next equation:

And the pressure P on the surface of cylinder is given by Bernoulli's equation along the streamline through that point:

where P_∞ is Pressure at stagnation point, U is the velocity given, ρ is the density of the fluid (in this case air) and θ is the angle measured from the center of cylinder to the adjacent point where your pressure point will be determine.