Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
asking help
#1
Create
a python script which accepts the Employee name (string), Number of
working hours (int), SSS contribution, Philhealth, Housing loan (all
float). Assuming that the employee's rate per hour is 500, your task is
to output the payslip of the employee, containing the employee
information, deductions and employee net salary pay. Note: tax deduction
10% of the Gross Salary for this problem.
Reply
#2
What do you have so far? Start by writing a program where you can enter working hours, and using the assumed rate of 500, calculates pay. After doing that it will be clear how to enter the deductions.
Reply
#3
(Mar-16-2022, 03:17 AM)deanhystad Wrote: What do you have so far? Start by writing a program where you can enter working hours, and using the assumed rate of 500, calculates pay. After doing that it will be clear how to enter the deductions.

PLEASE HELP me.
Reply
#4
No effort, no help. Those are the rules for homework here.
buran and kabeer_m like this post
Reply
#5
@JHONG_JOBANIE1995
Please view the links in my signature and in particular the homework one.
Reply
#6
I think we need to start really basic here.
A program is simply a set of instructions that tell the computer what to do. So, for example, when you want it to get the name from the user you use a line like "name = input("Enter worker name")"
Do that to get each of the data items you are asked to obtain. When the item is a number, use something = int(input("Enter foo")) or something = float(input("foo")).
Think a bit more abstractly. Where I have something in the lines above, give your variables meaningful names. Don't Enter foo, rather Enter Number of Hours.
Get it?
If we outright give you answers here, you will be totally lost within a month of your course. You need to master these tasks before you can move to more complex ones.
We are here to help. We just need you to start, try, and show us what you have been able to do before we can help you get where you need to go.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020