C++ Program list










*

10. WAP to perform following actions on an array entered by the user:
i) Print the even-valued elements
ii) Print the odd-valued elements
iii) Calculate and print the sum and average of the elements of array
iv) Print the maximum and minimum element of array
v) Remove the duplicates from the array
vi) Print the array in reverse order
The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program.


11. WAP that prints a table indicating the number of occurrences of each alphabet in the text entered as command line arguments.






16. Write a menu driven program to perform following operations on strings:
a) Show address of each character in string
b) Concatenate two strings without using strcat function.
c) Concatenate two strings using strcat function.
d) Compare two strings
e) Calculate length of the string (use pointers)
f) Convert all lowercase characters to uppercase
g) Convert all uppercase characters to lowercase
h) Calculate number of vowels
i) Reverse the string






21. Create Matrix class using templates. Write a menu-driven program to perform following Matrix
operations (2-D array implementation) Sum b) Difference c) Product d) Transpose


22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).


23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.




27. Copy the contents of one text file to another file, after removing all whitespaces.






Comments