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.
Explanation:
Superheater has two types of parts which are:
- The primary super-heater
- The secondary super-heater
Primary super-heater is first heater which is passed by the steam after steam comes out of steam drum.
After steam is heated on super primary heater, then the steam is passed on secondary super-heater so to be heated again. Thus, on secondary super-heater, the steam formed is hottest steam among others.
Steam from secondary super-heater which becomes the superheated steam, flow to rotate the High-Pressure Turbine.
Answer:
35psig
Explanation:
Pressure is a force that acts on a surface area. The psig measure the pressure pounds per square inch gauge. It measure the difference in pressure between supply tank and outside air. This pressure is relative to atmospheric pressure. When charging an R-410A system, the vapor pressure should be at least 35 psig before switching to liquid charging.
Answer:
1.312 in
Explanation:
Data provided in the question:
Weight of the compressor, W = 227 pound
Number of legs = 4
Maximum pressure = 42 psi
Now,
Let F be the force taken by the legs
Therefore,
W = 4F
or
227 pound = 4F
or
F = 56.75 pounds
Also,
Force = Pressure × Area
or
56.75 pounds = 42 psi × πr² [ r is the diameter of one leg]
or
r² = 0.4301
or
r = 0.656
therefore,
diameter = 2r = 2 × 0.656
= 1.312 in
Answer:
labelled diagram for combination wrench