menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a loop that asks the user "do you want to repeat the program or quit? (r/q)" . the loop should repeat until the user has entered an r or q (either uppercase or lowercase).
asked
Dec 26, 2018
176k
views
1
vote
Write a loop that asks the user "do you want to repeat the program or quit? (r/q)" . the loop should repeat until the user has entered an r or q (either uppercase or lowercase).
Computers and Technology
college
Ashish Kasma
asked
by
Ashish Kasma
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
Here is the loop:for (int i = 0; i < S.length(); i++) if (S.charAt(i) == 'R'
If the user enter any of the characters in the if statement the user will be asked by the question.
Jegan
answered
Dec 31, 2018
by
Jegan
7.9k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Oct 22, 2024
49.8k
views
Write a program to read a character until a * is encountered. also count thenumber of uppercase, lowercase and numbers entered by the user. When i enter * it still will not quit. Please help #include int
DJIDave
asked
Oct 22, 2024
by
DJIDave
7.9k
points
Computers and Technology
high-school
1
answer
1
vote
49.8k
views
asked
Aug 24, 2021
68.3k
views
Write a program that asks the user to enter the name of an input file. If the file does not exist, the program should prompt the user to enter the file name again. If the user types QUIT in any uppercase/lowercase
Anatoliy Kmetyuk
asked
Aug 24, 2021
by
Anatoliy Kmetyuk
8.1k
points
Computers and Technology
high-school
1
answer
2
votes
68.3k
views
asked
Apr 6, 2024
17.3k
views
When completing a CMS-1500 claim using computer software, text should be entered in _____ case. a) Uppercase b) Lowercase c) Title case d) All capital letters
Sarthik Gupta
asked
Apr 6, 2024
by
Sarthik Gupta
8.4k
points
Biology
high-school
1
answer
1
vote
17.3k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org