can someone please give me a copy of a code of it?
The code is on the last page of the instructable.
the components used is 74hc595...
The code will not work with 74hc595. It was written for 74hc238.
74hc595 is a shift register and 74hc238 is a decoder. The code would have to be significantly re-written to use 74hc595. I do not think 3 days will be enough, even if you get lots of help here. The only way to change the code in 3 days will be for someone here to re-write the code for you. I do not think your prof would approve.
Suggest you find another led cube design that you have the components for. There must be some that use 74hc595.