II bcom-LABPROGRAMS
II bcom-LABPROGRAMS
PRACTICAL PROGRAMS
7.Write a C++ program to accept and display the details of a student using class.
8.Write a C++ program to accept and display the details of an employee using a class
Try by yourself
9. Write a C++ program to count the number of words and characters in a given text.
10.Write a C++ program to compare two strings using string functions.
18. Write a C++ program to check whether a given number is even or odd.
19. Write a C++ program to demonstrate the usage of Inline function.
20. Write a C++ program to demonstrate parameter passing mechanism using pass by value method.
21. Write a C++ program to demonstrate parameter passing mechanism using pass by address method.
22.Write a C++ program to demonstrate the usage of a constructor and destructor in a class.
Try urself(DIY)
25. Write a C++ program to demonstrate the usage of friend function in a class.
26.. Write a C++ program to demonstrate the usage of endl and setw manipulators.
27. Write a C++ program to display employee information using multiple inheritance.
28. Write a C++ program to demonstrate multilevel inheritance.
29. Write a C++ program to create a file.
30. Write a C++ program to check whether a given number is a palindrome or not.
31. Write a C++ program to generate the Fibonacci series using while loop.
32. Write a C++ program to overload + operator to add two complex numbers.
33. Write a C++ program to search for a given element in an array using linear search.
Same as program 24
37. Write a C++ program to demonstrate dynamic memory allocation in c++.
38. Write a C++ program to demonstrate polymorphism by calculating area of rectangle and triangle
using a shape class.
40. Write a C++ program using class to implement basic operations on a stack using arrays.
41. Write a C++ program to display the sizes of various data types in c++ language.
42. Write a C++ program to accept and display employee details using structures.
43. Write a C++ program to find the length of a given string using string functions.
44. Write a C++ program to print the ASCII value of a user entered character.