Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5) Write a menu-driven python program. There will be 3 different options in menu; 1- Call the guess_number.py module. Your program will generate a random

image text in transcribed

5) Write a menu-driven python program. There will be 3 different options in menu; 1- Call the guess_number.py module. Your program will generate a random number between 20- 40 and will give 6 chances to user to guess it. If user guess correct, print screen to Congratulations, else print !!Please Try Again!! and back to menu. 2- Call the dice_rolling.py module. Imagine there are 3 different players. When the program runs, it will ask to user how many times the dice will be thrown? Then, it will randomly generate numbers between 1 and 6 and sum them. Then you will print the score of player one, two and three and print the winner of game. Then back to menu. 3- Exit the program. If user enter an option except these 3 (like 4,5 or -1), you will give a warning and print menu again

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

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Explain how employee engagement data is Big Data in HR.

Answered: 1 week ago