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 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
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
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
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
English, 02.10.2020 14:01
question
English, 02.10.2020 14:01
question
Business, 02.10.2020 14:01
question
Mathematics, 02.10.2020 14:01
Questions on the website: 13722361