0% found this document useful (0 votes)
77 views1 page

Assignment 4

This document outlines 7 programming assignments: 1) Write a program to find the maximum of two integers using call by reference and value. 2) Write a program to count vowels and consonants in a string. 3) Write a program to count words in a string. 4) Write a program to check if a string is a substring of another string. 5) Write a program to rearrange the characters of a string in alphabetical order. 6) Write a program to check if a string is a palindrome. 7) Write a program to find the occurrences of each alphabet in a string.

Uploaded by

warezisgr8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views1 page

Assignment 4

This document outlines 7 programming assignments: 1) Write a program to find the maximum of two integers using call by reference and value. 2) Write a program to count vowels and consonants in a string. 3) Write a program to count words in a string. 4) Write a program to check if a string is a substring of another string. 5) Write a program to rearrange the characters of a string in alphabetical order. 6) Write a program to check if a string is a palindrome. 7) Write a program to find the occurrences of each alphabet in a string.

Uploaded by

warezisgr8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Class Assignment-4

1. WAP to find maximum of two integers using function call (call by reference and call
by value).
2. WAP which counts the number of vowels and consonants in a string (sentence).
3. WAP which counts the number of words in a string (sentence).
4. WAP to find whether a string is substring or not of a given string.
5. WAP which will read a string (word) and rewrite it in the alphabetical order.
6. WAP to find the entering string (word) is palindrome or not.
7. WAP to find the occurrences of alphabets in a string.

You might also like