Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 (Math class) Math example 3 - CSEdPad Demonstrate the understanding of Math class concepts by construct a program that calculate and print the surface area and volume... AnnEx math
2 (MathClass) MathExample1 - CSEdPad Demonstrate the understanding of Math class concepts by constructing a program that finds the length of the hypotenuse in of... AnnEx math
3 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
4 Math class 2 random (Memphis) Demonstrates how to use Math.random() to simulate dice rolling. Math.random() by itself gives a uniformly distributed random decimal in the... AnnEx math
5 Pythagorean Theorem Construct a program that accepts two input values from the user, one for each side of a right-angle triangle. The... PCEX arithmetic operations, arithmetic operators, math, operators, variables
6 Math Functions Math Functions AnnEx arithmetic operations, variables
7 DEPRECATED_Math Functions Java BehaviorExample for demonstrating DEPRECATED_Math Functions AnnEx
8 Constsnt Math Demo Java CodeVisualization for demonstrating Constsnt Math Demo JSVEE constants, data types, operators, primitive data types, variables
9 Import Math Python CodeVisualization for demonstrating Import Math JSVEE data types, functions
10 Using Math class 1 Java PredictingFinalResult for demonstrating Using Math class 1 QuizJET arithmetic operations, operators, variables
11 Using Math class 2 Java PredictingFinalResult for demonstrating Using Math class 2 QuizJET arithmetic operations, operators, variables
12 Using Math Class (abs) Java PredictingFinalResult for demonstrating Using Math Class (abs) QuizJET arithmetic operations
13 Using Math Class (ceil) Java PredictingFinalResult for demonstrating Using Math Class (ceil) QuizJET arithmetic operations
14 Practicing using math library and check a variable's type Construct a program that accesses math.pi and check its type jsParsons data types
15 Constants in Math class Java PredictingFinalResult for demonstrating Constants in Math class QuizJET arithmetic operations, constants
16 Using double and Math class Java PredictingFinalResult for demonstrating Using double and Math class QuizJET arithmetic operations, operators, primitive data types, variables
17 Practicar el uso de la biblioteca math y comprobar el tipo de una variable Construye un programa que acceda a math.pi y verifique su tipo. jsParsons operators, variables
18 Parse Tree Example for a Math Expression Algorithm Visualization Slideshow visualizing generation of a parse tree for a simple math expression. OpenDSA Parse Tree
19 Ambiguous Parse Tree Example for a Math Expression Algorithm Visualization Slideshow visualizing how generation of a parse tree from a grammar might be ambiguous. OpenDSA Parse Tree
20 Ambiguous Parse Tree Example for a Math Expression: 2 Algorithm Visualization Slideshow visualizing a second example of how generation of a parse tree from a grammar might be ambiguous. OpenDSA Parse Tree
21 CFG Associativity Exercise Question A question where users evaluate a mathematical expression and deterimine if the grammar enforces correct associativity. OpenDSA Context-Free Grammar, Ambiguity
22 CFG Precedence and Associativity Exercise Question A question where users evaluate a mathematical expression and deterimine if the grammar enforces correct precedence and associativity. OpenDSA Context-Free Grammar, Ambiguity
23 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX while loop
24 Parsing an Expression Algorithm Visualization, User Supplied Data Algorithm Visualization for generating the parse tree of a user-supplied mathematical expression. Demonstrates that the associated grammar enforces the correct... OpenDSA Parse Tree
25 CFG Associativity Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression and deterimine if the grammar enforces correct associativity. Alternate... OpenDSA Context-Free Grammar, Ambiguity
26 CFG Expression Evaluation Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression under the definition of a given CFG. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
27 CFG Precedence and Associativity Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression and deterimine if the grammar enforces correct precedence and... OpenDSA Context-Free Grammar, Ambiguity
28 CFG Expression Evaluation Exercise Calculation Exercise, Battery A collection of self-practice questions where users evaluate a mathematical expression under the definition of a given CFG. OpenDSA Context-Free Grammar, Ambiguity
29 Unambiguous CFG Parse Tree Example Algorithm Visualization Visualization for the parse tree generated for a mathematical expression from a non-ambiguouse CFG. OpenDSA Context-Free Language, Parse Tree
30 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX do-while loop, while loop
31 Processing the Digits of an Integer (Case 3) Construct a program that reverses the digits of an integer mathematically. PCEX while loop
32 Overlapping sets Code Completion An open interval is the set of all numbers between a lower and upper bound. In mathematical notation, we write CodeCheck Branches
33 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
34 3-19_MoreMethods Java BehaviorExample for demonstrating 3-19_MoreMethods AnnEx methods
35 3-19_PizzaPrices Java BehaviorExample for demonstrating 3-19_PizzaPrices AnnEx methods
36 3-21_ParamPassing Java BehaviorExample for demonstrating 3-21_ParamPassing AnnEx methods
37 (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
38 SwapExample Java BehaviorExample for demonstrating SwapExample AnnEx methods
39 Inheritance and Polymorphism: Review Questions 4 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Writing methods. OpenDSA Method
40 Understanding Method Signatures Review Questions Question, Battery Understanding method signatures self-assessment questions. OpenDSA Method, Signature
41 Methods with Parameters Review Questions Question, Battery Understanding methods with parameters self-assessment questions. OpenDSA Method, Parameter
42 Methods and Return Statements Review Quiz Question, Battery Methods and return statement for CS1 self-assessment questions. OpenDSA Method, Return Statement
43 Method Overriding Review Quiz Question, Battery CS1 review questions: Method overriding. OpenDSA Method
44 String Operation String Operation AnnEx pattern matching
45 String Operation pt This is the portuguese version. AnnEx pattern matching
46 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
47 Turing Machine Exercise: More a's Automata Construction Exercise User creates a Turing machine that recognizes the language with more a's than b's or c's. OpenDSA Turing Machine
48 Turing Machine Exercise: Reverse a String Automata Construction Exercise User creates a Turing machine that, given string W, outputs WW^R. OpenDSA Turing Machine
49 Turing Machine Exercise: Palindromes Automata Construction Exercise User creates a Turing machine that recognizes the language of palindromes on strings of a's and b's. OpenDSA Turing Machine
50 Turing Machine Exercise: Add an a Automata Construction Exercise User creates a Turing machine that adds an a to a string of a's. OpenDSA Turing Machine
51 Turing Machine Exercise: Accept Powers of 2 Automata Construction Exercise User creates a Turing machine that accepts strings of a's with the number of characters being a power of 2. OpenDSA Turing Machine
52 Turing Machine Exercise: Erase abc Automata Construction Exercise User creates a Turing machine that erases a string of a's, b's, and c's. OpenDSA Turing Machine
53 Turing Machine Exercise: Decide Powers of 2 Automata Construction Exercise User creates a Turing machine that decides if strings of a's have a length that is a power of 2. OpenDSA Turing Machine
54 Turing Machine Exercise: Keep abc Automata Construction Exercise User creates a Turing machine that moves over a string of a's, b's, and c's. OpenDSA Turing Machine
55 Turing Machine Exercise: Replace aba with aca Automata Construction Exercise User creates a Turing machine that replaces every substring aba with aca. OpenDSA Turing Machine
56 Main Method Review Questions Question, Battery CS1-level review questions on the main method in Java. OpenDSA Main Method
57 Turing Machine to Copy a String Algorithm Visualization, Code Tracing Presentation Slideshow presenting the execution of a Turing machine that copies a string. OpenDSA Turing Machine
58 Composition of Turing Machines Programmed Instruction Slideshow the formal conepts that support composition of Turing machines, which is a necessary step to building more complicated machines. OpenDSA Turing Machine
59 Turing Machines Deciding vs. Accepting Frameset Programmed Instruction Slideshow presenting the distinction between a Turing Machine that decides a language (always halts with a decision) vs. one that... OpenDSA Turing Machine
60 Turing Machine Extensions Frameset Presentation Slideshow presenting various potential extensions to Turing machines, such as two-dimensional tapes, multiple heads, and non-determinism. Includes proofs that these... OpenDSA Turing Machine
61 Visualizaiton of the Turing Machine that accepts a^n b^n c^n Algorithm Visualization, Code Tracing Presentation Detailed trace on some examples for a Turing machine that accepts the langugage a^n b^n c^n. OpenDSA Turing Machine
62 Call Structure for the Chained Matrix Multiplication Problem Algorithm Visualization Slideshow showing the tree structure for calls by a solution to the chained matrix multiplication problem. OpenDSA Dynamic Programming, Chained Matrix Multplication Problem
63 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
64 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
65 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
66 Class 2 (BankAccount) Java PredictingFinalResult for demonstrating Class 2 (BankAccount) QuizJET classes, exceptions, file i/o, methods, objects
67 Class (Cash Register) Java PredictingFinalResult for demonstrating Class (Cash Register) QuizJET classes, constructors, exceptions, file i/o, methods, objects, overloading
68 Class 5 (Point) Java PredictingFinalResult for demonstrating Class 5 (Point) QuizJET classes, exceptions, file i/o, methods, objects
69 Method Demo Java BehaviorExample for demonstrating Method Demo AnnEx classes, objects
70 Method Demo Java CodeVisualization for demonstrating Method Demo JSVEE classes, objects
71 Matching Sequence to Code Tracing Exercise User matches code to an output sequence. OpenDSA Parameter Passing
72 Match Code to Output Exercise Tracing Exercise User shows the output generated by a given piece of code. OpenDSA Parameter Passing
73 Vending Machine With Dollars and Quarters Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX
74 Vending Machine With Quarters-Dimes- and Nickels Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX
75 Vending Machine With Dollars and Quarters Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX operators, primitive data types, variables
76 Vending Machine With Quarters-Dimes- and Nickels Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX operators, primitive data types, variables
77 Vending Machine With Dollars and Quarters Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX
78 Vending Machine With Quarters-Dimes- and Nickels Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX
79 Static Method Java BehaviorExample for demonstrating Static Method AnnEx
80 Pattern-matching query execution 1 Pattern-matching query execution 1 DBQA
81 Pattern-matching query execution 2 Pattern-matching query execution 2 DBQA
82 Pattern-matching query execution 3 Pattern-matching query execution 3 DBQA
83 Pattern-matching query execution 4 Pattern-matching query execution 4 DBQA
84 Pattern Matching question5 Sql FreeCodingProblems for demonstrating Pattern Matching question5 SQL-KnoT
85 Symmetric Matrix Multiplication Reduction Presentation Slideshow showing a reduction of Matrix Multiply to Symmetric Matrix Multiply. This demonstrates that the lower bound for Symmetric Matrix... OpenDSA Reduction
86 Turing Machines Introduction Frameset Programmed Instruction Slideshow introducing the concept of a Turing machine and its formal definition. OpenDSA Collision Resolution
87 Turing Machines Configurations and Terminology Frameset Programmed Instruction Slideshow presenting the concept of a configuration for a Turing machine, along with defintions for terms like halting, accepting, and... OpenDSA Collision Resolution
88 Vending Machine Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX arithmetic operators, constants, operators, primitive data types, variables
89 Vending Machine Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX operators, variables
90 Vending Machine With Quarters, Dimes, and Nickels Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX arithmetic operators, constants, operators, primitive data types, variables
91 Vending Machine Suppose we have a vending machine that gives change. A customer selects an item for purchase and inserts a bill... PCEX operators, variables
92 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
93 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
94 Generic matrix class as a map with integer keys Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
95 Generic matrix class as linear array Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
96 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
97 Generic matrix class as array of arrays Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
98 Generic matrix class as a map with integer pair keys Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
99 Operacije nad elementima matrice C CodeConstruction&CompletionBundle for demonstrating Operacije nad elementima matrice PCEX
100 c_srednja_vrijednost_matrice Napisati program koji ispisuje srednju vrijednost elemenata matrice. PCEX
101 Rad sa dijagonalama matrica C CodeConstruction&CompletionBundle for demonstrating Rad sa dijagonalama matrica PCEX
102 c_unos_matrice Napisati program koji od korisnika traži unos matrice cijelih brojeva dimenzija 2x2 i zatim je ispisuje na ekran. PCEX
103 Object Creation and Method Calls Object Creation and Method Calls AnnEx boolean expressions, classes, objects
104 (Two-dim arrays) Matrix multiply - CSEdPad This program demonstrates the multiplication of two matrices using a two-dimensional array AnnEx 2d arrays
105 Overriding Object Methods Java BehaviorExample for demonstrating Overriding Object Methods AnnEx inheritance
106 Equality Comparison Method Construct a program with two classes, where each class has a comparison method. Test whether instances of each class is... PCEX
107 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
108 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
109 Mid-square Method Calculator Calculation Exercise Calculator for computing value of the middle digits of a squared number. OpenDSA Hash Function
110 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
111 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
112 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
113 Linked List Miscillaneous Methods Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow demonstrating some miscillaneous methods for a linked list implementation. OpenDSA Linked List
114 Discrete Fourier Transform Matrix Presentation Demonstration of multiplying by the FFT symmetry matrix for the 8th power of unity. OpenDSA Polynomial Multiplication, Fast Fourier Transform
115 Symmetries of the FFT Matrix Presentation Demonstration of the symmetries found within the nth powers of unity matrix for the FFT. OpenDSA Polynomial Multiplication, Fast Fourier Transform
116 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
117 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
118 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
119 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
120 Generic pair with min method Code Completion CodeCheck Generic Types
121 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
122 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
123 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
124 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
125 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
126 Aritmeticke operacije nad redovima i kolonama matrice C CodeConstruction&CompletionBundle for demonstrating Aritmeticke operacije nad redovima i kolonama matrice PCEX
127 Unos i obrada nizova i matrica C CodeConstruction&CompletionBundle for demonstrating Unos i obrada nizova i matrica PCEX
128 Parameter Passing Comparison of Five Methods Tracing Exercise A collection of self-practice questions to compare parameter passing by five methods. OpenDSA Parameter Passing
129 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
130 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
131 Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. Code Completion Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
132 Repeat where the row lengths don't have to match. Code Completion Repeat where the row lengths don't have to match. Fill the shorter array with zeroes. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
133 Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. Code Completion Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
134 Repeat where the row lengths don't have to match. Code Completion Repeat where the row lengths don't have to match. Fill the shorter array with zeroes. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
135 Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list of arrays of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
136 Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as an array of arrays of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
137 Given a two-dimensional array of integers and a value x, return the position of the first match as a list of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the position of the first match as a list... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
138 Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they do not match, as a list of length 2. Code Completion Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
139 Given a two-dimensional array of integers and a value x, return the position of the first match as an array of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the position of the first match as an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
140 Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they do not match, as an array of length 2. Code Completion Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
141 Imprimir Tabla de Conteo de Medallas con Totales por Fila Supongamos que tenemos una matriz de 7x4 que almacena el número de medallas que siete países ganaron en las competencias... PCEX 2d list
142 Imprimir Tabla de Conteo de Medallas con Totales por Fila y por Columna Supongamos que tenemos una matriz de 7x4 que almacena el número de medallas que siete países ganaron en las competencias... PCEX 2d list
143 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
144 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
145 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
146 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
147 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
148 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
149 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
150 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
151 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
152 Implement addLast using raw nodes Code Completion Implement the addLast method in this simplified LinkedList class. CodeCheck Linear Data Structures
153 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
154 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
155 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
156 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
157 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
158 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
159 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
160 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
161 All different Code Completion Write a method to test whether three numbers are all different. For example, CodeCheck Branches
162 All the same Code Completion Write a method to test whether four numbers are all the same. For example, CodeCheck Branches
163 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
164 c_dijeljenje_reda Napisati program koji dijeli red matrice sa nekim prirodnim brojem. Korisnik unosi indeks reda koji želi podijeliti i prirodni broj... PCEX
165 c_mnozenje_reda_iznad Napisati program koji uvećava svaki element u matrici za vrijednost elementa iznad sebe pomnoženim sa -1, koristeći promijenjene vrijednosti iz... PCEX
166 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
167 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
168 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
169 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
170 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
171 c_ispis_glavna_dijagonala Napisati program koji od korisnika traži unos matrice cijelih brojeva dimenzija 3x3 i zatim ispisuje na ekran elemente na glavnoj... PCEX
172 c_ispis_sporedna_dijagonala Napisati program koji od korisnika traži unos matrice cijelih brojeva dimenzija 3x3 i zatim ispisuje na ekran elemente na sporednoj... PCEX
173 c_zamjena_dvije_kolone Napisati program koji zamjenjuje dvije kolone matrice (elementi jedne kolone postaju elementi druge kolone, i obrnuto). Korisnik unosi indekse dvije... PCEX
174 c_zamjena_dva_reda Napisati program koji zamjenjuje dva reda matrice (elementi jednog reda postaju elementi drugog reda, i obrnuto). Korisnik unosi indekse dva... PCEX
175 c_zamjena_redova Napisati program koji zamjenjuje redove matrice (elementi jednog reda postaju elementi drugog reda, i obrnuto). Korisnik unosi indekse redova koje... PCEX
176 c_zamjena_kolona_dva_mjesta_dalje Napisati program koji pomjera svaku kolonu matrice na mjesto kolone koja se nalazi dva mjesta desno od nje. Brojanje kolona... PCEX
177 Class Point Construct a class Point which has a method to tell distance from another instance of Point. jsParsons classes, data structures, objects, stacks
178 ML Type Inferencing 1 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
179 ML Type Inferencing 2 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
180 ML Type Inferencing 3 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
181 ML Type Inferencing 4 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
182 ML Type Inferencing 5 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
183 ML Type Inferencing 6 Tracing Exercise A self-practice question where user matches a ML type inference with its code. OpenDSA Type
184 Bucket Hashing Slideshow Algorithm Visualization Slideshow showing the basic hash method of hashing to any free position within a computed bucket. OpenDSA Bucket Hashing
185 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
186 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
187 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop, list
188 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
189 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
190 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
191 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop
192 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
193 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
194 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
195 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
196 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
197 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
198 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
199 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
200 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
201 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
202 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
203 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
204 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
205 c_sabiranje_kolona Napisati program koji dodaje elemente na istim mjestima svake kolone matrice na narednu kolonu. PCEX
206 Updating Two-Dimensional Array (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX 2d arrays
207 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX 2d arrays
208 Updating Two-Dimensional Array (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX 2d arrays
209 c_zbir_elemenata_u_redovima Napisati program koji ispisuje zbir elemenata u svakom redu matrice. PCEX
210 c_zbir_elemenata_u_kolonama Napisati program koji ispisuje zbir elemenata u svakoj koloni matrice. PCEX
211 c_ispis_ispod_sporedne_dijagonale Napisati program koji ispisuje elemente ispod sporedne dijagonale matrice, razdvojene razmakom. PCEX
212 c_ispis_iznad_glavne_dijagonale Napisati program koji ispisuje elemente iznad glavne dijagonale matrice, razdvojene razmakom. PCEX
213 Executing statements sequentially In imperative programming the order of the statements matters for the execution of the program. PCEX
214 Regular Grammar Exercise: aaab*ba Grammar Construction Exercise User writes an regular grammar for the language of strings matching the regular expression (aaab*ba)*. OpenDSA Regular Expression, Regular Grammar
215 Extended BNF Exercise Question A question where users select extended BNF statements matching a normal set of BNF statements. OpenDSA Context-Free Grammar
216 Heap Max Remove Slideshow Algorithm Visualization Slideshow visualizing heap update when removing the max value from a maxheap. OpenDSA Heap
217 Linear Probing Bad Performance Slideshow Algorithm Visualization Slideshow showing why linear probing is a poor method of collision resolution. OpenDSA Collision Resolution
218 Updating an Element in the 2D Array Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX 2d arrays, arrays
219 Updating Two-Dimensional List Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, updates the... PCEX 2d list, classes, data structures, list, stacks, value vs reference
220 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX 2d arrays, arrays
221 Updating Two-Dimensional Array (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX 2d arrays, arrays
222 Updating Two-Dimensional List (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, updates the... PCEX 2d list, list, value vs reference
223 Updating Two-Dimensional List (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX 2d list, value vs reference
224 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
225 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
226 c_proizvod_elemenata_na_dijagonalama Napisati program koji ispisuje proizvod svih elemenata na glavnoj i sporednoj dijagonali matrice dimenzija 4x4. PCEX
227 c_proizvod_elemenata_na_dijagonalama_neparan Napisati program koji ispisuje proizvod svih elemenata na glavnoj i sporednoj dijagonali matrice dimenzija 5x5. PCEX
228 Extended BNF Exercise: Alternate Question, Battery A collection of self-practice questions where users select extended BNF statements matching a normal set of BNF statements. Alternate version. OpenDSA Context-Free Grammar
229 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
230 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
231 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
232 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
233 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
234 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
235 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
236 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
237 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
238 c_elementi_ispod_glavne_dijagonale Napisati program koji postavlja sve elemente ispod glavne dijagonale na 0, a zatim ispisuje matricu na ekran. PCEX
239 String Comparison (Case 2) Construct the program that modifies the string "hexxo worxd!" so that it matches (ignoring case) the string "HELLO WORLD!". PCEX strings
240 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
241 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
242 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
243 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
244 String Comparison (Case 2) Construct the program that modifies the string "hexxo worxd!" so that it matches (ignoring case) the string "HELLO WORLD!". PCEX string operations, strings
245 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
246 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
247 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
248 Printing Table of Medal Winner Counts with Row Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
249 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
250 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
251 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
252 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
253 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
254 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
255 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
256 String Comparison (Case 1) Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX strings
257 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
258 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
259 Printing Table of Medal Counts with Row/Column Total Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
260 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
261 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
262 String Comparison Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX string operations, strings
263 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
264 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
265 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
266 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
267 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
268 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
269 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
270 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
271 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
272 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
273 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
274 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
275 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
276 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
277 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
278 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
279 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
280 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
281 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
282 Determining the Maximum Rating for Each Soda in The Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
283 Determining the Average Rating for Each Soda in The Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
284 Determining the Average Ratings of each Respondent and Average Ratings Given to Each Soda in the Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
285 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
286 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
287 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
288 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
289 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
290 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
291 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
292 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
293 Processing the Results of a Soda Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
294 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
295 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
296 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
297 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
298 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
299 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
300 Processing the Results of a Soda Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list, classes, data structures, for loop, list, stacks
301 Processing Soda Survery (Case 2) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
302 Processing Soda Survery (Case 3) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
303 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
304 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
305 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
306 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
307 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
308 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
309 Searching Values of a List in Another List (Case 2) Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX list, search algorithms
310 Processing the Results of a Soda Survey (Case 2) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list
311 Processing the Results of a Soda Survey (Case 3) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list
312 Counting the Occurrences of One String in Another Construct a program that has a function that receives a string and returns the number of times that the string... PCEX functions, strings
313 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
314 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
315 Constants_Memphis_01 Example of Constant (final) in Java. AnnEx
316 Constants_Memphis_02 Example of constant (final) in java. AnnEx