CS 199: SPST Games ~~~~~~~~~~~~~~~~~~ Assignment 12: ~~~~~~~~~~~~~ - Examples of all these tasks are available on "PSU CS199" Task 1: ~~~~~~~ - Create a function that takes 1 integer parameter, x, and returns the sum of all integers between 1 and x. - Use this function to calculate the sum of all numbers from 1 to 100, and 1 to 50 Task 2: ~~~~~~~ - Create functions isEven() and isOdd(), that each take an integer parameter. isEven() should return TRUE if you pass it an even number, and FALSE otherwise. The isOdd() function should return the opposite. - Demonstrate these functions work with a few tests