C++ Answers

Questions answered by Experts: 9 913

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Write a program to implement circular queue using Arrays.
Write a program for implementation of priority queue with character data elements. Each
element has an integer priority number between 1-5. Implement Enqueue () and Dequeue ()
functions in each of the following cases.
1. Linked list implementation of priority queue.
2. Array implementation of priority queue.
NOTE: No code is required



Consider a avl which is constructed by the following node values:

12,33,44,43,99,0,88,13,43,2,222

Draw the avl and answer the following questions:

1)Draw avl for above data
2)draw diagram after each step

The program should accept 5 records of books and displays them on the screen


a unique and unusual data value that is placed after all actual data is ......?


Create a base class called Shape with two data members of double type

which could be used to compute the area of figures. Derive two specific

classes called Triangle and Rectangle from the base class Shape. Add to the

base class, a member function called Get Data to initialize base class data

members and another member function display Area to compute and display

the area of figures. Make display Area a virtual function and redefine this

function in the derived classes to suit their requirements. Using these three

classes design a program which will accept dimensions of a triangle or

rectangle interactively and display the area.


Write a program to create a class called STUDENT with data members Roll

Number, Name and Age. Using inheritance, create the classes

UGSTUDENT and PGSTUDENT having fields a semester, fees and

stipend. Enter the data for at least 5 students. Find the average age for all

UG and PG students separately.


Modify the program no. 1 as follows:


Derive a class named as CYLINDER from CIRCLE class. Take necessary

data & member functions for this class to calculate the volume of the

cylinder. Show the result by accessing the area method of circle and

rectangle through object of rectangle class and the area of circle and volume

method of cylinder class through the objects of cylinder class.


Modify the program no. 1 as follows:


Derive a class named as BOX from RECTANGLE class. Take necessary

data & member functions for this box class to calculate the volume of the

box. All the data members are initialized through the constructors. Show the

result by accessing the area method of circle and rectangle and the volume

method of box class through the objects of box class.


LATEST TUTORIALS
APPROVED BY CLIENTS