The document lists various programming assignments for students, including:
1) Creating arrays to store student roll numbers and marks read at runtime.
2) Inserting data into a sorted file.
3) Merging two sorted arrays into a third array.
4) Implementing linear and binary search on arrays.
5) Exchanging string positions in an array using pointers.
6) Creating and writing to a file using functions.
7) Implementing queues and stacks using linked lists and arrays.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
155 views
List of Practicals
The document lists various programming assignments for students, including:
1) Creating arrays to store student roll numbers and marks read at runtime.
2) Inserting data into a sorted file.
3) Merging two sorted arrays into a third array.
4) Implementing linear and binary search on arrays.
5) Exchanging string positions in an array using pointers.
6) Creating and writing to a file using functions.
7) Implementing queues and stacks using linked lists and arrays.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
List of practicals
a college maintains list of its students graduating every
year .At the end of the year, the college produces a report that list the following: Year: No of working graduates: No of non working graduates: Details of top most scorer: Name: Age: Subject: Avg Marks: X% of graduates this year are non working and N% are first division. Write a program for it that uses this inheritance path Person(name,age)=Student(roll no,avg marks)=Grad students(subject,employee) Program to create 2 arrays to store roll no and marks of some students whose numbers would be known at run time. Program to insert data in a sorted file. Merging in arrays (two merge two arrays A in ascending order, B in descending order into third array C we should be in ascending) Linear search in array. Binary search in array. Program to exchange the positions of strings stored in array using array of pointers. Write a program to create file using put(). Write an interactive menu driven c++ program to implement queue using a linked list(insertion,deletion and display). A node consists of character data value. Write an interactive menu driven c++ program to implement circular queue using an array consisting of character data values. Write an interactive menu driven c++ program to implement queue using a linear array.(add,delete and display). Queue is used to store integer. program to check working of constructors and destructors in multiple Each node of a stack contains the following information,in addition to,pointer field: i) Pin code of city ii) Name of the city Give the structure of node for the linked STACK in question. Top is a pointer that points to topmost node of the STACK. Write the following functions: i)PUSH()-To push a node into the STACK,which is allocated dynamically ii)POP()-To remove a node from the STACK,and release the memory. Define a class named HOUSING in c++ with the following descriptions: Private members: REG_NO integer(ranges 10-2000) NAME array of characters(string) TYPE character COST float Public members: Function Read_Data() to read and object of HOUSING type Function Display() to display the details of an object Function draw_Nos() to choose and display the details of 2 houses selected randomly from an array of 10 objects of typing HOUSING. Use random function to generate registration nos. to match with REG_NO from an array.