Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter length of the array:");
int len = in.nextInt();
double [] temps = new double[len];
double avgTem;
int k =0;
double total = 0;
for( k=0; k<temps.length; k++){
System.out.println("Enter values for the array");
temps[k]=in.nextDouble();
}
System.out.println("The Arrays contains the following values");
System.out.println(Arrays.toString(temps));
// Computing the average of the values
for(k=0; k<temps.length; k++){
total = total+temps[k];
}
avgTem = total/(temps.length);
System.out.println("The average Temperature is: "+avgTem);
}
}
Explanation:
- Using Java programming language
- Import the Scanner class to receive user input
- Prompt User for the length of the Array, receive and store in a variable len;
- Declare a new double array of size len double [] temps = new double[len];
- Using a for loop, continually prompt user to enter values into the array
- Display the values of the array using Java's Arrays.toString method
- Use another for loop to add up all the elements in the arraay and store in the variable called total
- Outside the second for loop calculate the average avgTem = total/(temps.length);
- Display the average temp.
Answer:
Regulus is the most luminous. Regulus is the least luminous
Explanation:
- Transcribed image text: Of the three stars you've observed (HIP 87937, HIP 108870, and Tau Cet), which one is more luminous?
- View Available Hint(s) Tau Cet O HIP 87937 O HIP 108870
- They have the same luminosity.
To learn more about it, refer
to https://brainly.in/question/413163
#SPJ4
Before starting an inboard gasoline engine, you should
remove the engine cover completely to let the engine air out. Next is to change
the fuel filter or the water separator. Marine fuel filters and water
separators help draw water from the boat fuel, therefore protecting the motor
from the water. If water were to get in, it could cause serious problems.
You should also consider changing the engine oil. This is
especially so if the motor boat has been sitting around for a while. The fourth
step is to change the oil filter. It is recommended that the oil filter is
changed every 100 hours or every season. Other steps include;
Recharge the battery.
Refuel your boat.
Check the cooling system.
Answer:
that is classified information
Explanation:
that is a weird question