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.
14. Write a program which takesthe radius of a circle as input from the user, passes it to another functionthat computes the area and the circumference of the circle and displays thevalue of area and circumference from the main() function.
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.
25. Create a structure Student
containing fields for Roll No., Name, Class, Year and Total Marks. Create 10
students and store them in a file.
26.Retrieve the student information from file created in previous question and print it in following format:
26.Retrieve the student information from file created in previous question and print it in following format:
27. Copy the contents of one text
file to another file, after removing all whitespaces.
28. Write a function that
reverses the elements of an array in place. The function must accept only one
pointer value and return void.
Comments
Post a Comment