Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(Baby name popularity ranking) The popularity ranking of baby names from years 2001 to 2010 is downloaded from www.ssa.gov/oact/babynames and stored in files named babynameranking2001.txt, babynameranking2002.txt, . . . ,
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
231
(Occurrences of each letter) Write a program that prompts the user to enter a file name and displays the occurrences of each letter in the file. Letters are case-insensitive
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
187
(Rename files) Suppose you have a lot of files in a directory named Exercisei_j, where i and j are digits. Write a program that pads a 0 before j if j is a single digit
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
172
(Rename files) Suppose you have a lot of files in a directory named Exercisei_j, where i and j are digits. Write a program that pads a 0 before i if i is a single digit. For example, a file named Exercise2_1 in a directory will be renamed to Exercise02_1
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
291
(Replace words) Suppose you have a lot of files in a directory that contain words Exercisei_j, where i and j are digits. Write a program that pads a 0 before i if i is a single digit and 0 before j if j is a single digit
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
178
(Create a directory) Write a program that prompts the user to enter a directory name and creates a directory using the File’s mkdirs method
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
468
(Process large dataset) A university posts its employees’ salaries at http:// cs.armstrong.edu/liang/data/Salary.txt. Each line in the file consists of a faculty member’s first name, last name, rank, and salary (see Programming Exercise 12.24)
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
211
(Create large dataset) Create a data file with 1,000 lines. Each line in the file consists of a faculty member’s first name, last name, rank, and salary. The faculty member’s first name and last name for the ith line are FirstNamei and LastNamei
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
218
(Process scores in a text file on the Web) Suppose that the text file on the Web http://cs.armstrong.edu/liang/data/Scores.txt contains an unspecified number of scores. Write a program that reads the scores from the file and displays their total and average. Scores are separated by blanks
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
341
(Replace text) Revise Programming Exercise 12.16 to replace a string in a file with a new string for all files in the specified directory using the command:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
194
(Data sorted?) Write a program that reads the strings from file SortedStrings. txt and reports whether the strings in the files are stored in increasing order
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
214
(Remove package statement) Suppose you have Java source files under the directories chapter1, chapter2, . . . , chapter34. Write a program to remove the statement package chapteri; in the first line for each Java source file under the directory chapteri
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
196
(Count words) Write a program that counts the number of words in President Abraham Lincoln’s Gettysburg address from http://cs.armstrong.edu/liang/data/ Lincoln.txt
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
477
Total:
555
Previous
3
4
5
6
7
Next
Go