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

How we can access the private and protected members of class in other class or function without using inheritance. Write Example of Weight class which has two private data members kg and gram.There is a nonmember function AddTen() which object of weight class and adds the values ten to kg and gram.
What is name of class which has only pure virtual functions and how it can be used to implement important concept of object oriented programming called polymorphism. Elaborate with example of shape class having functions draw() and calculateArea().Inherit the Circle, Rectangle and Triangle classes from shape class.
Assume there is an array having 20 different shapes objects. How to draw all of the in single loop
Add to the time class hat has separate int member data for hours, minutes, and Seconds the ability to subtract two time values using the overloaded (-) operator, and to multiply a time value by a number of type float, using the overloaded (*) operator.
Define a class called Point that contains two data members: x and y of float type. Define constructors to initialize the data members. Define a friend function to calculate distance between two point objects. Declare a class DArray which has data member size to store the size of the array, and element - a pointer to point class type. Define 1-arg. constructor that takes size as parameter and allocates memory dynamically to element of given size. Also define destructor to release the memory. Overload [] operator that takes the index position as parameter to manipulate (store/retrieve) the required element in the array. In main create an object of DArray to hold 3 objects of Point type and find the distance between every pair of points.

Add to the time class hat has separate in member data for hours, minutes, and Seconds the ability to subtract two time values using the overloaded (-) operator, and to multiply a time value by a number of type float, using the overloaded (*) operator.



With aid of a diagram, give a brief explanation on the type of busses available on 

modern computer systems and the purpose of the North Bridge and South Bridge. 

Your diagram should clearly show where the bridges are and what connects them


Explain the start-up process of a computer clearly indicating the purpose of the POST, 

BIOS and CMOS.


. Give a brief account on the technology used in Flash memory implementation


Create a class called DIRECTORY with data members, name and phone number. Use member
functions, parameterized constructor to set the details and display() to print the details. In the
main function, create minimum of 5 objects to get the input and store it. Then, write the details
into the binary file called DIRECTORY.TXT. Fetch the data from the file and display it. Write
a function to search for a record using phone number. Use appropriate functions to display the
result.
Baby Life is a newly founded public clinic. They receive at least 40 maternity patients each day.

Create a C++ program that displays a menu to the user. The menu should have three options, namely (1) save patients details, (2) display patient details and (3) for exiting the program. The program should make use of two functions, addPatient () to add patient details. Use an array to store patient details. Then the second function is display patient () which should display the patient details. Ensure that both functions give an option to either add or display the number of patients to be added or displayed. Also, ensure that the program repeatedly shows the list of options until the point option 3 is selected, which terminates the program.
LATEST TUTORIALS
APPROVED BY CLIENTS