Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help with the error and add styleguide description C:>javac HomeworkFirst.java error: file not found: HomeworkFirst.java Usage: javac use --help for a list of possible

please help with the error and add styleguide description image text in transcribed
image text in transcribed
C:\>javac HomeworkFirst.java error: file not found: HomeworkFirst.java Usage: javac use --help for a list of possible options C:\>cd java C:\java>javac HomeworkFirst.java Homeworkirst.java:16: error: cannot find symbol int temp = t.nextInt(); A symbol: variablet location: class HomeworkFirst 1 error C:\java> mport java.util.*; public class HomeworkFirst public static void main(String[] args) { String[] aceValues - ("yes", "Yes","no","No"}://Initialize string values in an array List accList - Arrays. aslist (aceValuea); boolean valid = false; while (!valid): System.out.print("Is your homework done?"); // Prompt user for input Scanner in = new Scanner (System.in); String a = in.nextLine(); int temp - t.nextInt(): I 1 (accList.contains (a)) { //If entered value in the list, next statement is executed. System.out.print("What is the temperature?"); //Prompt user for temperature input. valid true; Scanner t = new Scanner(System.in); if(temp 120) { System.out.println("Temperature must be trom -200 to 120 inclusive"); } else if (temp > 70 46 (a.equals("yes") 11a.equals("Yes"))) { System.out.println("Go play outside "): 3 else if(temp > 70 46 (a.equals("no") lla.equals("No"> >> System.out.println("Get to work "): > else if(temp > System.out.println("Get to work "); else //it input in other than yes, Yes, no, no Syatem.out.println("Acceptable answers are "+acciat.toString())

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions