Testing and Debugging

Resource: Ch. 3, “Testing and Debugging”, of Data Structures: Abstraction and Design Using Java.

Complete the Exercises for Section 3.2, Programming #1, in Ch. 3, “Testing and Debugging”, of Data Structures: Abstraction and Design Using Java.

Submit your pseudocode response to the Assignment Files tab.

PROGRAMMING

  1. Write a search method with four parameters: the search array, the target, the start subscript, and the finish subscript. The last two parameters indicate the part of the array that should be searched. Your method should catch or throw exceptions where warranted.

Resource: Ch. 3, “Testing and Debugging”, of Data Structures: Abstraction and Design Using Java.

Complete the Exercises for Section 3.5, Programming #1, in Ch. 3, “Testing and Debugging”, of Data Structures: Abstraction and Design Using Java.

Submit your pseudocode response to the Assignment Files tab.

PROGRAMMING

  1. Write the findLargest method described in self-check exercise 2 in section 3.4 using Test-Driven Development.

This is the self-check exercise 2 in section 3.4

/**

 *  Search an array to find the first occurrence of the

 *  largest element

 *  @param x Array to search

 *  @return The subscript of the first occurrence of the

 *          largest element

 *  @throws NullPointerException if x is null

 */

public static int findLargest(int[] x) {  

find the cost of your paper