Similar Books


    No books found

Title
Chapter: 8 / Q: 32
(Geometry: area of a triangle) Write a method that returns the area of a triangle using the following header:
Chapter: 8 / Q: 33
(Geometry: polygon subareas) A convex 4-vertex polygon is divided into four triangles, as shown in Figure 8.9
Chapter: 8 / Q: 34
(Geometry: rightmost lowest point) In computational geometry, often you need to find the rightmost lowest point in a set of points. Write the following method that returns the rightmost lowest point in a set of points
Chapter: 8 / Q: 35
(Largest block) Given a square matrix with the elements 0 or 1, write a program to find a maximum square submatrix whose elements are all 1s
Chapter: 8 / Q: 36
(Latin square) A Latin square is an n-by-n array filled with n different Latin letters, each occurring exactly once in each row and once in each column
Chapter: 8 / Q: 37
(Guess the capitals) Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their capitals are stored in a twodimensional array, as shown in Figure 8.10
Chapter: 9 / Q: 1
(The Rectangle class) Following the example of the Circle class in Section 9.2, design a class named Rectangle to represent a rectangle. The class contains:
Chapter: 9 / Q: 2
(The Stock class) Following the example of the Circle class in Section 9.2, design a class named Stock that contains:
Chapter: 9 / Q: 3
(Use the Date class) Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, and 100000000000, and displays the date and time using the toString() method, respectively
Chapter: 9 / Q: 4
(Use the Random class) Write a program that creates a Random object with seed 1000 and displays the first 50 random integers between 0 and 100 using the nextInt(100) method
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