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.
Solution :
The mass flow rate of the cooling water is determined from the energy balance equation. The enthalpies of the refrigerant at the initial and the final states were obtained from A-13 and A-12 for the given parameters.
Therefore by energy balance equation,



= 42 kg / min
Answer:
True
Explanation:
The best penetration is achieved with dcen current. Mild steel is expensive and requires the most amount of cleaning. Copper-coated steel welding rods are not used for gas tungsten arc welding because they will continue the weld or electrode.
Answer:
<h2>Steel</h2>
Explanation:
Steel is the metal that using in planes.
Aluminum and titanium also used in this aircraft industry.
Aluminum is ideal for aircraft manufacture because it's lightweight and strong.
<em>hope</em><em> </em><em>this</em><em> </em><em>helps</em><em>!</em><em>!</em>
<em>have</em><em> </em><em>a</em><em> </em><em>nice</em><em> </em><em>day</em><em>!</em>
<em>follow</em><em> </em><em>me</em><em> </em><em>=</em><em>=</em><em>></em><em> </em><em>Hi1315</em>
Answer:
Schematics
Explanation:
A schematic is a detailed structured diagram or drawing. It employs illustrations to help the viewer understand detailed information on the machine or object being described. Its main aim is not to help the observer know what the object looks like physically. It is rather aimed at helping the viewer know how the machine works. This is achieved by only including key and important details to the drawing.
It is most times used in the blueprint and user guides of machines and gadgets used in the home to help users know how these things work so that they can do little fixings should there be such needs.