Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started