Hi everyone, hope you guys can help me with this.
Develop a pseudocode algorithm or program to calculate the wages for each employee in the company. Each employee works up to 200 hours gets paid at the normal rate. The hours above 200 is called overtime and is paid at twice the normal rate. The algorithm must accept as input the employee number, the number of hours worked for the month and rate of pay.
Calculate and print the employee number, his regular pay and overtime pay for the month of February.
Desk check the above algorithm / program to ensure that it works properly. Use 5 different data sets to test the algorithm / program. Include an appropriate trace table to test the data inputs against the expected outputs.
Using the programming language Pascal write program code to implement the algorithm in (1) above.
Thanks:thumbup:
pseudocode algorithm NEED HELP!
Started by audiokev, Sep 13 2009 05:01 AM
6 replies to this topic
#1
Posted 13 September 2009 - 05:01 AM
|
|
|
#2
Posted 13 September 2009 - 05:46 AM
What do you have so far?
Have you worked out a few examples on paper?
Have you looked around the forum for similar discussions?
Have you worked out a few examples on paper?
Have you looked around the forum for similar discussions?
#3
Posted 13 September 2009 - 06:02 AM
i dont have anything so far:thumbdown:
I am very busy with other work(Business and Sciences as i am currently in study towards) and i was given this task, i barely have time, and a little confused in the subject:crying:
It's due very soon, and if i dont get it, i might be dropped from the subject, i just need it done ASAP, if this is possible i can understand it better as i teach it to myself with solutions to the questions.
I am very busy with other work(Business and Sciences as i am currently in study towards) and i was given this task, i barely have time, and a little confused in the subject:crying:
It's due very soon, and if i dont get it, i might be dropped from the subject, i just need it done ASAP, if this is possible i can understand it better as i teach it to myself with solutions to the questions.
#4
Posted 13 September 2009 - 06:43 AM
We don't do homework for people. That said, a similar version was discussed here: http://forum.codecal...va-problem.html
#5
Posted 13 September 2009 - 07:23 AM
It's not homework, it's an assignment which i am a little confused in, as said, with the solutions i can teach it to myself and better understand.
#6
Posted 13 September 2009 - 05:26 PM
help?
#7
Posted 13 September 2009 - 07:38 PM
I just finished my first programming class and that looks a lot like homework. I doubt anyone is going to help if you haven't even taken a stab at it.
If I were you, I would atleast set it up. That calculation parts may be a little confusing to you be I'm sure you can atleast declare some variables and get the whole thing kicked off. You already know you're going to need variable names for the employee number, number of hours worked, hours worked and pay rate. And you already know that they must be input. That's a nice chunk of your assignment right there.
Then just use arithmetic like any other math problem to get you started with the program. Like they said above, nobody is going to do it for you. Go as far as you can and when you hit a road block, ask a question.
If I were you, I would atleast set it up. That calculation parts may be a little confusing to you be I'm sure you can atleast declare some variables and get the whole thing kicked off. You already know you're going to need variable names for the employee number, number of hours worked, hours worked and pay rate. And you already know that they must be input. That's a nice chunk of your assignment right there.
Then just use arithmetic like any other math problem to get you started with the program. Like they said above, nobody is going to do it for you. Go as far as you can and when you hit a road block, ask a question.
My Name is Sean and I like codes and stuff...
NoobJunction.com | SuccessOnMyMind.com | ArmedForcesCarClub.com
NoobJunction.com | SuccessOnMyMind.com | ArmedForcesCarClub.com


Sign In
Create Account

Back to top









