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 do you see three important security aspects (Confidentiality, Integrity, Availability) while using social media apps like facebook, whatsapp etc? Which of these three is most important to consider? Share your thoughts.



Design a pay roll system to find the employee total salary using single inheritance. The base class employee consisting of data members such as emp_number and emp_name. The derived class salary consisting of data members such as Basic_pay, HRA, DA, PF, Net_pay.

Runtime Input :

1200

Raja

12500

1200

1500

1800

Output :

1200

Raja

12500

1200

1500

1800

17000


Define a class string. Use different constructors and do the following [20 marks]

 - Create un-initialized string objects

 - Create objects with string constants

 - Concatenate two strings

 - Display desired strings


Write a class and member functions for a class complex as follows

Class complex

{

    Int re, img;

     public:

    complex (int =0,int=0);

    complex(complex &);

    void accept();

    void display();

   complex add(const complex &);


Write necessary class and member function definitions for a cricket player object. (Use array of objects).

The program should accept details from user (max 10) : player code, name, runs, Innings, played, number of times not out.

The program should contain following menu:-

 Enter details of players.

 Display average runs of a single player.

Average runs of all players


Create a C++ class mydate with three members dd,mm,yy. Write a menu driven Program with the following options. -Increment date by 1 day. -Subtract 2 days from date. (Use function overloading ).

Create a base class called Shape. Use this class to store two double values that could be used to compute the area of figures. Derive three classes called as triangle, rectangle and circle from the base Shape. Add to the base class a member function get_data() to initialize base class data members and another member function display_area() to compute and display the area of figures. Make display_area() as a virtual function and redefine this function in the derived classes to suit their requirements. Using these four classes, design a program that will accept, dimensions of a triangle and rectangle and radius of circle, and display the area.The two values given as input will be treated as lengths of two sides in the case of rectangles and as base and height in the case of triangles and used as follows : Area of rectangle = x * y Area of triangle = ½ * x * y

Husna Dental is a personal dental clinic that recently operated on 1st January 2015. The payment for

dentistry services at Husna Dental is different based on the type of treatment and patient status.


Types of Treatment and Price

Patient Status Restoration(1) Extraction(2) Scaling(3)

Children(C) RM6.00 RM15.50 RM4.00

Adult(A) RM7.50 RM18.00 RM5.00


Due to the opening ceremony, the discount of 20% will be given for children’s treatment and 15%

discount for adult’s treatment.

Write a C++ program that performs the following.

· Reads the patient's name, patient status, and type of treatment.

· Displays the appropriate message when the user enters an invalid status.

· Calculates the payment before and after discount.

· At the end of the program, displays receipt that contain patient’s name and her/his total

payment after discount.


Develop a code for the hierarchical inheritance for banking account,


· The Bank_ACC base class consisting of data members such as accno and name, and member functions get() and display().


· The SB_ACC derived class inherited from Bank_ACC class, consisting of data members such as roi, and member functions get() and display().


· The CUR_ACC derived class inherited from Bank_ACC class, consisting of data members such as odlimit, and member functions get() and display()

Runtime input

1356

Nitin

6


Declare the class Time consisting of data members hours, minutes and seconds. Invoke a null constructor Time() when an object is created, the parameterized constructor Time(hrs, min, sec) to assign values for the data members and show() member function is used to display the time information in format. Finally free the resources of data objects using destructor member function

Run time input

12

20

65


LATEST TUTORIALS
APPROVED BY CLIENTS