subject

ACTIVITY 2.14.1: Printing a message with ints and chars.
Print a message telling a user to press the letter ToQuit key numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and
num Presses = 2, print:
Press the q key 2 times to quit.
import java. util. Scanner;
1 test
passed
Al tests
passed
3 public class Quit Screen {
public static void main(String[] args) {
5 Scanner scnr = new Scanner(System. in);
6
char letterToQuit;
7
int numPresses;
8
9
letterToQuit = scnr. next().charAt(0);
10 numPresses - scnr. nextInt();
11
12
13
14
15)
Run
Feedback?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
You know the right answer?
ACTIVITY 2.14.1: Printing a message with ints and chars.
Print a message telling a user to pr...
Questions
question
Mathematics, 27.04.2021 21:50
question
Mathematics, 27.04.2021 21:50
question
Biology, 27.04.2021 21:50
question
Mathematics, 27.04.2021 21:50
question
History, 27.04.2021 21:50
question
Mathematics, 27.04.2021 21:50
question
Mathematics, 27.04.2021 21:50
question
Mathematics, 27.04.2021 21:50
Questions on the website: 13722367