Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Given a list of integers, return the sum of all positive elements. Code Completion Given a list of integers, return the sum of all positive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
2 Given a list of integers, find the largest sum of two different elements in the list. Code Completion Given a list of integers, find the largest sum of two different elements in the list. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
3 Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. Code Completion Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
4 Given a list of integers and an integer n, return a list of the averages of n consecutive elements of the original list. Code Completion Given a list of integers and an integer n, return a list of the averages of n consecutive elements of... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
5 Given a list of integers, return the average of all elements that are not the maximum or minimum. Code Completion Given a list of integers, return the average of all elements that are not the maximum or minimum. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
6 Given a list of integers, replace each element with the average of its neighbors. Code Completion Given a list of integers, replace each element with the average of its neighbors. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
7 Given a list of integers, return the sum of all odd elements. Code Completion Given a list of integers, return the sum of all odd elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
8 Given a list of integers and two values a and b, return the sum of all elements that are at least a and at most b. Code Completion Given a list of integers and two values a and b, return the sum of all elements that are at... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
9 Given a list of integers, return the average of all positive elements. Code Completion Given a list of integers, return the average of all positive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
10 Given a list of strings and a string s, return the average length of all strings containing s. Code Completion Given a list of strings and a string s, return the average length of all strings containing s. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
11 Given a list of integers, return the product of all non-zero elements. Code Completion Given a list of integers, return the product of all non-zero elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
12 Given a list of integers, give the largest n so that the sum of the first n elements equals the sum of the remaining elements. Code Completion Given a list of integers, give the largest n so that the sum of the first n elements equals the... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
13 Given a list of integers, give the largest n ≤ length / 2 so that the sum of the first n elements equals the sum of the last n elements. Code Completion Given a list of integers, give the largest n ≤ length / 2 so that the sum of the first... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
14 Given a list of integers, give the largest sum of n consecutive elements. Code Completion Given a list of integers, give the largest sum of n consecutive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
15 Given an array of integers, replace each element with the average of its neighbors. Code Completion Given an array of integers, replace each element with the average of its neighbors. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
16 Given an array of integers and an integer n, return an array of the averages of n consecutive elements of the original array. Code Completion Given an array of integers and an integer n, return an array of the averages of n consecutive elements of... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
17 Given an array of integers, give the largest sum of n consecutive elements. Code Completion Given an array of integers, give the largest sum of n consecutive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
18 Given an array of integers, return the sum of all positive elements. Code Completion Given an array of integers, return the sum of all positive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
19 Given an array of floating-point numbers, return an array of the averages of consecutive element pairs of the original array. Code Completion Given an array of floating-point numbers, return an array of the averages of consecutive element pairs of the original array. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
20 Given an array of integers and two values a and b, return the sum of all elements that are at least a and at most b. Code Completion Given an array of integers and two values a and b, return the sum of all elements that are at... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
21 Given an array of integers, return the average of all positive elements. Code Completion Given an array of integers, return the average of all positive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
22 Given an array of strings and a string s, return the average length of all strings containing s. Code Completion Given an array of strings and a string s, return the average length of all strings containing s. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
23 Given an array of integers, return the average of all elements that are not the maximum or minimum. Code Completion Given an array of integers, return the average of all elements that are not the maximum or minimum. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
24 Given an array of integers, return the product of all non-zero elements. Code Completion Given an array of integers, return the product of all non-zero elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
25 Given an array of integers, return the sum of all odd elements. Code Completion Given an array of integers, return the sum of all odd elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
26 Given an array of integers, find the largest sum of two different elements in the array. Code Completion Given an array of integers, find the largest sum of two different elements in the array. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
27 Given an array of integers, give the largest n ≤ length / 2 so that the sum of the first n elements equals the sum of the last n elements. Code Completion Given an array of integers, give the largest n ≤ length / 2 so that the sum of the first... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
28 Given an array of integers, give the smallest n so that the sum of the first n elements is at least as large as the sum of the remaining elements. Code Completion Given an array of integers, give the smallest n so that the sum of the first n elements is at... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
29 (Preliminary)AverageSpeedInMarathon-CSEdPad Construct a program that calculates the average speed in miles per hour using the values stored in variables given and... AnnEx
30 Insertion Sort Average Case Slideshow Code Tracing Presentation, Algorithm Analysis Presentation Slideshow showing an analysis of Insertion Sort's average-case behavior and cost. OpenDSA Insertion Sort, Average Case
31 Bubble Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Bubble Sort's cost in worst, average, and best cases. OpenDSA Bubble Sort, Worst Case, Average Case, Best Case
32 Exchange Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Echange Sorting cost. OpenDSA Bubble Sort, Worst Case, Average Case, Best Case
33 Selection Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Selection Sort's cost analysis. OpenDSA Selection Sort, Worst Case, Average Case, Best Case
34 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
35 Quicksort Average Case Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the average-case cost of Quicksort. OpenDSA Quicksort
36 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX arrays
37 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
38 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
39 testing_um2_student_average_arun_ch Calculate the student average grade (challenge) PCEX
40 testing_um2_student_average_arun_ex Calculate the Student Average Grade (example) PCEX
41 testing_um2_student_average_arun_ch Calculate the student average grade (challenge) PCEX
42 Calculating the Average of Input Integers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
43 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
44 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
45 Sum and Average Using Loops Python BehaviorExample for demonstrating Sum and Average Using Loops WebEx while loop
46 Calculating Sum/Average of the Array Values Construct a program that computes the sum of all the values in an array. PCEX arrays
47 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
48 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX loops, while loop
49 Calculating Sum/Average of the List Values Construct a program that has a function that receives a list and calculates the sum of the values in that... PCEX list
50 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX arrays
51 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
52 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
53 Calculating the Average of the Input Numbers (Case2) Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
54 Calculating the Average of the Input Numbers (Case 3) Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
55 Calculating Sum/Average of the List Values Construct a program that has a function that receives a list and calculates the average of the values in that... PCEX list
56 Finding the Number of Days Above the Average Temperature Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX arrays
57 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
58 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
59 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
60 Given a two-dimensional array a, return a list whose [i][j] element is the average of the neighbors of a[i][j] in the N, E, S, W direction. Code Completion Given a two-dimensional array a, return a list whose [i][j] element is the average of the neighbors of a[i][j] in... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
61 Best, Worst, and Average cases slideshow Presentation Slideshow illustrating analysis when there are different inputs of a given size. OpenDSA Problem, Algorithm, Program
62 Given an array of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given an array of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Arrays - Simple Exercises, No loops
63 Given an array 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 an array of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Arrays - Simple Exercises, No loops
64 Given a two-dimensional array a, return an array whose [i][j] element is the average of the neighbors of a[i][j] in the N, E, S, W direction. Code Completion Given a two-dimensional array a, return an array whose [i][j] element is the average of the neighbors of a[i][j] in... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
65 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
66 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
67 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
68 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
69 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
70 JSON Aggregate 3 Compute and display the average (mean) age jsParsons json, json-aggregate
71 Dictionary calculations Construct a program that calculates each student’s average score by using `studentdict` dictionary that is already defined as follows: jsParsons classes, data structures, dictionaries, dictionary, stacks
72 Mergesort Analysis Slideshow Algorithm Visualization Slideshow showing a visual analysis of Mergesort best, average, and worst case performance. OpenDSA Mergesort
73 Processing a List of Temperature Values Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX arrays
74 Processing a List of Temperature Values Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX list
75 Converting temperatures Code Completion Your task is to read an input file containing a month name followed by the average maximum temperature for that... CodeCheck Input and Output
76 Determining When a Student Fails a Course (Case 3) Construct a program that determines whether a student fails the course based on the inputs that it receives from the... PCEX boolean expressions
77 PANDAS GroupBy 1 You're provided a dataframe of used cars using pandas. Group the data by 'type' and calculate the average mileage for... jsParsons json, pandas
78 PANDAS Stats 1 You're provided a dataframe of used cars using pandas. Display the first 5 rows and calculate the average mileage of... jsParsons json, pandas, statistics
79 Determining When a Student Fails a Course (Case 3) Construct a program that determines whether a student fails the course based on the inputs that it receives from the... PCEX boolean expressions
80 Pass-Fail Rule (Case 3) Construct a program that determines whether a student fails the course based on the inputs that it receives from the... PCEX boolean expressions, if-else statement
81 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
82 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
83 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
84 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
85 Creating a Dictionary of Student-Scores Pairs Assume we have a list of students and a list of their corresponding test scores. Construct a program that has... PCEX dictionaries, dictionary
86 Processing exam scores Code Completion Your task is to read a file containing exam scores, and to write another file that contains the results of... CodeCheck Input and Output