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, 21.06.2019 22:50
Explain why it is reasonable to assume that receiving 3 duplicate acks in tcp is an indication that the network is not currently congested.
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
In the guess my number program, the user continues guessing numbers until the secret number is match...
Questions
question
Social Studies, 12.01.2021 01:00
question
Arts, 12.01.2021 01:00
question
Mathematics, 12.01.2021 01:00
question
History, 12.01.2021 01:00