0
Java Beginner
I need help with coding this in Java. Within a for loop, call a method named wcfactor that returns a double and has a double parameter and an integer parameter. The method will return a value for the wind chill factor, based on the following formula (T is the temperature, V is the wind velocity):
3 Réponses
+ 5
Show us your code .
0
class Program{
public static void main(String[] args) {
...
wcfactor(36.6, 8);
...
}
public static double wcfactor(double T, int V) {
double result = calculation formula;
return result;
}
}
0
in the variable result you have to insert the formula.to see it printed you have to print the method System.out.println (wcfactor (36.6,8));