Engineering
Engineering, 06.11.2019 20:31, olejlund8073

This exercise focuses on while loops and random numbers. your program allows the user to play a game in which the program thinks of a random integer and accepts guesses from the user until the user guesses the number correctly. after each incorrect guess, you will tell the user whether the correct answer is higher or lower. your program must exactly reproduce the format and behavior of the logs in this document. the log below shows one sample execution of your program. first, the program prints an introduction in the form of a haiku. a haiku has 3 lines: one with 5syllables, the second with 7 syllables, and the third with 5 syllables. next, a series of guessing games is played. in each game, the computer chooses a random number between 1 and 100,inclusive. the game asks the user for guesses until the correct numberis guessed. after each incorrect guess, the program gives a clue about whether the correct number is higher or lower than the guess. once the user types the correct number, the game ends and the program reports how many guesses were needed

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:20, hayleymckee
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
image
Engineering, 04.07.2019 18:20, samueltaye
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
image
Engineering, 04.07.2019 18:20, Doogsterr
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
image
Engineering, 04.07.2019 19:20, kaitlyn114433
Ashielded metal arc-welding operation is accomplished in a work cell by a fitter and a welder. the fitter takes 5.5 min to load components into the welding fixture at the beginning of the work cycle, and 1.5 min to unload the completed weldment at the end of the cycle. the total ength of the weld seams 1200 mm, and the travel speed used by the welder averages 300 mm/min. every 600 mm of seam length, the welding stick must be changed, which takes 0.8 min. while the fitter is working, the welder is idle (resting): and while the welder is working the fitter is idle. (a) determine the average arc-on time as a fraction of the work cycle time. (b) how much improvement in arc-on time would result if the welder used flux-cored arc welding (manually operated), given that the spool of weld wire must be changed every 10 weldments, and it takes the welder 5.0 min to accomplish the change? (c) what are the production rates for these two cases (weldments completed per hour)? attach your work and solutions.
Answers: 1
Do you know the correct answer?
This exercise focuses on while loops and random numbers. your program allows the user to play a game...

Questions in other subjects:

Konu
Mathematics, 16.06.2021 18:20