Program - Homework/Mini Quiz Due Day Monday April 24
- Write a function int sum_ASCII(void) that reads a sequence of chars. The input sequence is terminated by '*'.
The function finds and returns the sum of ASCII values of input chars (not including '*')
- Write a function char maxASCII(void) that reads a sequence of chars. The input sequence is terminated by '*'.
The function finds and returns the character with maximal ASCII value. For example, if the input is Aad6*, the function returns d.
- Write a function void menu(int choice) that has one parameter, choice. If choice is 1, the function sum_ASCII will be called and the
sum of ASCII values will be printed, if choice
is 2, the function maxASCII will be called and the character with maximal ASCII value in the input will be printed. For all other values of
choice, the function prints an error message.
- Write main that reads one integer - choice, and calls function menu to execute one of the tasks.