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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started