Question: What is wrong with the following program? public class Temperature { public static void main (String [] args) { 3 double tempf = 98.6; %3D
What is wrong with the following program?
![public class Temperature { public static void main (String [] args) { 3 double tempf = 98.6; %3D double tempc = 0.0; ftoc (tempf, tempc); 6. System.out.println (](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1606/7/3/5/3395fc4d5eb5744d1606735252202.jpg)
public class Temperature { public static void main (String [] args) { 3 double tempf = 98.6; %3D double tempc = 0.0; ftoc (tempf, tempc); 6. System.out.println ("Body temp in C is: + tempc); 8 // converts Fahrenheit temperatures to Celsius 10 public static void ftoc (double tempf, double tempc) { 11 tempc (tempf - 32) * 5 / 9; 12 13 2.
Step by Step Solution
3.46 Rating (175 Votes )
There are 3 Steps involved in it
The Temperature program changes th... View full answer
Get step-by-step solutions from verified subject matter experts
