Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC121SylS2024
»
CSC121S2024Lab02
»
CSC121S2024Lab02Hint1
Algorithm hint for selection lab (Spring 2024)
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
Attachments
($count)
Show options
Search:
Sort by:
Name
Date
Author
Size
Type
Results per page:
6
12
24
48
all
Display hidden:
More actions
Create link(s)
Embed
Download
Hide
Unhide
Move
Delete
0
attachment(s)
Select all
Clear all
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback
This website is using cookies.
More info
.
That's Fine