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
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