Question
(Game: multiplication quiz) Listing 4.4, SubtractionQuiz.py, randomly generates a subtraction question. Revise the program to randomly generate a multiplication question with two integers less than 100 .
Step 1
This module allows us to generate random numbers. In Python, we can do this by writing: ```python import random ``` Show more…
Show all steps
Your feedback will help us improve your experience
Morgan Cheatham and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(Game: addition quiz) Listing $3.4,$ SubtractionQuiz, java, randomly generates a subtraction question. Revise the program to randomly generate an addition question with two integers less than 100 .
Listing 5.4, SubtractionQuizLoop.py, generates five random subtraction questions. Revise the program to generate ten random addition questions for two integers between 1 and 15. Display the correct count and test time.
Repeat Exercise 61 for a random number generator that chooses two integers from $ 1 $ through $ 80 $.
Sequences, Series, and Probability
Probability
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD