Your task
1) void PrinList(),
2)int search_Element(int X),3)
void Insert_Element(int X),
4)void
Insert_Element_at(int X, int pos),
5) bool Delete_Element(int X),
6) bool is_Empty(),
7)int Length(),
8) void Print_Reverse_List(),
9) void Empty_List(),
10) void Copy_List(…)
Note:
1)Perform the above tasks for linked list
2)make copy, default and parameterized constructors
3)make a menu in main and call the functions through the manu
4)No global declarations
Write a C++ program that calculates the due amount for a cellular telephone bill. The cell company offers the following two types of services:
The program should ask the user for the type of service (Input the word LOW or HIGH) that he uses and the amount of day minutes and night minutes he consumed and then the program will print the service type (the word LOW or the word HIGH), total number of minutes, and the total amount due.
Write a program to implement bank functionality in the above scenario. Note: Create
few classes namely Customer, Account, RBI (Base Class) and few derived classes (SBI,
ICICI, PNB etc). Assume and implement required member variables and functions in
each class.
The "SUPER GOODS " Pvt. Ltd. manufactures spices for the export market. In the factory, there are two machines called A and B. The following table shows a sample production of each machine in seven days. Day1 Day2 Day3 Day4 Day5 Day6 Day 7 Production of Machine A 160 180 150 110 190 140 165 Production of Machine B 180 100 115 170 155 165 195
Write a program in pseudocode to
• Declare a two-dimensional array to store these data and get user input to load the array. • Find the total production of machine A in the entire week. • Display the highest production and name of the machine that produced it.
Write a program to demonstrate the order of call of constructors and destructors in case of multiple inheritance where one or more base classes are virtual.
Write a user-defined program to declare a class which stores a complex number. Demonstrate the use of constant objects , constant member function and constant arguments, using this class.
Write a program to take input for two integer variables. Assign the value -1 to the variable with higher value using a function.
[Use return by reference ]
Create the classes as per the hierarchy given below. The data members are mentioned along with class name. Include parameterized constructor in all the classes. Input data at run-time for a student, calculate the total marks and percentage and display them.
Student: Name, Roll Number
|
V
Marks: marks in 5 subjects
|
V
Result: total marks, percentage
Create a class employee which stores is name, ID and salary of an employee by user input. The ID should be generated upon the creation of object, starting from 1. Include all the constructors and destructor in the class. Create one object using each of the constructors and display it.