Write a program to perform the following functionality.  Part 1 Call a functio

WRITE MY PAPER

 Write a program to perform the following functionality.
 Part 1 Call a function to display the heading. 
Part 2 Write the following loop: Prompt the user for a limit. 
Call a function to play the game which will: Calculate a random number using the limit entered by the user. 
Display a message showing the range to be guessed. 
Write a loop that will: Prompt the user for a number. 
Compare the user guess to the generated random number. 
If the guess is too high, display message and retry.
If the guess is too low, display message and retry. 
If the guess is correct, display message and exit loop. 

WRITE MY PAPER

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top