Tags:
tag this topic
create new tag
view all tags
---+How to start and not be overwhelmed Build the program in stages and get it to "work" at each stage before moving on. Suggested stages: 1. Main components (including public static void main and the two ending }'s). Add in some constants. Compile. Don't move on until it compiles cleanly 1. Add in code to get the file name from the user. Compile. Use class examples as guides 1. Add in code to open the file (don't forget the throws exception). Compile and make sure it runs. 1. Add code to read a number from the file and print it, one at a time. Make sure this works. (Don't worry about the end of lines) 1. Add code to ask the user to guess the color and count correct guesses. Make sure this works. 1. Work on dealing with a line at a time (this is via a nested loop). See class examples for some help here.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2023-01-10
-
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