Question: This question covers materials up to Seminar 3 . Make use of functions, selection, and repetition structures. NO data structures like set, list, tuple, or

This question covers materials up to Seminar 3. Make use of functions, selection, and repetition structures. NO data structures like set, list, tuple, or dictionary should be used for this question. Keep the program modular by defining other functions if necessary.
This question is divided into 3 parts. Submit separate python codes for each part. Paste screenshot of a program executions that covers all scenarios.
(a) Write a Python program that allows 2 players to play the following dice game.
i. At start of the game, prompt for the following:
Two unique names representing the 2 players
Number of rounds to play
ii. In each round, player will roll the dice
iii. Player with bigger dice value wins this round
iv. Display the players dice values and current score
v. Repeat step ii to iv, until all rounds are played
vi. If there is no winner, conclude the game as a draw
Sample 1
Enter player 1 name: Jack
Enter player 2 name: Jim
No of rounds to play: 3
Round 1- Jack 3 : Jim 4
Current Score Jack 0 : Jim 1
Round 2- Jack 2 : Jim 1
Current Score Jack 1 : Jim 1
Round 3- Jack 4 : Jim 5
Current Score Jack 1 : Jim 2
Jim is the winner!!
Sample 2
Enter player 1 name: Jack
Enter player 2 name: Jim
No of rounds to play: 3
Round 1- Jack 3 : Jim 4
Current Score Jack 0 : Jim 1
Round 2- Jack 2 : Jim 1
Current Score Jack 1 : Jim 1
Round 3- Jack 5 : Jim 5
Current Score Jack 1 : Jim 1
Its a draw!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!