Questions: 11 448

Answers by our Experts: 10 707

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 & Filtering

   A class has an integer data member ‘I’ and a function named ‘printNum’ to print the value of ‘I’. Its subclass also has an integer data member ‘j’ and a function named ‘printNum’ to print the value of ‘j’. Make an object of the subclass and use it to assign a value to ‘I’ and to ‘j’. Now call the function ‘printNum’ by this object.




    We want to store the information of different vehicles. Create a class named Vehicle with two data member named mileage and price. Create its two subclasses



*Car with data members to store ownership cost, warranty (by years), seating capacity and fuel type (diesel or petrol).



*Bike with data members to store the number of cylinders, number of gears, cooling type(air, liquid or oil), wheel type(alloys or spokes) and fuel tank size(in inches)



Make another two subclasses Audi and Ford of Car, each having a data member to store the model type. Next, make two subclasses Bajaj and TVS, each having a data member to store the make-type.



Now, store and print the information of an Audi and a Ford car (i.e. model type, ownership cost, warranty, seating capacity, fuel type, mileage and price.) Do the same for a Bajaj and a TVS bike.





Write a program to copy the contents of one file to another

Write a program that contains the following functions



1)Make Binary search tree


2)search element in bst


3)display bst


4)find the maximum value in bst


5)find the minimum value in bst


6)display the leaf nodes



Requirements :


No global decelerations


Run test the functions in main

Write volume function which calculates the volume of sphere rectangle and cylinder using function overloading

Write a c++ program listing courses offered in school


Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, validate it and store it in the array


only if it isn’t a duplicate of a number already read. After reading all the values, display only the unique values that the user entered.



Create a class called Complex to represents complex numbers. Complex class contains following members





1. Two private float data members such as real and imag.





2. Two public member function such as read() to read input for complex numbers from user and print() to print the complex numbers(refer sample output for output format).





3. Two operator functions:





First operator function(it should be friend) is overloading the binary operator + to add and return two complex objects.





Second operator function is overloading the greater than operator(>) to check whether object1 is greater than object2. If object1 is greater than object2, then return true otherwise return false.

Write a C++ Program using Class and Object concept.


Function Type :- No Return Type No arguments


Perform the operations on array. Create three functions for


the following operations.


• 1


st Function to take an array.


• 2


nd Function to print an array.


• 3


rd Funciton to sort array elements and print them.

Make Student an abstract class. Declare gpa() and display() as pure virtual functions in it. Derive semester student, courses student, and new student from base class Student. The display () function should show employee no, employee name, and salary of all employees. (Friend Functions). All the information is store in student.txt and handle through file handling.



LATEST TUTORIALS
APPROVED BY CLIENTS