Program 3 Help

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Program 3

main function: 1. Present options to user. 2. Check for valid input. 3. Call appropriate function. 4. Invite user to play again. Other functions: In a for loop: 1. generate 2 random numbers 2. perform math function 3. Present the question to user using print statement then input statement. 4. Compare answer calculated to answer from user. 5. Print whether answer is correct or not. For division: 1. Use integer divide for step 2 above. 2. If the divisor is > dividend, swap the values. You will need a 3rd variable for this. 3. For each division, ask user for remainder also.

You might also like