Solved

ANY ANSWER

Posted on 2000-04-27
14
162 Views
Last Modified: 2010-04-16
CAN ANY ONE ANSWER FAIRY TIMEOUT QUESTION.
0
Comment
Question by:fairy040200
  • 8
  • 6
14 Comments
 
LVL 4

Accepted Solution

by:
jack_p50 earned 2 total points
ID: 2772742
yes
0
 

Author Comment

by:fairy040200
ID: 2772939
Adjusted points from 1 to 2
0
 

Author Comment

by:fairy040200
ID: 2772940
JACK I HAVE TWO HUNDRED POINTS TO GIVE YOU IF YOU CAN ANSWER THIS PASCAL QUESTION FOR ME. I NEED TO WRITE A PROGRAM FOR A AMANUFACTURING COMPANY AND A PROGRAM IS REQUIRED.THE PROGRAM IS REQUIRED TO PRODUCE EVERY WEEK THE AMOUNTS OF SHIFT BONUSES PAID TO EMPLOYEES IN THE WORKSHOP.THERE ARE TWO SHIFTS KNOWN AS THE a SHIFT AND THE b SHIFT.CURRENTLY EMPLOYEES GET PAID AN ATTENDANCE BONUS FOR EACH SHIFT WORKED PLUS AN ADDITIONAL BONUS FOR EVERY FULL HOUR WORKED AFTER THE FIRST SIX HOURS PER SHIFT.THE BONUS RATES FOR BOTH SHIFTS ARE NOT THE SAME.THE INFORMATION ON THE EMPLOYEE SHOULD CONTAIN-CLOCKCARD NUMBER,NAME OF WORKER,NUMBER OF SHIFTS ATTENDED IN THE WEEK,HOURS ATTENDED IN THE WEEK,BONUS FOR ATTITIONAL.CLOCKCARD NUMBER IS 9999.EACH SET OF INPUT DATA WILL CONTAIN ONE WEEKS INFORMATION FOR ONE EMPLOYEE.IT CAN BE ASSUMED THAT EMPLOYEES WILL WORK ONE OF THE TWO SHIFTS.HOWEVER EMPLOYEES ARE REQUIRED TO WORK MIN OF SIX HOURS AND NO MORE THAN TWELVE PER SHIFT.THE ADDITIONAL RATES FOR BOTH SHIFTS ARE BETWEEN ZERO AND TEN POUNDS PER HOUR AND THE ATTENDANCE BONUS RATES FOR BOTH SHIFTS ARE BETWEEN ZERO AND ONE HUNDRED POUNDS.JACK I WOULD BE SO GRAYEFUL IF YOU COULD HELP ME WRITE A PROGRAM FOR THIA QUESTION.LOOKING FORWARD TO HEARING FROM YOU.FAIRY.
0
 
LVL 4

Expert Comment

by:jack_p50
ID: 2776923
FAIRY!

I'LL TRY TO HELP
PLEASE WRITE IN low register!
and now please explain it again, more detailed and structurized, because I didn't understand some points...
what platform is the required program desired to work (dos/win) ?
how the data is inputed and outputed?

so, please comment each aspect of the problem you have, and then i'll help you

see you soon

best regards,
Angel (eternal@mailru.com)
0
 

Author Comment

by:fairy040200
ID: 2777188
hi jacj-p50,thanks for responding to my reply.i need a pascal program coded and i do not know how to go about it.the question is:a manufacturing company require a program to produce every week the amounts of shift bonuses paid to empolyess in the workshop.there are two shifts each day the A shift and the B shift.currently,employees get paid an attendance bonus for each shift worked,plus an additional bonus for every full hour worked after the first six hours per shift.the bonus rates for the B shift will not necessairly be the same as the A shift.the required of shift bonus should contain:-the name and the current date at the top of the screen.one or more lines of information for each worker containing:-clockcard number,name of worker,number if shifts attended in the week,hours attended in the week,bonus attendance in the week,bonus for attioional hours in the week.the items`hours attended` will be repeated depending on the number of shifts worked in the week.the number 9999 will be used as the clockcard number to signfy the end of input data.each set of employees will contain one weeks information for one employee.it can be assumed that employees will work either the A shift or the B shift.however not all employees will work seven days but they are required to work minimum of six hours pre shift and the maximum is twelve hours per shift.the additional hours rates for both shifts are between zero and ten pounds and the attendance rates are between zero and one hundred pounds.jack it has to be in pascal lanauage and i need a program for this question.iwould be ever so grateful if you could help me out on this one.i will owe you one.thanks fairy.  
0
 
LVL 4

Expert Comment

by:jack_p50
ID: 2785394
Have you tried to do this program?
If yes, what problems did you have?
If no, you should firstly try, then (if something goes wrong) request help.
By the way, it seems like a homework assignment, and we here at E-E don't like when some guy says : "I have a homework, I would try to to do it, but I'm too lazy. Expert! Get your ass up and do it for me".
So better explain, what part of it can't you do itself.

See you
Call me Angel
0
 

Author Comment

by:fairy040200
ID: 2785489
OK, I AM NOT ONE OF THEM THAT DOES NOT GIVE SOMETHING A GO BEFORE LOOKING FOR HELP JACK!I WON`T ASK ANYONE FOR THEIR  HELP IF I DIDN`T HAVE TO.WHAT I HAVE SO FAR IS AT THE TOP OF THE PAGE IS PROGRAM:BONUSES,FOLLOWED BY VAR:NAME,AGE,RATE,NET PAY,GROSS PAY.BEGIN INTITIALISE TOTTALS:ENTER WEEK DATE AND WEEK NUMBER:REPEAT,ENTER RATES OF PAY FOR THE TWOO SHIFTS,UNTIL RATES ARE IN VALID RANGE;GET FIRST CLOCKCARD NUMBER;WHILE CLOCKCARD NO <>9999 DO END.BEGIN,WRITE (ENTER NAME OF EMPLOYEES)READLN(NAME)WRITE(ENTER NUMBER OF EMPLOYEES)READLN(10)SUM=0  FOR EMPLOYEE=1 TO 10 DO.BEGIN,WRITE(ENTER HOURS WORKED AND RATE)IF HOURS >40 THEN,GROSS PAY =HOURS*RATE END.GROSS PAY:=(HOURS-40)*(RATE1.5),END ELSE GROSS PAY=HOURS*RATE)IF GROSS PAY>200THEN TAX:=(GROSS PAY-200)*0.20 TO .10+GROSS PAY,END.JACK I WOULD PAY YOU FOR THE ANSWER IF YOU WERE TO HELP ME OUT.I NEED THIS COURSE TO GET A WEEL PAID JOB AND I HAVE A VERY YOUNG CHILD THAT DOES NOT BE WELL AT TIMES.I WOULD BE VERY GRATEFUL IF YOU CAN JUST HELP ME TO THE NEXT STAGE AND I PROMISE I WILL LEARN THE PROGRAM OF BY HEART.I ONLY GOT THE COMPUTER A FEW WEEKS AGO AND I AM  NOT JUST TO IT YET TO WRITE OUT PROGRAMS SO PLEASE FORGIVE ME ON THE WAY I HAVE PRODUCED THE INFORMATION TO YOU.I AM LOOKING FORWARD TO HEARING FROM YOU,FAIRY.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:jack_p50
ID: 2786436
Right now I'm training to my exams, so can help a bit later.
How much time do you have?
Why do you write in high register???

I'll try to help in a day or two...
0
 

Author Comment

by:fairy040200
ID: 2787654
hi jackp50,thanks a million for aggreeing to help me.i need the program as soon as possible but make sure you get  your training done for your exams.when will your exams be finished?if your training is only for another week  i can wait but i will have to it sorted by then.by the way was i on the write track in the way i was programming that?wait to hear from you.thanks fairy.
0
 
LVL 4

Expert Comment

by:jack_p50
ID: 2790289
I'll be available after exams in two-three days.
I'd like to see your way of programming that stuff in a more readable way.
For example, one semantic construction per line (one command/line)...
Can you list it again in that way?
0
 

Author Comment

by:fairy040200
ID: 2790543
hi jack,thanks for getting back to me so soon,i will try and do that for you in a construction way if i can.  program :bonuses   var:name,age,rate,net pay,gross pay; Begin                                    initialise totals:                             enter week date and week number;  [Repeat                              enter rates of pay for the two shifts [until rates are in valid range      Get first clockcard number         While clockcard no<>9999 Do           End.                                   Begin;                                 write(enter name of employee);     readln(name);                        write(enter number of employees);   readln(10);                               sum=oFor employee:1 to 10 do;     Begin                               write:(enter number of shifts worked)readln(3)                           write(enter number of hours attended in  the week)                                 readln(7,8,9);                        if hours >40then;                   bonus pay:=(hours-40)*(rate*1.5);end. else bonus pay=hours*rate.jack i hope this is some help to you.i really do appreciate you helping me out like this.if there is anything i can do for you please let me know.by the way the best of luck in your exams not that you need it with your brains.talk to you soon,fairy.
0
 

Author Comment

by:fairy040200
ID: 2793181
hi jack,if you want me to write that out again i will,i don`t` know what happended.it must be on the computer so late at night.thanks;fairy
0
 
LVL 4

Expert Comment

by:jack_p50
ID: 2796347
thanks for wishing me luck, but what's about some LF/CR?
i mean, don't you mind pressing enter after each program line?
i can't get an idea of your program, most of all that :
    begin      aaaaa;         ssss;         ccccccc;       end;
i want you to do it clear
begin
  aaaaa;
  ssss;
  cccccccc;
end;
got it?
then i'll help you
0
 

Author Comment

by:fairy040200
ID: 2797950
sorry jack,i didn`t mean for it to happen,it was only after i sent the message to you that i noticed and by then it was to late.here i go again,second time lucky.           program bonus:
var:name, age,bonus pay,attendance pay,rate pay;
begin:
initilise totals;
enter date and week number;
[Repeat
enter rates of pay for the two shifts;
[until rates are in valid range;
Get first clockcard number;
while clockcard number<>9999 do;
end.
begin;
write(enter number of employees);
readln(10);
sum=0;
for employee:1 to 10 do;
Begin;
write(enter name of employee):
readln(name);
write(enter hours worked and rate);
if hours >40 then;
gross pay:=(hours-40)*(rate*1.5);
end.
this is all i have got and i do not fully know if i am on the right track.hope you got on well in your exams.jack,i was wondering if we could continue e-mailing each other after all of this is over just as friends.thanks fairy.looking forward to hearing from you.

 
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

A Short Story about the Best File Recovery Software – Acronis True Image 2017
Find out what the Office 365 disclaimer function is, why you would use it and its limited ability to create Office 365 signatures.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now