Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Inheritance and Polymorphism: Review Questions 4 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Writing methods. OpenDSA Method
2 Method Overriding Review Quiz Question, Battery CS1 review questions: Method overriding. OpenDSA Method
3 Understanding Method Signatures Review Questions Question, Battery Understanding method signatures self-assessment questions. OpenDSA Method, Signature
4 Methods with Parameters Review Questions Question, Battery Understanding methods with parameters self-assessment questions. OpenDSA Method, Parameter
5 Methods and Return Statements Review Quiz Question, Battery Methods and return statement for CS1 self-assessment questions. OpenDSA Method, Return Statement
6 (Methods) Adding numbers - CSEdPad The program will create a method that will add two given exam numbers of a student. The program will declare... AnnEx methods
7 3-19_MoreMethods Java BehaviorExample for demonstrating 3-19_MoreMethods AnnEx methods
8 3-19_PizzaPrices Java BehaviorExample for demonstrating 3-19_PizzaPrices AnnEx methods
9 3-21_ParamPassing Java BehaviorExample for demonstrating 3-21_ParamPassing AnnEx methods
10 SwapExample Java BehaviorExample for demonstrating SwapExample AnnEx methods
11 Buddy Method Memory Manager Visualization Algorithm Visualization, User Supplied Data Algorithm Visualization for the buddy method memory manager. User can select data for the visualization. OpenDSA Buddy Method Memory Manager
12 Main Method Review Questions Question, Battery CS1-level review questions on the main method in Java. OpenDSA Main Method
13 The Class for Representing a Point in the Euclidean Plane (Case 2) Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX classes, constructors, exceptions, file i/o, inheritance, methods, objects, overloading
14 Determining Whether One is a Teenager (Case 2) Construct a program that asks the user to enter a string that has the user name and age separated by... PCEX classes, exception handling, exceptions, file i/o, if-else statement, loops, methods, objects
15 Reporting File Information (Case 2) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX classes, exceptions, file i/o, methods, objects
16 Class 2 (BankAccount) Java PredictingFinalResult for demonstrating Class 2 (BankAccount) QuizJET classes, exceptions, file i/o, methods, objects
17 Class (Cash Register) Java PredictingFinalResult for demonstrating Class (Cash Register) QuizJET classes, constructors, exceptions, file i/o, methods, objects, overloading
18 Class 5 (Point) Java PredictingFinalResult for demonstrating Class 5 (Point) QuizJET classes, exceptions, file i/o, methods, objects
19 Method Demo Java BehaviorExample for demonstrating Method Demo AnnEx classes, objects
20 Method Demo Java CodeVisualization for demonstrating Method Demo JSVEE classes, objects
21 Static Method Java BehaviorExample for demonstrating Static Method AnnEx
22 Static method for counting the number of times a character appears in a string Code Completion Supply a static method that counts the number of times that a specific character appears in a given string. For... CodeCheck Designing Classes
23 Static method for computing number of binary digits in n Code Completion Supply a static method that computes the number of binary digits in a given integer. For example, CodeCheck Designing Classes
24 Generic method for filling an array Code Completion The class below has a static method which sets all elements of an array to a value. The method is... CodeCheck Generic Types
25 Object Creation and Method Calls Object Creation and Method Calls AnnEx boolean expressions, classes, objects
26 Equality Comparison Method Construct a program with two classes, where each class has a comparison method. Test whether instances of each class is... PCEX
27 Greater Than Comparison Method Challenge Construct a program with two classes, where each class has a comparison method. Test whether the value of the first... PCEX
28 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
29 Mid-square Method Calculator Calculation Exercise Calculator for computing value of the middle digits of a squared number. OpenDSA Hash Function
30 String Folding Method activity Calculation, User Supplied Data Calculator for computing value of hashing a string by 'folding'. A better method than character value summing. OpenDSA Hash Function
31 Choosing the Best Indexing Method Question, Battery Self-test question battery on which is the best indexing choice for a given scenario. OpenDSA Tree-Based Indexing
32 Doubly Linked List Prev Method Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow showing how to move to the previous element in a doubly linked list. OpenDSA Doubly Linked List
33 Zipper words with helper method Code Completion Two strings of equal length can be interlaced like the teeth of a zipper to form a new word. For... CodeCheck Recursion
34 Recursive string reversal with helper method Code Completion Complete the static reverseHelper method so that the reverse method returns a String that is the reverse of the parameter... CodeCheck Recursion
35 Overriding the equals Method Code Completion All vehicles used for transportation in the U.S. must have identification, which varies according to the type of vehicle. For... CodeCheck Inheritance
36 Introduce class to implement method that mutates value Code Completion A Java method cannot update primitive type parameters. For example, the following program cannot work as intended: CodeCheck Designing Classes
37 Generic pair with min method Code Completion CodeCheck Generic Types
38 Pair class with compareTo method Code Completion We sometimes want to compare two Pair objects, for example, when using pairs as keys in a tree map. CodeCheck Generic Types
39 Generic replicate method Code Completion Implement the generic replicate method. It should return a list containing multiple copies of the given value. CodeCheck Generic Types
40 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
41 Overriding Object Methods Java BehaviorExample for demonstrating Overriding Object Methods AnnEx inheritance
42 Linked List Miscillaneous Methods Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow demonstrating some miscillaneous methods for a linked list implementation. OpenDSA Linked List
43 Find vowels in string with recursive helper method Code Completion Complete the MyMethods class so that the static vowels method returns a string of the vowels of the string parameter.... CodeCheck Recursion
44 Reverse an integer with helper method Code Completion We want to implement a method that reverses the digits in an integer. For example, reverseDigits(3456) should yield 6543. CodeCheck Recursion
45 Parameter Passing Comparison of Five Methods Tracing Exercise A collection of self-practice questions to compare parameter passing by five methods. OpenDSA Parameter Passing
46 Unique words in two string sets Code Completion Implement a method that receives two arrays of strings and determines which words are unique to each. CodeCheck Tree Structures
47 Hash code for LabeledPoint Code Completion Implement the hashCode method for the LabeledPoint class so that equal objects have the same hash code and that unequal... CodeCheck Tree Structures
48 Letter frequency (count) Code Completion Write a method that computes how often each letter A-Z or a-z occurs in a string. Don't distinguish between upper-... CodeCheck Arrays and Array Lists
49 Letter frequency (percentage) Code Completion Write a method that computes the frequency (as a percentage between 0.0 and 1.0) of each letter A-Z or a-z... CodeCheck Arrays and Array Lists
50 BankAccount with Service Charge Code Completion Change the withdraw method of the BankAccount class so that a charge of $1.00 is deducted for each withdrawal. CodeCheck Classes
51 Reverse toString for array Code Completion Complete the static toStringInReverse method in the MyMethods class so that it formats an array of int values in reverse... CodeCheck Recursion
52 Recursive toString for array Code Completion Complete the static mkString method in the MyMethods class so that it formats an array of int values, with the... CodeCheck Recursion
53 Multiplication as recursive addition Code Completion Complete the multiply method in the MyMethods class so that it returns the product of the non-negative integer n multipled... CodeCheck Recursion
54 Remove all but first two elements from linked list Code Completion Write a method that removes all but the first two elements from a linked list, using an iterator. You may... CodeCheck Linear Data Structures
55 Implement addLast using raw nodes Code Completion Implement the addLast method in this simplified LinkedList class. CodeCheck Linear Data Structures
56 Add an element to the front and back of a linked list Code Completion Implement a method that adds an element to the beginning of a linked list and another at the end. CodeCheck Linear Data Structures
57 Add an element after the first and before the last Code Completion Write a method that adds an element after the first and another before the last element of a nonempty linked... CodeCheck Linear Data Structures
58 Add throws clause to web reader Code Completion The checkURL method below checks whether a web site contains data. Checked exceptions can be thrown in the code. Your... CodeCheck Input and Output
59 Last n Characters Code Completion Write a method that gets the last n characters from a string. For example, last("Hello, World!", 5) should return the... CodeCheck Fundamental Data Types
60 Swap first and last name Code Completion Write a method getLastFirst whose parameter is a string containing a name such as "Harry Smith" and that returns a... CodeCheck Fundamental Data Types
61 Initials Code Completion Complete the initials method in the class below. For example, the call initials("Harry", "Joseph", "Hacker") should return the string "HJH". CodeCheck Fundamental Data Types
62 Middle Letter Code Completion Complete the getMiddle method that gets the middle character from a word if the word length is odd, or the... CodeCheck Branches
63 All the same sign Code Completion Write a method to test whether three numbers have the same sign (positive, zero, or negative). For example, CodeCheck Branches
64 All different Code Completion Write a method to test whether three numbers are all different. For example, CodeCheck Branches
65 All the same Code Completion Write a method to test whether four numbers are all the same. For example, CodeCheck Branches
66 Swap values by using an array Code Completion A Java method cannot update primitive type parameters. For example, the following method does not work as intended: CodeCheck Designing Classes
67 Rotating the Array Values to the Left by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
68 Rotating the Array Values to the Left by Two Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
69 Rotating the Array Values to the Right by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
70 Printing Common Elements in Two Arrays Construct a program that has a method that receives two arrays and prints the values in the 2nd array that... PCEX arrays
71 Printing the Total Number of Times Elements of One Array Appear in Another Array Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX arrays
72 Class Point Construct a class Point which has a method to tell distance from another instance of Point. jsParsons classes, data structures, objects, stacks
73 Bucket Hashing Slideshow Algorithm Visualization Slideshow showing the basic hash method of hashing to any free position within a computed bucket. OpenDSA Bucket Hashing
74 Rotating the Array Values Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
75 Searching Values of an Array in Another Array Construct a program that has a method that receives two arrays and prints the values in the 2nd array that... PCEX arrays
76 Rotating the Array Values to the Left by Two Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
77 Rotating the Array Values to the Right by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
78 Searching Arrays (Case 2) Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX arrays
79 Reversing a string with StringBuilder Code Completion StringBuilder is another class that provides methods to manipulate strings. Look in the StringBuilder class API for information on the... CodeCheck Objects
80 Swap adjacent elements in array Code Completion Your task is to complete a method that swaps adjacent values in an array of integers. For example, if the... CodeCheck Arrays and Array Lists
81 Swap first and second half of array Code Completion Your task is to complete a method that swaps the first and second half of an array of integers. For... CodeCheck Arrays and Array Lists
82 Reverse an integer Code Completion We want to implement a method that reverses the digits in an integer. For example, reverseInt(3456) should yield 6543. CodeCheck Recursion
83 Extract uppercase letters from string Code Completion Modify the static return upperCase method in the MyMethods class so that it returns a string of the upper case... CodeCheck Recursion
84 Rotate linked list by manipulating nodes Code Completion Your task is to add a rotate method to the LinkedList class of Section 15.2 that rotates the elements of... CodeCheck Linear Data Structures
85 Stutter Code Completion Your task is to write a method stutter that repeats all letters t in a string. For example, the call... CodeCheck Loops
86 EvenSum Code Completion Your task is to write a method evenSum that computes the sum of all even numbers between two given numbers.... CodeCheck Loops
87 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
88 GetVowels Code Completion Your task is to write a method getVowels that gets the vowels in a string. For example, the call getVowels("Hello,... CodeCheck Loops
89 Count perfect squares Code Completion Your task is to write a method countPerfectSquares that counts all perfect squares in a given range. For example, the... CodeCheck Loops
90 Count Sevens Code Completion Your task is to write a method countSevens that counts the number of digits equal to 7 in a given... CodeCheck Loops
91 Finding all matches for a predicate Code Completion Recall that a predicate is a method with a Boolean return value. The Predicate interface can be used to test... CodeCheck Generic Types
92 Finding the first match for a predicate Code Completion Recall that a predicate is a method with a Boolean return value. The Predicate interface can be used to test... CodeCheck Generic Types
93 BankAccount with Transaction Count Code Completion Change the deposit and withdraw methods of the BankAccount class so that a count of transactions is updated. For example,... CodeCheck Classes
94 Linear Probing Bad Performance Slideshow Algorithm Visualization Slideshow showing why linear probing is a poor method of collision resolution. OpenDSA Collision Resolution
95 Math class 1 (Memphis) Simple example of how to use Java Math methods. This program shows that the trig identity sin^2(x) + cos^2(x) =... AnnEx math
96 Creating the Movement Interface Code Completion Create the Movement interface below and the abstract methods move and getPosition, which are implemented by the Ship and Auto... CodeCheck Interfaces
97 Linked List Operations - Contains In this example, we will implement the contains() method that accepts a value and returns True if the value is... PCEX
98 Recursively calculate the power of a number Using recursion, complete the power method so that it returns the value of a to the power of b. Examples:... PCEX
99 Recursively calculate the sum of all numbers from 1 to n Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
100 Use Recursion to calculate power Using recursion, complete the power method so that it returns the value of a to the power of b. Examples:... PCEX
101 Recursively calculate the power of a number Challenge Using recursion, complete the power method so that it returns the value of a to the power of b. Examples:... PCEX
102 Use Recursion to calculate total sum of all numbers from 1 to N. Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
103 Recursively calculate the sum of all numbers from 1 to n Challenge Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
104 Add user interface for balance transfer Code Completion In this assignment, a transfer method has been added to the ATM class of section 12.5: CodeCheck Object-Oriented Design
105 Uppercase international letters Code Completion Your task is to find out what happens when you call the toUpperCase method on strings that contain accented characters... CodeCheck Objects
106 Palindrome testing with stack and queue Code Completion Using a queue and a stack, implement a method that tests whether a sequence of numbers is a palindrome, that... CodeCheck Linear Data Structures
107 Doubly Linked List Create the necessary classes for a Doubly Linked List, containing the method insert_at_start(data) to add a new item to the... PCEX doubly linked list, linked list
108 Singly Linked List Create the necessary classes for a Singly Linked List, containing the method append(item) to add a new item to the... PCEX linked list
109 Doubly Linked List Challenge Create the necessary classes for a Doubly Linked List, containing the method insert_at_start(data) to add a new item to the... PCEX
110 Singly Linked List Challenge Create the necessary classes for a Singly Linked List, containing the method add(item) to add a new item to the... PCEX
111 Average word length Code Completion Complete the following program to compute the average length of the words. Invoke the appropriate method to compute the length... CodeCheck Objects
112 An enum type describing chemical elements Code Completion Enumerated types in Java are quite powerful, in that they can contain methods and instance variables. An enum type class... CodeCheck Inheritance
113 Using Aggegation Code Completion A team has players. Use aggregation to complete the class constructor and the listTeam and addPlayer methods of the Team... CodeCheck Object-Oriented Design
114 The Class for Representing a Point in the Euclidean Plane (Case 1) Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX
115 The Class for Representing a Point in the Euclidean Plane (Case 2) Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX classes, objects
116 Queue Class - Check if Element Exists In this example, you will use Queue class from queue provided by python. This class contains methods for adding a... PCEX
117 Queue Class - Check if Element Exists In this example, you will use Queue class from queue provided by python. This class contains methods for adding a... PCEX
118 Inserting binary tree In a BinaryTree, adding new nodes to the tree is an important capability to have. Construct a simple implementation of... PCEX binary search, recursion, trees
119 Inserting binary tree Challenge In a BinaryTree, adding new nodes to the tree is an important capability to have.\nConstruct a simple implementation of a... PCEX recursion, trees
120 The Class for Representing a Point in the Euclidean Plane Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX classes, object, objects
121 The Class for Representing a Point in the Euclidean Plane Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX classes, data structures, objects, stacks
122 The Class for Representing a Point in the Euclidean Plane Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... PCEX classes, objects
123 Drawing with fill3DRect Code Completion Complete the ThreeButtonComponent class to draw three boxes that look like push buttons. Each box is a Rectangle drawn in... CodeCheck Objects
124 XML Map Labels Code Completion The latitude, longitude and place name are used to label a map. Implement a class with latitude and longitude as... CodeCheck Classes
125 Normalizing Angles Code Completion When you work with angle measurements, you often want them normalized or converted into the range between 0 . .... CodeCheck Fundamental Data Types
126 Timer Code Completion The following timer class measures the total time that has elapsed after timing a number of events. Your job is... CodeCheck Fundamental Data Types
127 Using an Abstract Class Code Completion Light bulbs can be identified by type and can be measured by the amount of lumens produced per watt of... CodeCheck Inheritance
128 Implement Tile.translate Code Completion A Tile class extends Rectangle. It is to be used for non-overlapping tilings. Your task is to override the translate... CodeCheck Inheritance
129 Static field to maintain the total value of Coin objects created Code Completion Add a private static variable to the Coin class that maintains the total value of all coins that were constructed.... CodeCheck Designing Classes
130 Static field to count number of objects Code Completion Add a private static variable to the Coin class that counts the total number of coins that were constructed. Also... CodeCheck Designing Classes
131 Make a measurer for words Code Completion In this exercise, we use the Word class from chapter 6 (with the bugs fixed). You should not change the... CodeCheck Interfaces
132 Using instanceof for Converting Between Animal Types Code Completion The Cat and Dog class below implement the Animal interface. All animals have names, but only dogs do tricks. Implement... CodeCheck Interfaces
133 The Class for Representing a TV (Case 1) Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, objects
134 The Class for Representing a TV (Case 2) Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, objects
135 The Class for Representing a TV Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, objects
136 The Class for Representing a TV Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, data structures, objects, stacks
137 The Class for Representing a TV (Case 2) Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, objects
138 The Class for Representing a TV Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... PCEX classes, objects
139 Hash code for Person class Code Completion When you add instances of the given Person class in a HashSet, the resulting hash set is too large. Evidently,... CodeCheck Tree Structures
140 ClassSchedule with getDays and set times Code Completion Your task is to write a tester class for the ClassSchedule class given below. You should test the getTime and... CodeCheck Classes
141 ClassSchedule with setDays and set times Code Completion A ClassSchedule class has been designed to represent a class that is scheduled at given days and times. Sometimes class... CodeCheck Classes
142 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
143 Point Class Hierarchy (Case 2) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX inheritance
144 The Class for Representing a Loan (Case 1) Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, objects
145 The Class for Representing a Loan (Case 2) Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, objects
146 The Class for Representing a Loan Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, object, objects
147 The Class for Representing a Loan Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, objects
148 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
149 Point Class Hierarchy (Case 2) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX constructors, inheritance, overloading
150 The Class for Representing a Loan (Case 2) Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, objects
151 Change Firstname Lastname to Lastname, Firstname Code Completion Fred fills out his time sheet at work, but he needs to provide the number of minutes worked. He only... CodeCheck Fundamental Data Types
152 Animal Class Hierarchy (Case 1) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
153 Point Class Hierarchy (Case 1) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX inheritance
154 The Class for Representing a Bank Account (Case 1) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, objects
155 The Class for Representing a Bank Account (Case 2) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, objects
156 Animal Class Hierarchy Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
157 Point Class Hierarchy Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX inheritance, object
158 The Class for Representing a Bank Account Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, object, objects
159 The Class for Representing a Bank Account Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, data structures, objects, stacks
160 The Class for Representing a Bank Account (Case 2) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, objects
161 The Class for Representing a Bank Account Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX classes, objects
162 The Class for Representing a Loan Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... PCEX classes, objects
163 Rectangle with 3D effect Code Completion Complete the ThreeDButtonComponent class to draw a button with shading. The button is a Rectangle, with very thin rectangles on... CodeCheck Objects
164 XML Map Labels convert to decimal degrees Code Completion The latitude, longitude and place name are used to label a map. Implement a class with latitude and longitude as... CodeCheck Classes
165 Practicar métodos de cadenas Construye un programa que imprima una oracion a partir de una lista dada de palabras. jsParsons list, strings
166 Crear una clase y usar sus métodos Construye una clase Punto que tenga un metodo para calcular la distancia desde otra instancia de Punto. jsParsons classes, objects
167 La Clase para Representar un Prestamo (Caso 1) Construya una clase que represente un préstamo. Esta clase debe contener datos que representen la tasa de interés, el monto... PCEX classes, objects
168 La Clase para Representar un Prestamo (Caso 2) Construya una clase que represente un préstamo. Esta clase debe contener datos que representen la tasa de interés, el monto... PCEX classes, objects