Similar Books


    No books found

Title
Chapter: 8 / Q: 12
(Financial application: compute tax) Rewrite Listing 3.5, ComputeTax.java, using arrays
Chapter: 8 / Q: 13
(Locate the largest element) Write the following method that returns the location of the largest element in a two-dimensional array
Chapter: 8 / Q: 14
(Explore matrix) Write a program that prompts the user to enter the length of a square matrix, randomly fills in 0s and 1s into the matrix, prints the matrix, and finds the rows, columns, and diagonals with all 0s or 1s. Here is a sample run of the program:
Chapter: 8 / Q: 15
(Geometry: same line?) Programming Exercise 6.39 gives a method for testing whether three points are on the same line. Write the following method to test whether all the points in the array points are on the same line
Chapter: 8 / Q: 16
(Sort two-dimensional array) Write a method to sort a two-dimensional array using the following header:
Chapter: 8 / Q: 17
(Financial tsunami) Banks lend money to each other. In tough economic times, if a bank goes bankrupt, it may not be able to pay back the loan. A bank’s total assets are its current balance plus its loans to other banks
Chapter: 8 / Q: 18
(Shuffle rows) Write a method that shuffles the rows in a two-dimensional int array using the following header:
Chapter: 8 / Q: 19
(Pattern recognition: four consecutive equal numbers) Write the following method that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally
Chapter: 8 / Q: 20
(Game: connect four) Connect four is a two-player board game in which the players alternately drop colored disks into a seven-column, six-row vertically suspended grid, as shown below
Chapter: 8 / Q: 21
(Central city) Given a set of cities, the central city is the city that has the shortest total distance to all other cities. Write a program that prompts the user to enter the number of the cities and the locations of the cities (coordinates), and finds the central city and its total distance to all
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