Develop an Employee Database System. The database of Employee should keep
the information of Employees in the file with flowing components,
a. Employee ID
b. Designation
c. Employee Name
d. Grad
e. Date of Employment
f. Basic Pay
g. Allowances
Include in your project add_new_Employee, add_allowance, make_deduction and
show_employee_detail functions

Recommended Answers

All 2 Replies

What's your question? Or do you want someone to do the program for you?

a. Employee ID
b. Designation
c. Employee Name
d. Grad
e. Date of Employment
f. Basic Pay
g. Allowances

Ok, I'll do the Class for you (I haven't compiled this)

class Employee {
        public:
        Employee();
        Employee(char employeeName[], char employeeDesignation[], int employeeGrad, int EmployeeDate, int employeePay, int EmployeeAllowances);

        // the functions that will display the results
        char* getDetails();
       
        // the functions that will set the data
        void set (char employeeName[], char employeeDesignation[], int employeeGrad, int EmployeeDate, int employeePay, int EmployeeAllowances);

        private:
                  char employee_name[50];
                  char employee_designation[50];
                  int employee_grad;
                  int employee_date;
                  int employee_pay;
                  int employee_allowances;
};

Sorry if any of that's wrong, just started classes really. You will need to include the functions (Y) good luck.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.