Question: QUESTION 3 - Syntax Errors ( 2 0 Marks ) Refer to the following programs. 3 . 1 The program below contains syntax errors. Correct
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
the below program:
Marks
Import javax.swing.JOptionPane
public Class CheckTemp
public static void main string args
int temp
string str JOptionPane.showInputdialogEnter temperature value:
temp Integer.ParseIntstr
if temp and temp
System.out.PrintlnThe weather is perfect for the beach :)
else
System.out.PrintlnThe weather is perfect to stay indoors"
The program below contains errors. Correct all errors and provide the complete correct code for the
below program:
Marks
Public class Q
public Static void Main String args
For count count count
System.out.printlnCount
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
