subject

In the guess my number program, the user continues guessing numbers until the secret number is matched. assuming numguesses is initialized to 1, how would the while statement be modified to include an extra criterion limiting the number of guesses to 15?

a) while( (userguess == secretnumber) || numguesses < 14 )

b ) while( (userguess== secretnumber) & & numguesses < = 15 )

c) while( ! (userguess == secretnumber) || numguesses < 15 )

d) while( ! (userguess == secretnumber) & & numguesses < 15 )

e) while( ! (userguess == secretnumber) & & numguesses < = 15 )

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
You know the right answer?
In the guess my number program, the user continues guessing numbers until the secret number is match...
Questions
question
English, 14.10.2019 08:01
question
Mathematics, 14.10.2019 08:01
question
Geography, 14.10.2019 08:01
question
Mathematics, 14.10.2019 08:01
Questions on the website: 13722360