Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC121SylF2023
»
CSC121F2023Lab03
»
CSC121F2023Lab03Hint1
Algorithm hint for first repetition lab (Fall 2023)
banner comment
import's
declare your class
declare the main method
declare your variables. You will at least need something for the number inputted, something for the result, and something for the operation
ready your keyboard
get the operation from the user ("part of "priming read")
while the operation is not indicating the end of the program
get the number
use a switch statement to determine which operation and perform it
get the next operation (*part of "priming read")
display the final 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