Algorithm hint for selection lab (Fall 2023)
- banner comment
- import's
- declare your class
- declare the main method
- declare your variables
- ready your keyboard
- get the input (the 2 numbers and operation and what the user thinks the answer is)
- use a selection statement based on the operation to determine the answer. If it is a bad operation, inform the user
- use a second selection state to determine if the user's answer matches the answer that was just computed. Inform the user of the result
- finish the main method
- finish the class
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylF2023 >
CSC121F2023Lab02 > CSC121F2023Lab02Hint1
Topic revision: r1 - 2023-06-09 - cathybareiss