Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 . Write pseudocode ( as described in Section 1 . 4 of the course guide ) describing the procedure of the following guessing game:

4. Write pseudocode (as described in Section 1.4 of the course guide) describing the procedure of the following guessing game:
At the beginning of the program, it chooses a random number between 1 and 100. The user will be asked to guess a number, and told whether the actual number chosen by the computer is higher or lower then their guess. When the user guesses the number, a message will tell them that they have guessed the correct number and the game should end.
Task
In a file guess.py, implement the guessing game described in question 4 of assignment 1. Use a function from the random module to generate the random number. [You're free to deviate from your pseudocode from assignment 1 as necessary to implement a correct game

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe the triggers of the DR plan.

Answered: 1 week ago

Question

4. How has e-commerce affected business-to-business transactions?

Answered: 1 week ago