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 the class Employee that has the following member data: employee id, employee name, gender, date of birth, address, contact number, date hired, employee type, position, and salary rate. Define all the accessors and mutators needed for the member data of this class. Test the class by creating an object in the main function and try changing or displaying the values of its member data through its accessors and mutators.


Write a program to overload operators in the same program by writing suitable operator member functions for following set of expressions:

O5= (O1/O2) *(O3+O4)

[Here O1,O2,O3,O4 and O5 are objects of a class “overloading”, and this class is having one integer data member]  


Write a program to overload operators in the same program by writing suitable operator member functions for the following set of expressions:


O5=(O1/O2)*(O3+O4)


(Here O1,O2,O3,O4 and O5 are objects of a class overloading and this class is having one integer data member

Write a program to take input for n number of employee records and write records of all employees in a file named: “record1”. Also write records of all those employees in another file named: “record2” who are taking salary more than 50,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of employee: emp_id, emp_name, emp_experience, emp_salary]


Write a C++program to accept two integers and check if it is greater than or equal to 100. If not, return a message "The number is less than 100". Specify the input of first and second of the possible output.




Using Object-Oriented Programming, develop a programme that implements a part of a Bank management system. The developed programme should consider the following:

1-    An object named Customer for which you need to identify 3 attributes of the object and at least one method.

2- An object named Account includes the account number (int) and the balance (double).

3-     A subclass of Account named Saving includes the account number (int), the balance (double), and the type (string)

4-     A subclass of Account named fixed (fixed deposit) includes the account number (int), the balance (double) and the interest rate (double).



Create a Class Shape having a field shapeType and a function printMyType.Create another class, Square and Rectangle, which inherits the Shape class and has additional fields length and breadth. Both Square and Rectangle classes will have two functions calculateArea, which will return the object's area, and printMyType, which will print the type of the object.Inside the main, first create the object of class Square and have a length equal to 5 and call the printMyType then calculateArea method after creating the object of class Rectangle having the length equal to 5 and breadth equal to 4 and again call the printMyType and calculateArea method.

Considering the Abstraction Principle, perform the following:

a.       [2 Marks] Define an abstract class by the name of Shape, the class consists of an attribute (D) which refers to the dimension and a member function Area().

b.       [2 Marks] Make the function Area a pure virtual function 

c.     [2 Marks] Define a class Circle which is s subclass of the superclass Shape and define the Area inside the class.

d.       [1 Marks] Define a second class Square which is a subclass of Shape and define the area inside it.


Write declaration of binary tree which is suitable for Book pseudo code. Read pseudo code from book (introduction to algorithm edition 3 by thomson) and convert into C++ code. The function need to be implemented. Insertion, Deletion, Maximum, Minimum, Successor. 


Design an algorithm to read a value from the keyboard which represents the name of a shape. Allowed shapes are circle, parallelogram, and triangle, any other shape name should result in an error message being displayed. If the user enters parallelogram, then they should be asked to indicated between rectangle or square. For triangles, only right-angled triangles are allowed.


For each shape the area of the is to be calculated and displayed so the program should prompt the user for any additional information needed to calculate the area based on the shape. The calculated area along with the input from the user should be displayed.



Draw the flowchart and write the pseudocode for the algorithm. Implement the algorithm in C++.



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS