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: 15%
Explanation:
Frequency of obtaining = 63/420 = 0.15 = 15%
Answer:
wool, rubber, and plastic
Explanation:
Answer:
A) ΔL = 0.544 mm
B) Δd = -0.0168 mm
Explanation:
We are given;
Elastic modulus; E = 67.1 GPa = 67.1 × 10^(9) Pa
Force; F = 46400 N
Diameter; d = 17.8 mm = 17.8 × 10^(-3) m
Radius; r = d/2 = 17.8/2 = 8.9 mm = 8.9 × 10^(-3) m
Length; L = 196 mm = 0.196 m
Poisson ratio; ν = 0.34
A) We know that formula for elastic modulus is;
E = σ/ε
Where;
σ = F/A
ε = ΔL/L
Thus;
E = (FL/ΔL•A)
ΔL is change in length. Making it the subject of the formula, we have;
ΔL = FL/AE
Now, A = πr²
A = π × (8.9 × 10^(-3))²
ΔL = [(0.196 × 46400)/(π × (8.9 × 10^(-3))² × 67.1 × 10^(9)]
ΔL = 0.544 × 10^(-3) m
ΔL = 0.544 mm
B) formula for Poisson ratio is given as;
ν = -ε_x/ε_z
Where;
ε_x is transverse strain = Δd/d
ε_z is longitudinal strain = ΔL/L
Thus;
ν = -Δd•L/d•ΔL
Making Δd the subject, we have;
Δd = -νdΔL/L
Δd = -(0.34 × 17.8 × 10^(-3) × 0.544 × 10^(-3))/0.196
Δd = -0.0168 × 10^(-3) m = -0.0168 mm
Answer:
please mark my answer brainliest
Explanation:
D non phosphate products