Oops Project
Oops Project
MICRO PROJECT
TITLE OF THE PROJECT
Salary calculation
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Certificate
………………………………..
2
Subject Teacher Head of the Department Principal
MICRO PROJECT
GROUP DETAILS
3
INDEX
Sr.No Name of topic Page no Marks
6.0 Procedure 11
7.0 Skill 12
development
8.0 Teacher 13 to 17
evaluation sheet
4
JSPM’s
1 Computer Processor:Inter®Pentium®[email protected].
system with
Installed Memory-RAM: 4.00GB. 1
broad
specifications System type:32-bit Operating System
2 Software Dev++ -
5
4.0 Actual code
program :
#include<iostream.h>
#include<conio.h>
class Employee
{
char emp_name[30];
int emp_number;
float basic, da, it, gross_salary, net_salary;
public:
void read_emp_details(int count){
cout<<"\n\n*** Enter Employee "<<count<<" Details
***";
cout<<"\nEmployee Number: ";
cin>>emp_number;
cout<<"Employee Name: ";
cin>>emp_name;
6
cout<<"Basic Salary: ";
cin>>basic;
cout<<"\n---- Employee "<<count<<" Datails are saved
----\n\n";
}
float find_net_salary(){
da = basic * 0.52;
gross_salary = basic + da;
it = gross_salary * 0.30;
net_salary = (basic + da) - it;
return net_salary;
}
void display_emp_details(int count){
cout<<"\n\n*** Employee "<<count<<" Details ***\n";
cout<<"\nEmployee Number:"<<emp_number;
cout<<"\nEmployee Name : "<<emp_name;
cout<<"\nNet Salary: "<<net_salary;
cout<<"\n--------------------------\n";
}
7
};
int main(){
Employee emp[100];
int number_of_emp, count;
clrscr();
cout<<"\nPlease enter the number of Employees (Max.
100): ";
cin>>number_of_emp;
for(count=0; count< number_of_emp; count++){
emp[count].read_emp_details(count+1);
}
for(count=0; count < number_of_emp; count++){
emp[count].find_net_salary();
}
for(count=0; count < number_of_emp; count++){
emp[count].display_emp_details(count+1);
}
cout<<"\nPress any key to close!!!";
getch();
8
return 0;
9
6.0 procedure / algorithm for programming
Procedure :
step 1 - Include the required header files (iostream.h,
conio.h, and windows.h for colors).
Step 2 - Create a class Employee with the following
members.
emp_number, emp_name, basic, da, it, gross_salary, and
net_salary as data memebrs
read_emp_details(), find_net_salary(), and
display_emp_details() as member functions.
Step 3 - Implement all the member functions with their
10
respective code.
Step 4 - Create a main() method.
Step 5 - Create an array of class object with a specific size
and number_of_emp as integer.
Step 6 - Read number_of_emp.
Step 7 - Call the read_emp_details() method through the
array of class object from 0 to number_of_emp.
Step 8 - Call the find_net_salary() method through the array
of class object from 0 to number_of_emp.
Step 9 - Call the display_emp_details() method through the
array of class object from 0 to number_of_emp.
Step 10 - returnn 0 to exit form the program execution.
7.0
**********
11
Teacher Evaluation Sheet
12
1 Relevance to the course
2 Literature Survey /
Information collection
3 Project Proposal
4 Completion of the Target as
per Project Proposal
5 Analysis of data and
representation
6 Quality of Prototype/ Model
7 Report preparation
8 Presentation
9 Defense
13
Teacher Evaluation Sheet
14
Teacher Evaluation Sheet
15
16
Teacher Evaluation Sheet
17
18
Micro Project Evaluation Sheet
Process Assessment Product Assessment Total
Marks
Part A - Project Project Par B - Project Individual
Proposal Methodology Report/ working Presentation/ Viva 10
Model
(2 Marks) (2 Marks) (4 Marks)
(2 Marks)
Note: Every course teacher is expected to assign marks for group evaluation in first 3
columns and individual evaluation 4th column
Signature: ………………………
19
20