Search Results

Searching for: coding

Individual Exercises

0 / 10

Write a function untilSpace(s) that returns a substring of s starting at the beginning and extending until a space is found. The space is...

0 / 10

Given an array of integers, return the largest value in the array. Assume the array has only posivitive numbers. If the array is empty,...

0 / 10

Given an array of integers, return the smallest value in the array. Assume the array has only posivitive numbers. If the array is empty,...

0 / 10

Write a function first10(s) that returns the first 10 characters of s. If s is longer than 10 characters, just truncate it. If s is...

0 / 10

Complete the class MyClass below by adding a print statement to the run() method. It should print "Hello " followed by the content of the...

0 / 100

Write a function fullWords(s) that returns a string no longer than 20 characters. If the string s is longer than 20 characters, just...

0 / 10

Write a function toTitleCase(s) that returns the s converted to Title Case. Title case has each word in the s with its first letter in...

0 / 10

Given an array of integers numbers, return a new array with just the values in numbers that are odd. The new array should just be of the...

0 / 10

Given two Points p1 and p2, return the slope of the line defined by the two points. If the line is vertical the slope is not defined and...

0 / 10

Given two Points a and b and a delta, return true if the two points are within delta units of each other. That is, return true if the...