By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

VB 6 Exercise Urget help needed

P: 3
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
Oct 30 '06 #1
Share this Question
Share on Google+
9 Replies


100+
P: 1,646
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.
Oct 30 '06 #2

P: 3
Meet me in room B204 at 5:30pm, wear a red hat and bring the briefcase.
Nov 16 '06 #3

P: 3
Do you not want help now Kurty boy my old son?
Nov 22 '06 #4

Expert 5K+
P: 8,434
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.
Nov 24 '06 #5

P: 3
Well, he did need it by just over three weeks ago, so perhaps not.
Don't get cheeky with me son.
Nov 29 '06 #6

sashi
Expert 100+
P: 1,754
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? :)
Nov 29 '06 #7

Expert 5K+
P: 8,434
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.
Nov 29 '06 #8

sashi
Expert 100+
P: 1,754
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. :)
Nov 30 '06 #9

Expert 5K+
P: 8,434
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. :)
Nov 30 '06 #10

Post your reply

Sign in to post your reply or Sign up for a free account.