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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
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
image
Engineering, 03.07.2019 14:10, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
image
Engineering, 04.07.2019 18:10, mirmir62
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
image
Engineering, 04.07.2019 19:10, batmanmarie2004
Afoot bridge is made as a simple deck, 4 m long, with a cross section 2 m (wide) and 20 cm thick, and made of wood. the deck is supported at the two ends. the maximum load allowable on the bridge is 10 tons, provided it is uniformly distributed on the deck. to sense this load, a strain gauge is placed at the center of the bridge and its resistance is monitored. if the sensor has a nominal resistance of 350 s2 and a gauge factor of 3.6, what is the reading of the strain gauge at maximum load? the modulus of elasticity for the wood used in the construction is 10 gpa.
Answers: 2
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 in other subjects:

Konu
Spanish, 02.12.2021 07:00
Konu
Mathematics, 02.12.2021 07:00