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
(Find the factors of an integer) Write a program that reads an integer and displays all its smallest factors in increasing order. For example, if the input integer is 120, the output should be as follows: 2, 2, 2, 3, 5
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
209
(Display the ASCII character table) Write a program that prints the characters in the ASCII character table from ! to ~. Display ten characters per line. The ASCII table is shown in Appendix B. Characters are separated by exactly one space
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
225
(Compute the greatest common divisor) Another solution for Listing 5.9 to find the greatest common divisor of two integers n1 and n2 is as follows:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
237
(Find the largest n such that n3 < 12,000) Use a while loop to find the largest integer n such that n3 is less than 12,000
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
202
(Find the smallest n such that n2 >12,000) Use a while loop to find the smallest integer n such that n2 is greater than 12,000
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
253
(Find numbers divisible by 5 or 6, but not both) Write a program that displays all the numbers from 100 to 200, ten per line, that are divisible by 5 or 6, but not both. Numbers are separated by exactly one space
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
196
(Find numbers divisible by 5 and 6) Write a program that displays all the numbers from 100 to 1,000, ten per line, that are divisible by 5 and 6. Numbers are separated by exactly one space
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
226
(Find the two highest scores) Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
236
(Find the highest score) Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the name of the student with the highest score
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
511
(Financial application: compute future tuition) Suppose that the tuition for a university is $10,000 this year and increases 5% every year. In one year, the tuition will be $10,500
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
241
(Conversion from miles to kilometers) Write a program that displays the following two tables side by side:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
207
(Conversion from kilograms to pounds and pounds to kilograms) Write a program that displays the following two tables side by side:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
233
(Conversion from miles to kilometers) Write a program that displays the following table (note that 1 mile is 1.609 kilometers):
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
216
Total:
555
Previous
21
22
23
24
25
Next
Go