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
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
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, 21.12.2021 17:40
question
Mathematics, 21.12.2021 17:40
question
Mathematics, 21.12.2021 17:40
question
Mathematics, 21.12.2021 17:40
Questions on the website: 13722363