Question: Fundamentals of Compu.. QUESTION 3 - Syntax Errors ( 2 0 Marks ) Refer to the following programs. 3 . 1 The program below contains
Fundamentals of Compu..
QUESTION Syntax Errors
Marks
Refer to the following programs.
The program below contains syntax errors. Correct all errors and provide the complete correct code for
Marks
the below program:
Import javax.swing.J JoptionPane
public Class CheckTemp
public static void main strings args
int temp
string str JOptionPane.showInputdialogEnter temperature value: ;
temp Integer.Parselntstr;
if temp and temp
System.out.PrintlnThe weather is perfect for the beach ;
else
System.out.PrintlnThe weather is perfect to stay indoors";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
