forrow0 row5 row tablerow21 e Compute and display the total of all the elements

Forrow0 row5 row tablerow21 e compute and display the

This preview shows page 7 - 12 out of 18 pages.

(e) Compute and display the total of all the elements using nested loops. 7
Image of page 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
Image of page 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
Image of page 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
Image of page 10
;
Image of page 11
Image of page 12

You've reached the end of your free preview.

Want to read all 18 pages?

  • Spring '15
  • Letter case, ASCII, len, Lower case

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture