When completed, your program will read a sequence of characters ONE BY ONE ending with ' character and if the character
Posted: Thu Jun 02, 2022 8:25 am
Question 3. In this question, you need to write a function to calculate the sum of squares of even numbers between 0 to N (N is included in the range). Also, you need to write the main function and test your program. Input 35 6 Output 4 20 56 Question 4. In this question, you need to write a function to calculate the sum of even numbers between 0 to N (N is included in the range). Also, you need to write the main function and test your program. Input 356 Output 2 6 12
When completed, your program will read a sequence of characters ONE BY ONE ending with ' character and if the character is a: - Lowercase letter, converts it to its uppercase equivalent and displays on the screen -Uppercase letter, converts it to its lowercase equivalent and displays on the screen -Digit, displays the word equivalent of the digit on the screen (i.e., for "1", display "one") - Other characters, Ignores. (Displays nothing on the screen) The methods will look as seen below: -bool isLower (char ch) -bool isUpper (char ch) -bool isDigit (char ch) -char toLower (char ch) -char toUpper (char ch) - void print Digit (char ch) Input a4 k21h #"tS7Th EeNd!xf52! nUMBER#6! Output AfourktwooneHTsseventHeEnD XFfivetwo Numbersix