subject
Engineering, 21.11.2019 03:31 paigeleahfarbeoy2ork

As discussed in class you are to implement a program that is able to play a game of high low. your program will attempt to guess a number that the user is thinking of within the range [1, 20) (1 inclusive 20 exclusive). your program will have 5 tries and each time the user should be able to tell your program if it is either correct, high, or low. if your program attempts 5 times but is not told that it is correct on the 5th try you should output "you ". otherwise your program should always be able to guess the correct answer if the user plays the game properly. in this program you are required to write a function that takes a number (int) as a parameter and outputs the prompt to the user that guesses that number (tells the user "is this your number: ") and shows them a menu that explains how to enter correct, high, or low. you may use the method that we used in class, where the user enters a number corresponding to their selection of high, low, or correct. (this function should be a int function that returns the users selection)

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
Condition monitoring is a major component of. (clo4) a)- predictive maintenance. b)-preventive maintenance c)-proactive maintenance d)-reactive maintenance.
Answers: 1
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
You know the right answer?
As discussed in class you are to implement a program that is able to play a game of high low. your p...
Questions
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Spanish, 14.09.2020 14:01
question
French, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Social Studies, 14.09.2020 14:01
question
Geography, 14.09.2020 14:01
question
Biology, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Biology, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01