EGR 140: Computer Programming Homework #4: Assigned: Wednesday, 4 October 2017 D
ID: 3589496 • Letter: E
Question
Explanation / Answer
import java.io.*;
public class DemoEnhanced{
public static void main(String[] args){
double[] temps = {4,-6,7,23,-1,12,17,5};
for (double t :temps)
System.out.print(t + " ");
System.out.println();
for(int i = 0; i<temps.length; i++){
temps[i] = temps[i] * (9/5) + 32;
}
System.out.println("In Farenheit:");
for (double t :temps)
System.out.print(t);
System.out.println();
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.