Nov-13-2016, 06:46 AM
I received my assignment and these were the instructions:
Write a program that gives a simple Math quizzes. The program should display two random numbers that are to be added together. The program should let the user enter their answer. If the answer is correct then the program should display a message that says Correct Congratulations! If the answer is not correct the program should display the correct answer and a message that says "Incorrect, Better Luck Next Time", The program should also ask the user if he wants to take another quiz. At the end of the program the should be a report of how many quizzes the user took, along with how many wins and how many losses they had.
I will be looking for functions to be used throughout this program! Don't forget in order to use the random function you must import the random library
I'm just not sure exactly how to do it. I need help!!
Write a program that gives a simple Math quizzes. The program should display two random numbers that are to be added together. The program should let the user enter their answer. If the answer is correct then the program should display a message that says Correct Congratulations! If the answer is not correct the program should display the correct answer and a message that says "Incorrect, Better Luck Next Time", The program should also ask the user if he wants to take another quiz. At the end of the program the should be a report of how many quizzes the user took, along with how many wins and how many losses they had.
I will be looking for functions to be used throughout this program! Don't forget in order to use the random function you must import the random library
I'm just not sure exactly how to do it. I need help!!