Jump to content

pseudocode algorithm NEED HELP!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
audiokev

audiokev

    Newbie

  • Members
  • Pip
  • 4 posts
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:

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What do you have so far?
Have you worked out a few examples on paper?
Have you looked around the forum for similar discussions?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
audiokev

audiokev

    Newbie

  • Members
  • Pip
  • 4 posts
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.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
We don't do homework for people. That said, a similar version was discussed here: http://forum.codecal...va-problem.html
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
audiokev

audiokev

    Newbie

  • Members
  • Pip
  • 4 posts
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
audiokev

audiokev

    Newbie

  • Members
  • Pip
  • 4 posts
help?

#7
sdavis2702

sdavis2702

    Learning Programmer

  • Members
  • PipPipPip
  • 93 posts
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.
My Name is Sean and I like codes and stuff...
NoobJunction.com | SuccessOnMyMind.com | ArmedForcesCarClub.com