(e) Compute and display the total of all the elements using nested loops. 7
UECS1643Fundamentals Of Programming total += table [row][col]=0; cout << “Total is ” << total << endl; Part B (Programming Exercises) 1.Write a program that accepts a character from the user and displays the next character in the alphabet.Your program should only do this if the input is an alphabetic character. If the character entered is z(orZ), display a(or A ). ; ) ) ; ; ; 8
UECS1643Fundamentals Of Programming 2.Write a program that asks the user to enter a word and displays the word, character by character, withall the letters converted to uppercase.Assume the word will not exceed 20 characters. ; ; 9
UECS1643Fundamentals Of Programming 3.Write a function that receives a string and counts and returns the number of characters in the string. not use any built-in library functions. Do ; ; 4.Write and test a function named countUpperthat has a string parameter. The function counts andreturns the number of uppercase letters in the string. 10
You've reached the end of your free preview.
Want to read all 18 pages?
- Spring '15
- Letter case, ASCII, len, Lower case