Showing 0–0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Given a string, return the string with the first and last characters swapped. Code Completion Given a string, return the string with the first and last characters swapped. CodeCheck Strings, No Loops
2 Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length. Code Completion Given a string, return the string with the middle two characters removed if it has even length, and the middle... CodeCheck Strings, No Loops
3 Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length. Code Completion Given a string, return the string with the middle two characters swapped if it has even length, and the middle... CodeCheck Strings, No Loops
4 Given a string, return the string with the first and second half swapped. Code Completion Given a string, return the string with the first and second half swapped. If the string has odd length, leave... CodeCheck Strings, No Loops
5 Given a string, return the string with the first half and the second half doubled. Code Completion Given a string, return the string with the first half and the second half doubled. For example, Java becomes JaJavava... CodeCheck Strings, No Loops
6 Given a two-dimensional array of integers, return the average of the four corner elements. Code Completion Given a two-dimensional array of integers, return the average of the four corner elements. CodeCheck Two-Dimensional Arrays, No Loops
7 Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even. Code Completion Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or... CodeCheck Two-Dimensional Arrays, No Loops
8 Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border... CodeCheck Two-Dimensional Arrays, No Loops
9 Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction. Code Completion Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements... CodeCheck Two-Dimensional Arrays, No Loops
10 Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist. Code Completion Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor... CodeCheck Two-Dimensional Arrays, No Loops
11 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
12 Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself). Code Completion Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element... CodeCheck Two-Dimensional Arrays, No Loops
13 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Two-Dimensional Arrays, No Loops
14 Given a list of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given a list of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Lists - Simple Exercises, No loops
15 Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even). Code Completion Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Lists - Simple Exercises, No loops
16 Given a list of integers, swap the first and last elements. Code Completion Given a list of integers, swap the first and last elements. CodeCheck Lists - Simple Exercises, No loops
17 Given a list of integers, swap the first two and the last two elements. Code Completion Given a list of integers, swap the first two and the last two elements. CodeCheck Lists - Simple Exercises, No loops
18 Calcular una potencia Construye una funcion que tome una base y un exponente no negativo como parametros y calcule la base elevada al... jsParsons for loop, loops
19 Calcular una potencia Construye un programa que calcule la base elevada al exponente no negativo sin usar multiplicacion. jsParsons for loop, loops
20 Calcular una potencia Construye una funcion que calcule la potencia de un numero. La funcion recibe dos enteros como parametros (la base y... jsParsons loops, while loop
21 Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list of length 2. Code Completion Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list... CodeCheck Two-Dimensional Arrays, Complex Loops
22 No Argument Functions C++ BehaviorExample for demonstrating No Argument Functions AnnEx
23 csedpad.04.StringClass.no_topic PCEX Set of activities for csedpad.04.StringClass.no_topic PCEX
24 csedpad.04.StringClass.no_topic_1 PCEX Set of activities for csedpad.04.StringClass.no_topic_1 PCEX
25 csedpad.04.StringClass.no_topic_1 Given a person name, the program finds out the length, i.e., the number of characters, of the name. PCEX
26 csedpad.04.StringClass.no_topic_1 Given two names of two places, the program checks if they are equal in length. PCEX
27 csedpad.05.LogicalOperators.no_topic PCEX Set of activities for csedpad.05.LogicalOperators.no_topic PCEX
28 csedpad.05.LogicalOperators.no_topic This program checks the eligibility of a student to enroll in a university by checking the prerequisite PCEX
29 csedpad.05.LogicalOperators.no_topic_1 PCEX Set of activities for csedpad.05.LogicalOperators.no_topic_1 PCEX
30 csedpad.05.LogicalOperators.no_topic_1 Given the age of 3 individuals, this program compares their ages in order to check whether any two individuals are... PCEX
31 csedpad.05.LogicalOperators.no_topic_1 Given the price of item this program says if item is qualified for discount or not. An item is qualified... PCEX
32 csedpad.07.IfElse.no_topic PCEX Set of activities for csedpad.07.IfElse.no_topic PCEX
33 csedpad.07.IfElse.no_topic Find the tallest among three individuals whose heights are given. PCEX
34 csedpad.07.IfElse.no_topic_1 PCEX Set of activities for csedpad.07.IfElse.no_topic_1 PCEX
35 csedpad.07.IfElse.no_topic_1 Assign letter grades to a given score by comparing the test score with the test score range for a given... PCEX
36 csedpad.07.IfElse.no_topic_1 Conversion of temperature from one scale to the other. PCEX
37 csedpad.07.IfElse.no_topic_1 This program assigns a jersey to one of two teams, teamE if jersey number is even else to teamO PCEX
38 csedpad.11.ForLoops.no_topic PCEX Set of activities for csedpad.11.ForLoops.no_topic PCEX
39 csedpad.11.ForLoops.no_topic This program displays the multiplication table of 6. PCEX
40 csedpad.11.ForLoops.no_topic_1 PCEX Set of activities for csedpad.11.ForLoops.no_topic_1 PCEX
41 csedpad.11.ForLoops.no_topic_1 This program checks whether a number is a prime number or not and displays the result. PCEX
42 csedpad.11.ForLoops.no_topic_1 50 chickens are separated in odd-numbered and even-numbered cages with the first chicken being in cage 1 and the last... PCEX
43 csedpad.11.ForLoops.no_topic_1 this is a program for a countdown display for launching a rocket in space which must show numbers in decreasing... PCEX
44 csedpad.14.TwoDimensionalArrays.no_topic PCEX Set of activities for csedpad.14.TwoDimensionalArrays.no_topic PCEX
45 csedpad.14.TwoDimensionalArrays.no_topic This program calculates the average performance of 2 students by combining their performance in quiz, homework and discussion. PCEX
46 csedpad.14.TwoDimensionalArrays.no_topic_1 PCEX Set of activities for csedpad.14.TwoDimensionalArrays.no_topic_1 PCEX
47 csedpad.14.TwoDimensionalArrays.no_topic_1 This program stores the ratings for 4 different movies and finds the average rating for the third movie. PCEX
48 csedpad.14.TwoDimensionalArrays.no_topic_1 This program generates a tictac toe board by using a two dimensional array. PCEX
49 csedpad.14.TwoDimensionalArrays.no_topic_1 this program calculates the total cost of different items by multiplying unit cost of an item with count of items PCEX
50 csedpad.16.Methods.no_topic PCEX Set of activities for csedpad.16.Methods.no_topic PCEX
51 csedpad.16.Methods.no_topic You are given a side of a cube. By using methods in Java, you have to calculate the volume of... PCEX
52 csedpad.16.Methods.no_topic_1 PCEX Set of activities for csedpad.16.Methods.no_topic_1 PCEX
53 csedpad.16.Methods.no_topic_1 The program will create a method that will show some information about a faculty on a campus. The program will... PCEX
54 csedpad.16.Methods.no_topic_1 Calculate the area of a circle given its radius. PCEX
55 csedpad.21.Sorting.no_topic PCEX Set of activities for csedpad.21.Sorting.no_topic PCEX
56 csedpad.21.Sorting.no_topic Given a list of unsorted game cards, sort them in ascending order using the insertion sort algorithm. PCEX
57 csedpad.21.Sorting.no_topic_1 PCEX Set of activities for csedpad.21.Sorting.no_topic_1 PCEX
58 csedpad.21.Sorting.no_topic_1 Sort a given unsorted array using bubble sort in ascending order. PCEX
59 csedpad.21.Sorting.no_topic_1 Given a list of unsorted game cards, sort them in ascending order using the quick sort algorithm. PCEX
60 DFA Exercise: Compliment of No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's that have 3 consecutive a's. OpenDSA Deterministic Finite Automata
61 DFA Exercise: Complement No ba Automata Construction Exercise User creates a DFA that accepts the complement of the langugage of strings with a's and b's that does not... OpenDSA Deterministic Finite Automata
62 DFA Exercise: No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's without 3 consecutive a's. OpenDSA Deterministic Finite Automata
63 DFA Exercise: No ba Automata Construction Exercise User creates a DFA that accepts the langugage of strings with a's and b's that does not end in ba. OpenDSA Deterministic Finite Automata
64 Regular Expression Exercise: Strings Containing No aa RegEx Writing Exercise User writes an regular expression for the langugae of strings containing no occurance of aa. OpenDSA Regular Expression
65 DFA Exercise: Length a Multiple of 3 with No aab Automata Construction Exercise User creates a DFA that recognizes strings with length a multiple of 3 and containing no instance of aab. OpenDSA Context-Free Grammar
66 Crear una función que verifique si una cadena es un palíndromo o no Construye una funcion que determine si la cadena dada como parametro es un palindromo. La funcion debe ser insensible a... jsParsons strings
67 Crear una función que verifique si una cadena es un palíndromo o no Construye un programa que determine si la cadena original es un palindromo. La funcion debe ser insensible a mayusculas y... jsParsons
68 Crear una función que verifique si una cadena es un palíndromo o no Construye una funcion que determine si la cadena dada como parametro es un palindromo. La funcion debe ser insensible a... jsParsons strings
69 Given two strings s and t, return the first position where their characters are the same, or -1 if there is no such position. Code Completion Given two strings s and t, return the first position where their characters are the same, or -1 if there... CodeCheck Strings, Comparing Strings
70 CFG Transformation Exercise 1 Grammar Construction Exercise User creates an equivalent CFG with no usless, lambda, or unit productions: Exercise 1. OpenDSA Context-Free Grammar
71 CFG Transformation Exercise 2 Grammar Construction Exercise User creates an equivalent CFG with no usless, lambda, or unit productions: Exercise 2. OpenDSA Context-Free Grammar
72 Cálculo de potencias Construye un programa que calcule la base elevada al exponente no negativo. jsParsons
73 Practicar el manejo de excepciones Construye una funcion que sume dos numeros y maneje entradas no numericas. jsParsons exceptions
74 Construir una función que determine si una cadena dada como parámetro es un palíndromo Construye una funcion que verifique si la cadena es un palindromo o no. La funcion debe ser insensible a mayusculas... jsParsons
75 Conditionals Temperature Construct a program that prints out 'Cold', when the temperature is 15 degrees celcius or below, 'Moderate' when it is... jsParsons control flow, if statement, if-else statement
76 Practicar sentencias if...elif...else Construye un programa que imprima 'Frio' cuando la temperatura sea de 15 grados centigrados o menos, 'Moderado' cuando sea mayor... jsParsons conditionals
77 Given a string, find the first integer inside and return its value as an integer. Code Completion Given a string, find the first integer inside and return its value as an integer. Return 0 if there is... CodeCheck Strings, Numbers in Strings
78 Given a string, find the sum of all integers inside. Code Completion Given a string, find the sum of all integers inside. Return 0 if there is no integer inside. CodeCheck Strings, Numbers in Strings
79 Creating a Dictionary of Character-Count Pairs Construct a program that has a function which receives a string from the user and creates a dictionary that maps... PCEX
80 Creating a Dictionary of Character-Count Pairs Construct a program that has a function which receives a string from the user and creates a dictionary that maps... PCEX
81 Creando un Diccionario de Pares Caracteres-Frecuencia Construye un programa que tenga una función que reciba un string del usuario y cree un diccionario que mapea cada... PCEX
82 Advertir al Usuario sobre los Cambios en la Temperatura y Humedad. Construir un programa que reciba la temperatura y la humedad de hoy y de ayer y advierta al usuario cuando... PCEX
83 Practicar la búsqueda del índice de los elementos mínimo y máximo Construye un programa que encuentre los indices tanto del elemento maximo como del minimo en una lista. num_lista es el... jsParsons