seamus123
New member
im doing a VB project for my A-level and i have got stuck on some code.
it has to caluclulate the amount a person gets payed when they are being made redundent depending on their age (i used the date of birth to do this), years servered and their weeks pay
e.g. if i started work in 1980 and i was born in 1960 and my weekly pay was 400 i would get 0.5 x weeks under age of 22: 1 x weeks over age of 22 and under age of 41: and finally 1.5 x weeks over 41
my pay would be ( (2x0.5) + (19x1) + (9x1.5)) x 400 = 13400
it has to caluclulate the amount a person gets payed when they are being made redundent depending on their age (i used the date of birth to do this), years servered and their weeks pay
e.g. if i started work in 1980 and i was born in 1960 and my weekly pay was 400 i would get 0.5 x weeks under age of 22: 1 x weeks over age of 22 and under age of 41: and finally 1.5 x weeks over 41
my pay would be ( (2x0.5) + (19x1) + (9x1.5)) x 400 = 13400