|
Hi guys, Got a Visual Basic test to do by wedensday, but i dont have the faintest idea on how to do it.
"A company has two schemes for paying monthly shift pay to its employees.
Management are paid a flat rate of £250 per month plus the management rate for the hours that they worked. All other workers get one and a half times their hourly rate (see Table 1 below):
Table 1 Hourly Rate:
Mangement Labourer Turner Fitter
(M) (F) (T) (F)
£30 £15 £20 £25
Note that each category of staff is identified by the single upper case character and that this single character should be used when inputting staff data.
TASK 1
Program Input
You are to design and code a program in VB6 that allows the wages clerk to enter monthly shift data for each employee into the computer as per the examples given below:-
Table 2 Employee Data
Employee No Pay Grade No. of Hrs Worked Total Shift Pay
123 M 40 £1450.00
673 L 30 £675.00
145 F 55 £2062.50
999
(An Employee No of 999 will terminate the user input)
The Employee No should be positive integer in the rage 1 to 999 inclusive. This field is to be validated after entry and if incorrect, an appropriate error message is to be displayed informing the user of the mistake and the field is to be re-entered. Note that Pay Grade and No. of Hrs Worked DO NOT require validation when entered
The Pay Grade should be a single character (M,L,T or F) when entereed.
The No. of Hrs Worked should be a positive integer.
The total Shift Pay for each employee is to be calculated by the program and NOT input by the user.
Program Output
For each employee input, there should be a corresponding line of screen output to a picture box in similar format to that on the previous page i.e. columns of data suitably headed, aligned and formatted.
At the end of the run, the following information is required to output to the picture box:
Total number of employees processed 3
Total monthly shift pay for management £ 1450.00
Total monthly shift pay for other grades £ 2737.50
Total of all shift pay £ 4187.50
Could anybody help me on this please ? I would be very grateful
cheers
| |
Share:
1GB |
Hi guys, Got a Visual Basic test to do by wedensday, but i dont have the faintest idea on how to do it.
"A company has two schemes for paying monthly shift pay to its employees.
Management are paid a flat rate of £250 per month plus the management rate for the hours that they worked. All other workers get one and a half times their hourly rate (see Table 1 below):
Table 1 Hourly Rate:
Mangement Labourer Turner Fitter
(M) (F) (T) (F)
£30 £15 £20 £25
Note that each category of staff is identified by the single upper case character and that this single character should be used when inputting staff data.
TASK 1
Program Input
You are to design and code a program in VB6 that allows the wages clerk to enter monthly shift data for each employee into the computer as per the examples given below:-
Table 2 Employee Data
Employee No Pay Grade No. of Hrs Worked Total Shift Pay
123 M 40 £1450.00
673 L 30 £675.00
145 F 55 £2062.50
999
(An Employee No of 999 will terminate the user input)
The Employee No should be positive integer in the rage 1 to 999 inclusive. This field is to be validated after entry and if incorrect, an appropriate error message is to be displayed informing the user of the mistake and the field is to be re-entered. Note that Pay Grade and No. of Hrs Worked DO NOT require validation when entered
The Pay Grade should be a single character (M,L,T or F) when entereed.
The No. of Hrs Worked should be a positive integer.
The total Shift Pay for each employee is to be calculated by the program and NOT input by the user.
Program Output
For each employee input, there should be a corresponding line of screen output to a picture box in similar format to that on the previous page i.e. columns of data suitably headed, aligned and formatted.
At the end of the run, the following information is required to output to the picture box:
Total number of employees processed 3
Total monthly shift pay for management £ 1450.00
Total monthly shift pay for other grades £ 2737.50
Total of all shift pay £ 4187.50
Could anybody help me on this please ? I would be very grateful
cheers
I would be struggling to complete such an exercise by Wednesday on my own (and I get paid to do this!). If someone here is willing to write out the entire app for you then you are in luck (except for the learning part). Other than that you have a lesson in not leaving things to the last minute. Sorry, but this is too much in too little time.
| | |
Meet me in room B204 at 5:30pm, wear a red hat and bring the briefcase.
| | |
Do you not want help now Kurty boy my old son?
| | Expert 8TB |
Do you not want help now Kurty boy my old son?
Well, he did need it by just over three weeks ago, so perhaps not.
| | |
Well, he did need it by just over three weeks ago, so perhaps not.
Don't get cheeky with me son.
| | Expert 1GB |
Well, he did need it by just over three weeks ago, so perhaps not.
Hi there,
Who is this he / she? Someone closer to you? :)
| | Expert 8TB |
Who is this he / she? Someone closer to you? :)
Who, Kurt? No, I don't know him. Judging from all the "£" symbols, I'd guess he's in the UK somewhere. I'm in Australia.
| | Expert 1GB |
Who, Kurt? No, I don't know him. Judging from all the "£" symbols, I'd guess he's in the UK somewhere. I'm in Australia.
Nah, am not talking about Kurt. I asked if GimpHead is someone known to you. :)
| | Expert 8TB |
Nah, am not talking about Kurt. I asked if GimpHead is someone known to you. :)
Oh.
Nope.
Apart from bits and pieces I've picked up in "chatting" with mmccarthy and NeoPa, I don't know anything about anyone on thescripts.
Well, with the possible exception of Killer42, I suppose. :)
| | Post your reply Sign in to post your reply or Sign up for a free account.
Similar topics
8 posts
views
Thread by Jay |
last post: by
|
46 posts
views
Thread by Herrcho |
last post: by
|
6 posts
views
Thread by sathyashrayan |
last post: by
|
8 posts
views
Thread by Mike S |
last post: by
| | |
26 posts
views
Thread by arnuld |
last post: by
|
16 posts
views
Thread by arnuld |
last post: by
| | | | | | | | | | | |