1. import java.util.Scanner; class Maim Sentinel 2 3- Using the while/sentinel approach, write a program that will read a line and print that line in all caps until it reaches a line containing only...


1. import java.util.Scanner;<br>class Maim<br>Sentinel<br>2<br>3-<br>Using the while/sentinel approach, write a program that will read a line and print that line in all caps until<br>it reaches a line containing only the word 'quit.<br>public static void main(String[] args)<br>4<br>5.<br>Scanner input = new Scanner(system.in);<br>System.out.println(

Extracted text: 1. import java.util.Scanner; class Maim Sentinel 2 3- Using the while/sentinel approach, write a program that will read a line and print that line in all caps until it reaches a line containing only the word 'quit. public static void main(String[] args) 4 5. Scanner input = new Scanner(system.in); System.out.println("Enter a sentence, or type 'quit' to end."); String phrase = 1nput.nextLine(); while (phrase != quit) System.out.printin(phrase. toUpperCase()); 6 10 Sample run: 11 12 // Your code goes here 13 14 } 15 Jack be nimble JACK BE NIMBLE Jack be quick JACK BE QUICK Jack jump over the candlestick java version "1.8.0 31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot (TM) 61-Bit Server VM (build 25.31-b07, mixed mode) JACK JUMP OVER TIIE CANDLESTICK Įrnh

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here