Relay controlling Capacitor Bank

You had better hurry up and write the sketch then.

If you have already written it and have problems then post the sketch here and tell us what the problems are

Just as a matter of interest, when were you given the assignment ?