Tags:
tag this topic
create new tag
view all tags
Development hint for lab 6
Write the method to get a specified value in a file (such as the third number).
It should be sent a string representing that file name and which number to get.
Don't go further until this is done and you have tested it.
You don't need to (but can) start to use constants. You can just send a literal string to the method if you wish to test the method
Write another method that will look up a word in a file and return which line number it is one
It should be sent two strings (first is the file name, second is the string to search)
Don't go further until this is done and tested it.
You can just send literal strings to test it if you wish
Write a priming read in your main method that just continues to get words until the word
quit
is entered
Don't move until until this works
Integrate your three parts developed above into solving the problem.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2024-02-14
-
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