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

create a person class with name as data member provide four functions in getname() to get input from user and put name to display output write two virtual functions getdata() and outstanding() where both these functions takes no argument and getdata() returns no value but outstanding returns Boolean value . derive student and professor from person . student class should contain gpa as its float type and overrides the virtual functions appropriately . in professor class provide number of applications as data members and override the virtual functions appropriately . write a main program to declare a array of pointers to person object and depending on the choice from user create either a student object or professor object and store it in person array for n persons and display the details along with whether the person is outstanding or not


Create a person class with name as data member provide four functions in getname() to get input from user and put name to display output write two virtual functions getdata() and outstanding() where both these functions takes no argument and getdata() returns no value but outstanding() returns Boolean value . Derive student and professor from person. student class should contain gpa as its float type and overrides the virtual functions appropriately . In professor class provide number of applications as data members and override the virtual functions appropriately . Write a main program to declare a array of pointers to person object and depending on the choice from user create either a student object or professor object and store it in person array for n persons and display the details along with whether the person is outstanding or not


Write a program having class STRING, With data member which can store character array(Dynamically you can store). It should facility to initialize by parameterize constructor and concatenate STRING objects.


Ex:  STRING  obj1(“OOP”), obj2 (“IN KIIT”);


Obj1 = obj1 + obj2;


Then obj1 should have “ OOP IN KIIT”  string in it.


Write a program class Publisher with data member to store name of publisher, Class Author with data member to store name of author. Now class Book will inherit both classes Publisher, Author and have data member cost of book, and static data member to count number of Book objects created. All data members of class must be initialized by parameterized constructors. Create few objects of class Book in main function and by using static member display how many objects have created. Write suitable functions needed.


Create a class called bMoney. It should store money amounts as long doubles. Use the function ms_to_ld() to convert a money string entered as input into a long double, and the function ld_to_ms() to convert the long double to a money string for display. You can call the input and output member functions getmoney() and putmoney(). overload the operators +,-,*,and / appropriately


write a program for conversion from decimal to binary ,octal and hexadecimal .the program should be developed as follows:

(a).the base class convert has two variables initial and result in which initial is a number before conversion and result is after conversion.

(b). it has two member functions getinit() and getconv() which return the initial value and converted value respectively.

(c). write a function compute which is a pure virtual function that actually does the conversion.

(d). separate derived classes for hexadecimal ,binary, octal, does the conversion by implementing the function compute.

(e). create the objects for each class using new operator.

(f). use the convert class type pointer to call the compute functions of the derived classes.


write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize this data to 0 and another should initialize it to fixed values .another member function should display it The final member function should add two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one should contain today's date and another one should contain your date of birth) and one that isn’t initialized. Then it should compare the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this third variable. Make appropriate member functions const.


Create a class called InputData. It has two private data members data_a and data_b. Set the

values of these two data members by using two public functions get_a() and get_b(). Derive a class

called Arith_Unit from InputData. It contains the functions add(),sub(), mul(),div() to perform

arithmetic operations on data_a and data_b. Derive a class Logic_Unit from InputData. It

contains the functions and(), or() and xor() to perform logical operations on data_a and data_b.

Finally derive a class called ALUnit from Arith_Unit and Logic_Unit classes. It has to perform

arithmetic and logical operations according to the given codes. Choose code 0 to code 6 to perform

the said seven operations. Write sample program to test the ALU class


Create a class called Transmitter. It has three unsigned int private data members: pay_load,


parity and data_packet; It has one function called parity_bit(). It calculates parity bit by XORing




all pay_load bits and assign the value to parity. By using function get pay_load(), pay_load is got.


data_packet is calculated by multiplying parity_bit with 32768 and add the product with (pay_load


– 32768). Create another class called Receiver. It has unsigned int private data members Rx_Pkt


, Rx_Data and E_Flag. Rx_Data is got from Rx_Data as given below. First E_Flag is calculated


from Rx_Pkt by XORing all bits. If E_Flag is zero, then Rx_Data = Rx_Pkt – 32768, Else a


message should warn about corrupted packet. Derive a class called Tranceiver from the above two


classes and check the functionalities. Use any other functions if needed.




Write a program that has a class Train with data members seats_first_class, seats_second_class and seats_ac_2tier and member functions to set and display data. Derive a class Reservation that has data members booked_first_class, booked_second_class and booked_ac_2tier and functions to book and cancel tickets and display status.


LATEST TUTORIALS
APPROVED BY CLIENTS