Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Employee - class and objects #8

Closed
chetannihith opened this issue Oct 22, 2023 · 1 comment · Fixed by #18
Closed

Employee - class and objects #8

chetannihith opened this issue Oct 22, 2023 · 1 comment · Fixed by #18

Comments

@chetannihith
Copy link
Owner

Write a program by creating an 'Employee' class having the following functions and print
the final salary.

  • 'getlnfo()' which takes the salary, number of hours of work per day of employee as parameters

  • 'AddSal()' which adds $10 to the salary of the employee if it is less than $500.

  • 'AddWork()' which adds $5 to the salary of the employee if the number of hours of work per day is more than 6 hours.

@Sarveshk76
Copy link
Contributor

I would like to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants