Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

4. How has e-commerce affected business-to-business transactions?

Answered: 1 week ago