Question 7:
Your task is to create a simple game. In order to implement the game, you must use the function structure in your program. In this game, the user must virtually roll two dices. After rolling the first dice, the program should display the dice number and prompt the user to guess the sum of the two dices. After the user enters his/her guess, the program should roll the second dice and display "You won the game" if the sum of the two dice was equal to the user's guess, otherwise display "You lost the game." The program should continue till the time that user wants to keep playing.
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.