CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
129
Square MethodComplete the static method Square so it returns its parameter multiplied by itself.
easyNot startedSolve
130
Cube MethodComplete the static method Cube so it returns its parameter to the third power.
easyNot startedSolve
131
Add MethodComplete the static method Add so it returns the sum of its two parameters.
easyNot startedSolve
132
Subtract MethodComplete the static method Subtract so it returns the first parameter minus the second.
easyNot startedSolve
133
Max MethodComplete the static method Max so it returns the larger of its two parameters.
easyNot startedSolve
134
Min MethodComplete the static method Min so it returns the smaller of its two parameters.
easyNot startedSolve
135
Is Even MethodComplete the static method IsEven so it returns true when its parameter is even, false otherwise.
easyNot startedSolve
136
Greeting Method (void)Complete the static method Greet so it PRINTS 'Hello, [name]!' on its own line.
easyNot startedSolve
137
Absolute Value MethodComplete the static method AbsValue so it returns the absolute value of its parameter WITHOUT using Math.Abs.
easyNot startedSolve
138
Sum To N MethodComplete the static method SumTo so it returns the sum of all integers from 1 to n using a loop.
easyNot startedSolve
139
Double It MethodComplete the static method DoubleIt so it returns its parameter times 2.
easyNot startedSolve
140
Is Positive MethodComplete the static method IsPositive so it returns true when its parameter is greater than 0, false otherwise (0 is not positive).
easyNot startedSolve
141
Average of Two MethodComplete the static method Average so it returns the integer average of its two parameters.
easyNot startedSolve
142
To Fahrenheit MethodComplete the static method ToFahrenheit so it converts a Celsius value to Fahrenheit using F = C 9 / 5 + 32.
easyNot startedSolve
143
Factorial MethodComplete the static method Factorial so it returns n!
easyNot startedSolve
144
Sum of Three MethodComplete the static method SumThree so it returns the sum of its three parameters.
easyNot startedSolve
277
Square a NumberCreate a class named MathUtil with a public static method Square that takes one integer parameter n and returns n multiplied by itself.
easyNot startedSolve
278
Add Two Numbers (Practice)Create a class named Calculator with a public static method Add that accepts two integer parameters, a and b, and returns their sum.
easyNot startedSolve
279
Larger of Two Numbers (Practice)Create a class named NumberUtil with a public static method Max that takes two integers, a and b, and returns whichever one is larger.
easyNot startedSolve
280
Check if a Number Is EvenCreate a class named NumberChecker with a public static method IsEven that takes one integer n and returns a bool: true when n is even and false when n is odd.
easyNot startedSolve
281
Build a GreetingCreate a class named Greeter with a public static method Greet that takes a string name and returns a greeting in the form "Hello, NAME!" (a comma and space after Hello, then the name, then an exclamation mark).
easyNot startedSolve
282
Cube a NumberCreate a class named PowerUtil with a public static method Cube that takes one integer n and returns n raised to the third power (n multiplied by itself three times).
easyNot startedSolve
283
Absolute ValueCreate a class named MathHelper with a public static method Abs that takes one integer n and returns its absolute value: the number without its sign.
easyNot startedSolve
442
Is Odd MethodComplete the static method IsOdd so it returns true when its parameter is an odd number and false otherwise.
easyNot startedSolve
443
Multiply MethodComplete the static method Multiply so it returns the product of its two parameters a and b.
easyNot startedSolve
444
Negate MethodComplete the static method Negate so it returns the parameter with its sign flipped: positive becomes negative and negative becomes positive.
easyNot startedSolve
445
Triple MethodComplete the static method Triple so it returns its parameter multiplied by three.
easyNot startedSolve
446
Increment MethodComplete the static method Increment so it returns one more than its parameter.
easyNot startedSolve
447
Last Digit MethodComplete the static method LastDigit so it returns the last digit of a non-negative integer.
easyNot startedSolve
448
Rectangle Perimeter MethodComplete the static method Perimeter so it returns the perimeter of a rectangle given its width and height.
easyNot startedSolve
449
Shout MethodComplete the static method Shout so it returns its string parameter converted to UPPERCASE.
easyNot startedSolve
450
Square Root MethodComplete the static method SquareRoot so it returns the square root of its parameter as a double.
easyNot startedSolve
451
To Celsius MethodComplete the static method ToCelsius so it converts a Fahrenheit temperature to Celsius using the formula (f - 32) 5 / 9 and returns it as a double.
easyNot startedSolve
452
Half It MethodComplete the static method HalfIt so it returns half of its integer parameter as a double (so odd numbers keep their .5).
easyNot startedSolve
453
Percentage MethodComplete the static method PercentOf so it returns what percent part is of whole, using the formula part / whole 100, as a double.
easyNot startedSolve
454
Full Name MethodComplete the static method FullName so it joins a first and last name with a single space between them and returns the result.
easyNot startedSolve
145
Overloaded Area MethodsMethod overloading means two methods can share a name if their parameters differ.
mediumNot startedSolve
146
Power MethodComplete the static method Power so it returns base raised to exp using a loop (no Math.Pow).
mediumNot startedSolve
147
Count Digits MethodComplete the static method CountDigits so it returns how many digits a positive integer has.
mediumNot startedSolve
148
Greatest Common DivisorComplete the static method Gcd so it returns the greatest common divisor of a and b using the Euclidean algorithm (repeatedly replace (a, b) with (b, a % b) until b is 0).
mediumNot startedSolve
149
Repeat String MethodComplete the static method Repeat so it returns the given text repeated n times.
mediumNot startedSolve
150
Reverse a Number MethodComplete the static method Reverse so it returns a positive integer with its digits reversed (leading zeros disappear).
mediumNot startedSolve
284
Sum From 1 to N (Practice)Create a class named SumUtil with a public static method SumTo that takes one integer n and returns the sum of all whole numbers from 1 up to and including n.
mediumNot startedSolve
285
Factorial of a NumberCreate a class named FactorialUtil with a public static method Factorial that takes one integer n and returns n!
mediumNot startedSolve
286
Check if a Number Is PrimeCreate a class named PrimeChecker with a public static method IsPrime that takes one integer n and returns a bool telling whether n is a prime number.
mediumNot startedSolve
455
Is Prime MethodWrite the static method IsPrime so it returns true when its parameter is a prime number and false otherwise.
mediumNot startedSolve
456
Count Vowels MethodWrite the static method CountVowels so it returns how many vowels (a, e, i, o, u, in either case) appear in its string parameter.
mediumNot startedSolve
457
Params Sum MethodWrite the static method Sum using a params int[] parameter so it can accept any number of integer arguments and return their total.
mediumNot startedSolve
458
Swap With Ref MethodWrite the void static method Swap using two ref int parameters so it exchanges the values of the two variables passed to it.
mediumNot startedSolve
459
Divide With Remainder MethodWrite the static method DivMod so it returns the quotient of a divided by b and, through an out int remainder parameter, also reports the remainder.
mediumNot startedSolve
460
Grade Letter MethodWrite the static method Grade so it returns a letter grade for a numeric score: 90 or above is "A", 80-89 is "B", 70-79 is "C", 60-69 is "D", and anything below 60 is "F".
mediumNot startedSolve
461
Sign MethodWrite the static method Sign so it returns 1 when its parameter is positive, -1 when it is negative, and 0 when it is zero.
mediumNot startedSolve
462
Is Leap Year MethodWrite the static method IsLeapYear so it returns true when the given year is a leap year.
mediumNot startedSolve
463
Clamp MethodWrite the static method Clamp so it forces value to stay within an inclusive range: if value is below min it returns min, if it is above max it returns max, otherwise it returns value unchanged.
mediumNot startedSolve
151
Recursive FactorialComplete the static method Factorial so it returns n!
hardNot startedSolve
152
Recursive Sum of DigitsComplete the static method SumDigits so it returns the sum of the digits of a non-negative integer using RECURSION.
hardNot startedSolve
153
Recursive FibonacciComplete the static method Fib so it returns the nth Fibonacci number using RECURSION, where Fib(0) = 0, Fib(1) = 1, and each later value is the sum of the previous two.
hardNot startedSolve
464
Recursive Power MethodWrite the static method Power so it computes baseNum raised to the power exp using RECURSION (no loops).
hardNot startedSolve
465
Recursive GCD MethodWrite the static method Gcd so it returns the greatest common divisor of two non-negative integers using the recursive Euclidean algorithm: when b is 0 the answer is a, otherwise the answer is Gcd(b, a % b).
hardNot startedSolve
466
Recursive Reverse String MethodWrite the static method Reverse so it returns its string parameter reversed, using RECURSION (no loops).
hardNot startedSolve