Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC121SylS2024
»
CSC121S2024Lab06
»
CSC121S2024Lab06Hint0
Development hint for lab 6
14 Feb 2024 - 14:53
|
Version
1
|
UnknownUser
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.
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