Question: 5.14 Lab Warmup: Decisions (1) Add code to the template to read a test score into the score variable. Then evaluate the score entered, and

5.14 Lab Warmup: Decisions (1) Add code to the template to read a test score into the score variable. Then evaluate the score entered, and use a decision statement to display some output. When the score entered is 80 or above, output: Doing well Otherwise, output: Study more End your output with a newline. (2) Extend the program to add one more check. When the score entered is below 60, output: and go to office hours for help on the next line, ending again with a newline.

import java.util.Scanner;

public class ScoreInterpreter {

public static void main(String[] args) { int score = 0; Scanner userInput = new Scanner(System.in); System.out.println("Enter your test score:"); return; } }

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!