Method to handle an entire question
- Sent:
- Lower bound
- Upper bound
- operation
- random number generator
- Scanner
- Generate the first operand using the random number generator and lower and upper bounds
- Generate the second operand using the random number generator and the lower and upper bounds
- Compute the answer (based on the operatoin)
- Ask the user for their answer (using a previous method)
- If the user's answer is correct, return true
- else return false
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylS2023 >
CSC121S2023Lab07 > CSC121S2023Lab7H4
Topic revision: r1 - 2023-02-10 - cathybareiss