Ad

• GetLoweredFirstLetter


Return the first letter of the given word, in lower case.


Input example: " Hello "


Output Example: "h"

• CalculateStudentPoints


Write a program that calculates the total points of a student, based on how many answers he got right/wrong.


For each right answer (O) the student gets 1 point.


For each wrong answer (X) the studend loses 1 point.


If the student did not answer any question, he should lose 1 point.


If the student surpases 5 total points, he should receive 1 aditional point


If the student has lost 5 or more total points, he should be "eliminated"


Input Example: ["O", "O", "X"]


Output example: "1 point"

public class Basic
{  
    public static string GetLoweredFirstLetter(string text) 
    {
        return null;
    }
  
    public static string CalculateStudentPoints(string[] answers) 
    {
        return null;
    }
}

• ToLowerCaseArray


You need to return a string array, lowering the case of every world.


Remove the spaces that can occur in the beginning or ending of a word.


Input example: "HELLO WORLD"


Output Example: ["hello", "world"]


All text will contain a single space as separator

• ToUpperCaseString


Upper case every word in the aray and return a string with the words separated by a single space.


Remove the spaces that can occur in the beginning or ending of a word.


Input example: ["HELLO", "WORLD"]


Output Example: "hello world"

• RemoveUnnecessarySpaces


You need to remove all unecessary spaces from the given text


Including spaces in the beginning and ending of the text


Double or more spaces between the words


Input example: " Hello world "


Output Example: "Hello world"

• GetTheFirstLetter


Return the first letter of the given word


Input example: " Hello"


Output Example: "H"

• UpperCaseFirstLetter


You should transform the given text so the first letter is upper case and the other are lower case.


Remove the spaces that can occur in the beginning or ending of a word.


Input example: "hello"


Output Example: "Hello"

• ToCamelCase


You need to remove every space and also upper case the first letter of every world


Input example: "the apple is very juice "


Output Example: "TheAppleIsVeryJuice"


Spaces can occur multiple time including in the begining and ending

public class Basic
{
    public static string[] ToLowerCaseArray(string text) 
    {        
        return null;
    }
  
    public static string ToUpperCaseString(string[] words) 
    {        
        return null;
    }
  
    public static string RemoveUnnecessarySpaces(string text) 
    {
        return null;
    }
  
    public static string GetTheFirstLetter(string text) 
    {
        return null;
    }
  
    public static string UpperCaseFirstLetter(string text) 
    {
        return null;          
    }
  
    public static string ToCamelCase(string text) 
    {
        return null;
    }
}

• ConvertTextToLong


You will receive a text which you need to convert to a long.


Input example: "105"


Output example: 105


All input will be valid numbers

• ConvertTextToDecimal


You will receive a text which you need to convert to a decimal


Input example: "30.7"


Output example: 30.7


All input will be valid numbers

• ConvertIntToLong


You will receive long which you need to convert to an int


Input example: 57


Output example: 57

• ToUpperCaseArray


You need to return a string array, upper casing every world


Input example: "hello world"


Output Example: ["HELLO", "WORLD"]


All text will contain a single space.
Spaces can occur in the begining or ending of the string

• ToLowerCaseString


Lower case every word in the given aray and return a string with all words separated by a single space.


Remove the spaces that can occur in the beginning or ending of a word.


Input example: ["HELLO", "WORLD"]


Output Example: "hello world"


All text will contain a single space.

• IsUpperCase


Based on a given text, you should:


Return 1 if all letters are upper case.


Return 0 if at least one letter is lower case


Return -1 if the text is either null, empty or only white spaces


Input example: "HELLO"


Output Example: 1

• RemoveUnnecessarySpaces


You need to remove all unecessary spaces from the given text


Including spaces in the beginning and ending of the text


Double or more spaces between the words


Input example: " Hello world "


Output Example: "Hello world"

public class Basic
{  
    public static long ConvertTextToLong(string numberAsText)
    {
        return 0;
    }
  
    public static decimal ConvertTextToDecimal(string numberAsText)
    {
        return 0;
    }
  
    public static long ConvertIntToLong(int number)
    {
        return 0;
    }  
    
    public static string[] ToUpperCaseArray(string text) 
    {
        return null;
    }
  
    public static string ToLowerCaseString(string[] words) 
    {        
        return null;
    }
  
    public static int IsUpperCase(string text)
    {
        return 0;
    }
  
    public static string RemoveUnnecessarySpaces(string text) 
    {
        return null;
    }
}

• ConvertToInt


You will receive a text in which you need to convert to an int.


Input example: "105"


Output example: 105


All input will be valid numbers.

• TransformMinusIntoPlus


You will receive a text in which contains a single minus which needs to be replaced by a plus.


Input example: "111-333"


Output example: "111+333"

• ConvertToDouble


You will receive a text in which you need to convert to a double.


Input example: "15,2"


Output example: 15.2


All input will be numbers with either separator: , or .

• ReturnNumbersAsArray


You will receive a string with numbers which you will need to convert to an array of int.


Input example: "10 20 30 40 50"


Output Example: [10, 20, 30, 40, 50]


The input will always be valid numbers.

• ReturnNumbersAsString


You will receive an int array with numbers which you will need to convert to a single
string following the output example


Input example: [10, 20, 30, 40, 50]


Output Example: "10, 20, 30, 40, 50"

• RemoveDecimalPlace


You will be given a decimal number which you must remove the decimal places


Input example: 10.2


Output example: 10

• EquationResult


You will be given a text wich contains a equation with 2 numbers and one operator: + - * /


You should return the result of the equation


Input example: "10 + 2"


Output example: 12


All input will be valid equations.


If a division by zero would occur, you should return the constant double.NaN

public class Basic1
{  
    public static int ConvertToInt(string numberAsText)
    {
        return 0;
    }
  
    public static string TransformMinusIntoPlus(string text)
    {
        return "";
    }
  
    public static double ConvertToDouble(string numberAsText)
    {
        return 0;
    }
  
    public static int[] ReturnNumbersAsArray(string text) 
    {
        return null;
    } 
  
    public static string ReturnNumbersAsString(int [] numbers) 
    {
        return "";
    }            
  
    public static decimal RemoveDecimalPlace(decimal number)
    {        
        return 0;
    }
  
    public static double EquationResult(string equation) 
    {
        return 0;             
    }
}