Question: please follow google styleguide Problem 3 Homework First! Write a program which asks the user: Is your homework done? What is the temperature outside? Use

please follow google styleguide please follow google styleguide Problem 3 Homework First! Write a program which

Problem 3 Homework First! Write a program which asks the user: Is your homework done? What is the temperature outside? Use conditional statements to print out a response based on the table below: Homework Homework is not done is done 70+ degrees Get to work Go play outside outside Under 70 Get to work Read a book degrees outside Input validation is required: Acceptable affirmative answers are "yes", "Yes" Acceptable negative answers are "no". "No" Acceptable temperature range is -100 to 120 inclusive Any other answers will cause the question to be repeated until an acceptable answer is given. Hint: Use a Boolean flag and a while loop for each question Grading: 50% correct response in every case, 40% input validation, 10% styleGuide Examples C:\java>java HomeworkFirst Is your homework done? yes what is the temperature? 999 temperature must be from - 100 to 120 inclusive. what is the temperature? 75 Go play outside C:\Java>java HomeworkFirst Is your homework done? of course it is Acceptable answers are yes, Yes, no, No. Is your homework done? yes what is the temperature 50 Read a book C:\java>java HomeworkFirst Is your homework done? no What is the temperature? 80 Get to work

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!