Tags:
tag this topic
create new tag
view all tags
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
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2023-06-19
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback