CJCoding With Joseph
TitleTopicsAction
99
Function: Square a NumberComplete the function square so it returns its argument multiplied by itself. Th...
easy○ Not Started
Functions/Methods
Solve
100
Function: Cube a NumberComplete the function cube so it returns its argument raised to the third power....
easy○ Not Started
Functions/Methods
Solve
101
Function: Add Two NumbersComplete the function add so it returns the sum of its two parameters. The main ...
easy○ Not Started
Functions/Methods
Solve
102
Function: Maximum of TwoComplete the function maxOf so it returns the larger of its two parameters. The ...
easy○ Not Started
Functions/Methods
Solve
103
Function: Minimum of TwoComplete the function minOf so it returns the smaller of its two parameters. The...
easy○ Not Started
Functions/Methods
Solve
104
Function: Absolute ValueComplete the function absValue so it returns the absolute value (magnitude) of i...
easy○ Not Started
Functions/Methods
Solve
105
Function: Is EvenComplete the function isEven so it returns 1 if its parameter is even and 0 if i...
easy○ Not Started
Functions/Methods
Solve
106
Function: Sum from 1 to NComplete the function sumTo so it returns the sum of all integers from 1 up to n...
easy○ Not Started
Functions/Methods
Solve
107
Function: FactorialComplete the function factorial so it returns n! (the product of all integers fr...
easy○ Not Started
Functions/Methods
Solve
108
Function: Celsius to FahrenheitComplete the function toFahrenheit so it converts a whole-number Celsius tempera...
easy○ Not Started
Functions/Methods
Solve
109
Function: Rectangle AreaComplete the function area so it returns the area of a rectangle (width times he...
easy○ Not Started
Functions/Methods
Solve
110
Function: PowerComplete the function power so it returns base raised to exp using a loop (do no...
easy○ Not Started
Functions/Methods
Solve
111
Function: Count DigitsComplete the function countDigits so it returns how many digits a positive integ...
easy○ Not Started
Functions/Methods
Solve
112
Function: Is PrimeComplete the function isPrime so it returns 1 if n is a prime number and 0 other...
easy○ Not Started
Functions/Methods
Solve
113
Function: Average of ThreeComplete the function average so it returns the integer average of its three par...
easy○ Not Started
Functions/Methods
Solve
276
Function: Multiply Two NumbersWrite a function `multiply(int a, int b)` that returns the product of `a` and `b...
easy○ Not Started
Functions/Methods
Solve
277
Function: Subtract Two NumbersWrite a function `subtract(int a, int b)` that returns `a - b`. Call it with `20...
easy○ Not Started
Functions/Methods
Solve
278
Function: Is OddWrite a function `isOdd(int n)` that returns `1` when `n` is odd and `0` when it...
easy○ Not Started
Functions/Methods
Solve
279
Function: Double a NumberWrite a function `doubleValue(int n)` that returns `n` multiplied by 2. Call it ...
easy○ Not Started
Functions/Methods
Solve
280
Function: Circle AreaWrite a function `circleArea(double r)` that returns the area of a circle using ...
easy○ Not Started
Functions/Methods
Solve
281
Function: Fahrenheit to CelsiusWrite a function `toCelsius(double f)` that converts Fahrenheit to Celsius using...
easy○ Not Started
Functions/Methods
Solve
282
Function: Triangle AreaWrite a function `triangleArea(double base, double height)` that returns `0.5 * ...
easy○ Not Started
Functions/Methods
Solve
283
Function: Is VowelWrite a function `isVowel(char c)` that returns `1` if `c` is a lowercase vowel ...
easy○ Not Started
Functions/Methods
Solve
284
Function: To UppercaseWrite a function `toUpper(char c)` that converts a lowercase letter to uppercase...
easy○ Not Started
Functions/Methods
Solve
285
Function: Nth Triangular NumberWrite a function `triangular(int n)` that returns the nth triangular number usin...
easy○ Not Started
Functions/Methods
Solve
286
Function: Print a Line N TimesWrite a `void` function `printLines(int n)` that prints `Hi` on its own line `n`...
easy○ Not Started
Functions/Methods
Solve
287
Function: Is DivisibleWrite a function `isDivisible(int a, int b)` that returns `1` if `a` is evenly d...
easy○ Not Started
Functions/Methods
Solve
288
Function: Half a NumberWrite a function `half(double n)` that returns `n` divided by 2. Call it with `1...
easy○ Not Started
Functions/Methods
Solve
114
Function: Greatest Common DivisorComplete the function gcd so it returns the greatest common divisor of two posit...
medium○ Not Started
Functions/Methods
Solve
115
Function: Reverse a NumberComplete the function reverseNum so it returns the digits of a positive integer ...
medium○ Not Started
Functions/Methods
Solve
116
Function: Sum of DigitsComplete the function sumDigits so it returns the sum of the digits of a positiv...
medium○ Not Started
Functions/Methods
Solve
117
Function: Nth FibonacciComplete the function fib so it returns the nth Fibonacci number (1-indexed, whe...
medium○ Not Started
Functions/Methods
Solve
118
Function: Is Palindrome NumberComplete the function isPalindrome so it returns 1 if a positive integer reads t...
medium○ Not Started
Functions/Methods
Solve
119
Function: Count VowelsComplete the function countVowels so it returns how many lowercase vowels (a, e,...
medium○ Not Started
Functions/Methods
Solve
120
Function: Maximum of an ArrayComplete the function maxOfArray so it returns the largest value in an integer a...
medium○ Not Started
Functions/Methods
Solve
289
Function: Maximum of ThreeWrite a function `max3(int a, int b, int c)` that returns the largest of three i...
medium○ Not Started
Functions/Methods
Solve
290
Function: Minimum of ThreeWrite a function `min3(int a, int b, int c)` that returns the smallest of three ...
medium○ Not Started
Functions/Methods
Solve
291
Function: Sum of ArrayWrite a function `sumArray(int arr[], int n)` that returns the sum of the first ...
medium○ Not Started
Functions/Methods
Solve
292
Function: Average of ArrayWrite a function `average(int arr[], int n)` that returns the average of the `n`...
medium○ Not Started
Functions/Methods
Solve
293
Function: Count Even Numbers in ArrayWrite a function `countEven(int arr[], int n)` that returns how many of the firs...
medium○ Not Started
Functions/Methods
Solve
294
Function: Is Leap YearWrite a function `isLeap(int y)` that returns `1` if year `y` is a leap year, el...
medium○ Not Started
Functions/Methods
Solve
295
Function: Clamp a ValueWrite a function `clamp(int x, int lo, int hi)` that returns `lo` if `x` is belo...
medium○ Not Started
Functions/Methods
Solve
296
Function: Sum of Squares from 1 to NWrite a function `sumSquares(int n)` that returns 1^2 + 2^2 + ... + n^2. Call it...
medium○ Not Started
Functions/Methods
Solve
297
Function: Count Occurrences in ArrayWrite a function `countOccurrences(int arr[], int n, int target)` that returns h...
medium○ Not Started
Functions/Methods
Solve
121
Function: Recursive FactorialComplete the function factorial so it computes n! using RECURSION (no loops). Th...
hard○ Not Started
Functions/Methods
Solve
122
Function: Recursive Sum to NComplete the function sumTo so it returns the sum of all integers from 1 to n us...
hard○ Not Started
Functions/Methods
Solve
123
Function: Swap with PointersComplete the function swap so it exchanges the values of two integers using POIN...
hard○ Not Started
Functions/Methods
Solve
298
Function: Recursive PowerWrite a recursive function `power(int base, int exp)` that returns `base` raised...
hard○ Not Started
Functions/Methods
Solve
299
Function: Recursive GCDWrite a recursive function `gcd(int a, int b)` that returns the greatest common ...
hard○ Not Started
Functions/Methods
Solve
300
Function: Reverse a StringWrite a function `reverse(char *s)` that reverses the characters of the string `...
hard○ Not Started
Functions/Methods
Solve