473,511 Members | 15,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB 6 Exercise Urget help needed

3 New Member
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
9 2309
willakawill
1,646 Top Contributor
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
GimpHead
3 New Member
Meet me in room B204 at 5:30pm, wear a red hat and bring the briefcase.
Nov 16 '06 #3
GimpHead
3 New Member
Do you not want help now Kurty boy my old son?
Nov 22 '06 #4
Killer42
8,435 Recognized Expert Expert
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
GimpHead
3 New Member
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
1,754 Recognized Expert Top Contributor
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
Killer42
8,435 Recognized Expert Expert
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
1,754 Recognized Expert Top Contributor
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
Killer42
8,435 Recognized Expert Expert
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

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

Similar topics

8
1542
by: Jay | last post by:
Quick scenario followed by details below ASP.NET application and MSDE installed on our Win2k dev server. All is good Replicated this on our Win2.3k production server... problem! Error is 'server...
46
3642
by: Herrcho | last post by:
Hi~ i've studied C for a few months myself, and i'd appreciate it if anyone could improve my coding or correct it. the following is my solution to the K&R exercise 2-3 "Write the function...
6
9353
by: sathyashrayan | last post by:
Dear group, Following is a exercise from a book called "Oreilly's practical C programming". I just wanted to do a couple of C programming exercise. I do have K and R book, but let me try some...
8
3072
by: Mike S | last post by:
Hi all, I noticed a very slight logic error in the solution to K&R Exercise 1-22 on the the CLC-Wiki, located at http://www.clc-wiki.net/wiki/KR2_Exercise_1-22 The exercise reads as...
0
1194
manuleka
by: manuleka | last post by:
hi, got this Java exercise package and don't know where to start! could anyone help... a little explaining will be helpfull... not really familiar with Java Exercise Java Package (ziped):...
5
3019
by: ebrimagillen | last post by:
Hello mates, Just needed a solution on the exercises below. Exercise 2 A classic problem in introductory programming is the grains of rice on a chess board problem. Your program should...
26
2107
by: arnuld | last post by:
this is the programme i created, for exercise 2, assignment 3 at http://www.eskimo.com/~scs/cclass/asgn.beg/PS2.html it runs fine. i wanted to know if it needs any improvement: ...
16
1779
by: arnuld | last post by:
i have created solution which compiles and runs without any error/ warning but it does not work. i am not able to understand why. i thought it is good to post my code here for correction before...
1
4811
by: alternative49e | last post by:
Hello. I'm trying to figure out an exercise. I started working on it but I kind of hit a wall. I'm not very good at the programming thing and the book I have is not very helpful. I could use some...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.