Similar Books


    No books found

Title
Chapter: 17 / Q: 18
(View bits) Write the following method that displays the bit representation for the last byte in an integer:
Chapter: 17 / Q: 19
(View hex) Write a program that prompts the user to enter a file name, reads bytes from the file, and displays each byte’s hex representation. (Hint: You can first convert the byte value into an 8-bit string, then convert the bit string into a twodigit hex string
Chapter: 17 / Q: 20
(Binary editor) Write a GUI application that lets the user enter a file name in the text field and press the Enter key to display its binary representation in a text area. The user can also modify the binary code and save it back to the file, as shown in Figure 17.23a
Chapter: 17 / Q: 21
(Hex editor) Write a GUI application that lets the user enter a file name in the text field and press the Enter key to display its hex representation in a text area. The user can also modify the hex code and save it back to the file, as shown in Figure 17.23b
Chapter: 18 / Q: 1
(Factorial) Using the BigInteger class introduced in Section 10.9, you can find the factorial for a large number (e.g., 100!). Implement the factorial method using recursion
Chapter: 18 / Q: 2
(Fibonacci numbers) Rewrite the fib method in Listing 18.2 using iterations
Chapter: 18 / Q: 3
(Compute greatest common divisor using recursion) The gcd(m, n) can also be defined recursively as follows:
Chapter: 18 / Q: 4
(Sum series) Write a recursive method to compute the following series:
Chapter: 18 / Q: 5
(Sum series) Write a recursive method to compute the following series:
Chapter: 18 / Q: 6
(Sum series) Write a recursive method to compute the following series:
total questions: 772

Questions

772

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5