I am trying to write a small salary management programm.

When an employee register, a basic salary will declare for him.
There was an option for change salary and also declare new salary effective date.

I can not write it properly.

Please help me with a programm something like this.