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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
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
Physics, 01.09.2020 19:01
Questions on the website: 13722367