Programming



Item Name

1. What does the acronym XaaS stand for?

1. What does the acronym XaaS stand for?

11. What would the following statement, when used in a

11. What would the following statement, when used in a Java program, display on the screen? System.out.println("Java is great!");

3. What output will be produced by the following code?

3. What output will be produced by the following code? double tide[] = {12.2, -7.3, 14.2, 11.3}; System.out.println("Tide 1 is " + tide[1]); System.out.println("Tide 2 is " + tide[2]);

50. In Listing 6.24 the parameter e in the method

50. In Listing 6.24 the parameter e in the method actionPerformed is never used. Is this OK?

A bounding rectangle is the minimum rectangle that encloses a

A bounding rectangle is the minimum rectangle that encloses a set of points in a two-dimensional plane, as shown in Figure 12.16. Write a method that returns a bounding rectangle for a set of points in a two-dimensional plane, as follows: def getRectangle(points): You defined the Rectangle2D class in Exercise 8.19. Write a test program that prompts the user to enter the points as x1 y1 x2 y2 x3...

A bucket sort begins with a one-dimensional array of positive

A bucket sort begins with a one-dimensional array of positive integers to be sorted and a two-dimensional array of integers with rows indexed from 0 to 9 and columns indexed from 0 to n – 1, where n is the number of values to be sorted. Each row of the two-dimensional array is referred to as a bucket. Write a class named BucketSort containing a method called sort that operates as follows: a)...

A cancellation error occurs when you are manipulating a very

A cancellation error occurs when you are manipulating a very large number with a very small number. The large number may cancel out the smaller number. For example, the result of 100000000.0 + 0.000000001 is equal to 100000000.0. To avoid cancellation errors and obtain more accurate results, carefully select the order of computation. For example, in computing the following series, you will obtain...

A class is a blueprint for creating objects. All objects

A class is a blueprint for creating objects. All objects in the same class have the same kind of data and the same methods.

A class that implements the ActionListener interface must implem

A class that implements the ActionListener interface must implement which method?

A codon is a triplet of nucleotides that specifies a single amino acid (a

A codon is a triplet of nucleotides that specifies a single amino acid (a protein is a sequence of amino acids). Write a program that extracts codons found in an input DNA (or RNA) sequence and stores them in an ArrayList. For example, if the input is GATTCGATC, the program stores GAT, TCG, and ATC in an ArrayList. If the length of an input string is not a multiple of 3, then ignore any leftover...