Upcoming SlideShare
×

# Oop project report using c++

10,748 views

Published on

This is Object oriented project report and and the Codes in which you can run on any compiler that support object oriented programming i.e Dev C++.

5 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No

Are you sure you want to  Yes  No
• love it

Are you sure you want to  Yes  No
Views
Total views
10,748
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
193
2
Likes
5
Embeds 0
No embeds

No notes for slide

### Oop project report using c++

1. 1. PROBLEM OVERVIEW.Summary of a problem:ICT company has for Departments which are FINANCE , TECHNICALOPERATION , HUMAN RESOURCE AND MARKETING and It has total of 500employees.It has two type of employees who are TEMPORARY and PERMANENT , it take atmost 100 temporary employee and at most 400 permanent employee.For TEMPORARY STAFF each department is paid an hourly rate salary of \$5 forworking 8 hours/day, 24 days in a month. Annual increment of \$0.5/hour is offered toeach temporary staff.  \$ 5 per hour for 8 hours/day in 24 days of a month. Monthly income without annual increment is given as: \$ 5 * 8 hours * 24 days = \$ 960.  Monthly income with annual increment is given as: (\$ 5 * 8 hours * \$ 0.5 * 24 days )+ \$ 960 = \$ 1440.  Annual income with annual increment is given as: \$ 1440 * 12 months = \$4 17,280.Therefore: Total monthly income of the Temporary Staff is \$ 1440. Total Annual Income of a Temporary staff is : \$ 17,280.For PERMANENT STAFF each department is paid a monthly initial salary of \$1500with a 5% annual increment of the basic initial salary. The company has a policy ofawarding each permanent staff a yearly bonus of 10% of the annual salary.  Initial salary : \$ 1500 5% annual increment (each month of all 12 month in a year) =( 5/100) * \$ 1500 = \$ 75 So monthly income with annual increment is given as: \$ 1500 + \$ 75 \$ 1575.  There fore monthly income with annual increment is \$1575. 1
2. 2.  Annual salary income of monthly income without annual increment is given as: \$ 1500 * 12 months = \$ 18,000  Annual salary income of monthly income with annual increment is given as: \$ 1575 * 12 months = \$ 18,900. Bonus (10% of annual salary)= (10/100) * \$ 18,000. =\$ 1,800. Annual income with all increment and bonus is given as: TOTAL INCOME = \$ 18,900 + \$ 1,800. =\$ 20,700.Therefore: Total monthly income of a Permanent Staff is \$ 1575. Total Annual income of the Permanent Staff is \$ 20,700.REQUIREMENT IDENTIFICATION:System to keep Employee’s data including ID number, department name and numberof years a staff has served the company to date (years of service).Also be able to display ID number, department name, years of service, the currentmonthly salary and the annual income of the current year (including bonuses) for eachstaff. Summary structure of ICT Company.KEY: 2
3. 3. HR = HUMAN RESOURCE. TECHN.OP = TECHNICAL OPERATION. DESIGNING.In the Designing , we will consider three Classes which will be DEPARTMENT ,TEMPORARY STAFF AND PERMANENT STAFF. This because in eachdepartment name we will find temporary and permanent employees.Since within Department we will find both temporary and permanent staff thenDEPARTMENT class will be Super Class and TEMPORARY STAFF,PERMANENTSTAFF will be Sub classes that will inherit from DEPARTMENT class. Logical Design of Classes.IDENTIFYING OBJECTS , ATTRIBUTES AND METHODS USED IN CLASSDECLARATION.Object name: DepartmentAtributes:string department_name;string employ_type;string employ_id;int year;Method:void set_data (string e_type,string e_id,string dname,int yr){ department_name=dname; employ_id=e_id; 3
4. 4. employ_type=e_type; year=yr; } string get_department_name(){ return department_name; } int get_year(){ return year; } string get_employ_type(){ return employ_type; } string get_employ_id (){ return employ_id; }Object name: Temporary_staff:public DepartmentMethods:float get_monthly () {return (1440);}float get_annual (){return (17280);}Object name: Permanent_staff:public Department 4