14.Problem statement Write C++ program to store roll numbers of student in array who attended training program in random order. Write function for- a) Searching whether particular student attended training program or not using linear search and sentinel search. b) Searching whether particular student attended training program or not using binary search and Fibonacci search. program #include<iostream> using namespace std; class search { public: int n,i,data[50],son[50],sortdata[50],s; void intake() { cout<<"Enter No. of Elements="; cin>>n; cout<<"\nEnter Elements=\n"; for(i=1;i<=n;i++) { cin>>data[i]; son[i]=data[i]; } } void search_lini(int item) { s=0; for(i=1;i<=n;i++) { if(data[i]==item) ...
6.Problem statement Develop an object oriented program in C++ to create a database of student information system containing the following information: Name, Roll number, Class, division, Date of Birth, Blood group, Contact address, telephone number, driving license no. etc Construct the database with suitable member functions for initializing and destroying the data viz constructor, default constructor, Copy constructor, destructor, static member functions, friend class, this pointer, inline code and dynamic memory allocation operators-new and delete. Program #include<iostream> #include<stdio.h> #include<cstring> using namespace std; class personal; static int count; class person { char *name; int *rollno,*classno; char *bloodgroup,*div; public:person() { ...