Coding help! Urgent!

I didn’t put the shift and scaling part , but if you want I can put it