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, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
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, 18.02.2020 03:27
question
Mathematics, 18.02.2020 03:27
question
Mathematics, 18.02.2020 03:27