Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I need to write an algorithm to print an employee`s payslip
Anyone can help me?
like just try to explain it and stuff

heres the question im doing:
C#
Employee Name:            John Doe
Month:                               October
Normal Rate:                         20.00
Overtime Rate:                     30.00

Normal Wage Details:
                       Hours Worked:  100                            Normal Wage:   2000

Overtime Wage Details: 
              Hours Worked: 15                                        Overtime Wage:  450


Total Wage:   2450


What I have tried:

i need to print his name, the month, normal and overtime rate and normal and overtime hours worked must be entered by the user.
Posted
Updated 20-Nov-16 13:02pm
Comments
[no name] 20-Nov-16 12:03pm    
Still trying to get us to do your homework assignments for you?
Member 12859642 20-Nov-16 12:48pm    
lol no i just want a tutor like person to explain it to me
[no name] 20-Nov-16 13:18pm    
lol no we are not your teacher. Which you already know.
Member 12859642 20-Nov-16 13:50pm    
yeah but you guys are the knowledgeable ones in this field. That`s why i came here. So people who actually know what they`re doing can explain and help me with code

Print first line.
Print second line.
Continue in this vein until you have printed all the lines.

As you were told yesterday, we do not do your homework.
You would probably find it easier in the long run to actually do it yourself - ignoring that if you don't do it yourself, you're going to have real problems come exam time...
 
Share this answer
 
Comments
Member 12859642 20-Nov-16 12:46pm    
oh no i just wanted someone to explain to me what to do
Member 12859642 20-Nov-16 12:47pm    
thanks
Member 12859642 20-Nov-16 12:48pm    
i got it done, thanks original griff
Let us assume you are a 1st year student who started school in September.

Let us assume you are less than 6 weeks away from your first semester.

Let us assume that you left everything at the last minute and thought that programming is a cinch and you can learn it overnight the day before an assignment is due.

Let us assume that you should consider a different field of study.

Have you considered going into sales or lower management instead of being a delay loaded developer?
 
Share this answer
 
Comments
Member 12859642 23-Nov-16 15:13pm    
i got it done already. thanks and no thanks to that recommendation
We still do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900