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
Asmaamasry Questions
705 Questions
(Game: Knight’s Tour animation) Write a program for the Knight’s Tour problem. Your program should let the user move a knight to any starting square and click the Solve button to animate a knight moving along the path, as shown in Figure 18.16
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
166
(Game: Knight’s Tour) The Knight’s Tour is an ancient puzzle. The objective is to move a knight, starting from any square on a chessboard, to every other square once, as shown in Figure 18.15a
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
118
(Replace words) Write a program that replaces all occurrences of a word with a new word in all the files under a directory, recursively. Pass the parameters from the command line as follows:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
167
(Find words) Write a program that finds all occurrences of a word in all the files under a directory, recursively. Pass the parameters from the command line as follows:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
144
Number of files in a directory) Write a program that prompts the user to enter a directory and displays the number of the files in the directory
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
184
(Nonrecursive directory size) Rewrite Listing 18.7, DirectorySize.java, without using recursion
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
193
(Koch snowflake fractal) The text presented the Sierpinski triangle fractal. In this exercise, you will write a program to display another fractal, called the Koch snowflake, named after a famous Swedish mathematician. A Koch snowflake is created as follows:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
263
(Create a maze) Write a program that will find a path in a maze, as shown in Figure 18.13a. The maze is represented by an 8 * 8 board. The path must meet the following conditions:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
189
(String permutation) Write a recursive method to print all the permutations of a string. For example, for the string abc, the permuation is
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
0
150
(Hex to decimal) Write a recursive method that parses a hex number as a string into a decimal integer. The method header is:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
1
186
(Binary to decimal) Write a recursive method that parses a binary number as a string into a decimal integer. The method header is:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
1
186
(Decimal to hex) Write a recursive method that converts a decimal number into a hex number as a string. The method header is:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
1
157
(Decimal to binary) Write a recursive method that converts a decimal number into a binary number as a string. The method header is:
Java programming
2022-06-29
Answers
30
Question
40
Followers
30
0
1
168
Total:
705
Previous
44
45
46
47
48
Next
Go