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
(Number of days in a year) Write a method that returns the number of days in a year using the following header:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
162
(Display matrix of 0s and 1s) Write a method that displays an n-by-n matrix using the following header:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
166
(Financial application: print a tax table) Listing 3.5 gives a program to compute tax. Write a method for computing tax using the following header:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
167
(Estimate π) π can be computed using the following series:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
406
(Sum series) Write a method to compute the following series:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
204
(Display characters) Write a method that prints characters using the following header:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
288
(Financial application: compute commissions) Write a method that computes the commission, using the scheme in Programming Exercise 5.39. The header of the method is as follows:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
189
(Use the isPrime Method) Listing 6.7, PrimeNumberMethod.java, provides the isPrime(int number) method for testing whether a number is prime. Use this method to find the number of prime numbers less than 10000
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
173
(Conversions between Celsius and Fahrenheit) Write a class that contains the following two methods:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
212
(Conversions between feet and meters) Write a class that contains the following two methods:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
224
(Financial application: compute the future investment value) Write a method that computes future investment value at a given interest rate for a specified number of years. The future investment is determined using the formula in Programming Exercise 2.21
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
278
(Display patterns) Write a method to display a pattern as follows:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
181
(Sort three numbers) Write a method with the following header to display three numbers in increasing order:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
211
Total:
555
Previous
17
18
19
20
21
Next
Go