Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Introduction to Java Programming, Comprehensive Version (10th Edition)
by
Y. Danial liang
Edition:
10th edition
ISBN13:
978-0133761313
ISBN10:
0133761312
772
Java programming
Home
Books
Introduction to Java Programming, Comprehensive Version (10th Edition)
Similar Books
No books found
Title
Chapter: 5 /
Q: 45
(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
Chapter: 5 /
Q: 46
(Reverse a string) Write a program that prompts the user to enter a string and displays the string in reverse order
Chapter: 5 /
Q: 47
(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:
Chapter: 5 /
Q: 48
(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:
Chapter: 5 /
Q: 49
(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
Chapter: 5 /
Q: 50
(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
Chapter: 5 /
Q: 51
(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:
Chapter: 6 /
Q: 1
(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:
Chapter: 6 /
Q: 2
(Sum the digits in an integer) Write a method that computes the sum of the digits in an integer. Use the following method header:
Chapter: 6 /
Q: 3
(Palindrome integer) Write the methods with the following headers
total questions:
772
Previous
13
14
15
16
17
Next
Questions
772
Views
Best Answers
299
Points
5
×
Close
add reason
reason