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 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 performarithmetic 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 performarithmetic and logical operations according to the given codes. Choose code 0 to code 6 to performthe said seven operations. Write sample program to test the ALU class.

Create a base class called Shape which has two double type values. Use member functions get() and set() to get and set the values. Use a virtual function display_area() to display the area. Derive two specific classes called Triangle and Rectangle from the base class Shape. Redefine display_area() in the derived classes. Write a program to display the rectangle or triangle area


Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array Note: You will receive 4 marks for your explanation and 6 marks for your labelled example.


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.


dentify the purpose and the components of the method represented in the pseudocode below:


Define a class Student with data members as rollno and name. Derive a class Fees from student that has a data member fees and functions to submit fees and generate receipt. Derive another class Result from Student that displays the marks and grade obtained by the student. Write a program that extends the class Result so that the final result of the Student is evaluated based on the marks obtained in tests, activities and sports


Consider the following pseudocode, then write the pseudocode for mainline logic that contains the elements required in Q.4.3.1 to Q.4.3.3.


Define a class Employee with data members as empno, name and designation. Derive a class Qualification from Employee that has data members UG, PG and experience. Create another class Salary which is derived from both these classes to display the details of the employee and compute their increments based on their experience and qualifications.

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. 



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 performarithmetic 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 performarithmetic and logical operations according to the given codes. Choose code 0 to code 6 to performthe said seven operations. Write sample program to test the ALU class
LATEST TUTORIALS
APPROVED BY CLIENTS