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: 6 /
Q: 14
(Estimate π) π can be computed using the following series:
Chapter: 6 /
Q: 15
(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:
Chapter: 6 /
Q: 17
(Display matrix of 0s and 1s) Write a method that displays an n-by-n matrix using the following header:
Chapter: 6 /
Q: 16
(Number of days in a year) Write a method that returns the number of days in a year using the following header:
Chapter: 6 /
Q: 18
(Check password) Some websites impose certain rules for passwords. Write a method that checks whether a string is a valid password. Suppose the password rules are as follows:
Chapter: 6 /
Q: 19
(The MyTriangle class) Create a class named MyTriangle that contains the following two methods:
Chapter: 6 /
Q: 20
(Count the letters in a string) Write a method that counts the number of letters in a string using the following header:
Chapter: 6 /
Q: 21
(Phone keypads) The international standard letter/number mapping for telephones is shown in Programming Exercise 4.15. Write a method that returns a number, given an uppercase letter, as follows:
Chapter: 6 /
Q: 22
(Math: approximate the square root) There are several techniques for implementing the sqrt method in the Math class. One such technique is known as the Babylonian method. It approximates the square root of a number, n, by repeatedly performing a calculation using the following formula:
Chapter: 6 /
Q: 23
(Occurrences of a specified character) Write a method that finds the number of occurrences of a specified character in a string using the following header:
total questions:
772
Previous
15
16
17
18
19
Next
Questions
772
Views
Best Answers
299
Points
5
×
Close
add reason
reason