Question
Hello, I'm wondering how could I translate this piece of java code in mips assembly language. If someone can help please! Code is as follows:
Hello, I'm wondering how could I translate this piece of java code in mips assembly language.
If someone can help please!
Code is as follows:
import java.util.*;
public class WindChill {
public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter the temperature less than 50 F = "); float temp = input.nextFloat(); System.out.println("temperature = " + temp); if (temp <=50) { System.out.println("windSpeed" + " " + "windChill"); for (int s=3; s<=60; s++) { int windchill = (int) (35.74 + (0.6215 * temp) - (35.75 * s) + (0.4275 * temp * s)); System.out.println(" " + s + " " + windchill); } } else System.out.println("Enter the temperature under 50 F!"); }
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started