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
Display an integer reversed) Write a method with the following header to display an integer in reverse order:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
211
(Palindrome integer) Write the methods with the following headers
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
188
(Sum the digits in an integer) Write a method that computes the sum of the digits in an integer. Use the following method header:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
194
(Math: pentagonal numbers) A pentagonal number is defined as n(3n–1)/2 for n = 1, 2, . . ., and so on. Therefore, the first few numbers are 1, 5, 12, 22, . . . . Write a method with the following header that returns a pentagonal number:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
475
(Longest common prefix) Write a program that prompts the user to enter two strings and displays the largest common prefix of the two strings. Here are some sample runs:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
176
(Count uppercase letters) Write a program that prompts the user to enter a string and displays the number of the uppercase letters in the string
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
196
(Count vowels and consonants) Assume letters A, E, I, O, and U as the vowels. Write a program that prompts the user to enter a string and displays the number of vowels and consonants in the string
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
218
(Process string) Write a program that prompts the user to enter a string and displays the characters at odd positions. Here is a sample run:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
179
(Business: check ISBN-13) ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d9d10d11d12d13. The last digit d13 is a checksum, which is calculated from the other digits using the following formula:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
176
(Reverse a string) Write a program that prompts the user to enter a string and displays the string in reverse order
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
194
(Statistics: compute mean and standard deviation) In business applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
163
(Computer architecture: bit-level operations) A short value is stored in 16 bits. Write a program that prompts the user to enter a short integer and displays the 16 bits for the integer. Here are sample runs:
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
196
(Math: combinations) Write a program that displays all possible combinations for picking two numbers from integers 1 to 7. Also display the total number of all combinations
Java programming
2022-06-04
Answers
30
Question
40
Followers
30
0
1
169
Total:
555
Previous
18
19
20
21
22
Next
Go