First suggestion:
Post it (after you zip it).
No one can suggest improvements to what they can't see.
Second suggestion:
Be specific about your question. For each program there are an infinite number of ways to write it that will work and be acceptable. If there is something wrong with your operation, then ask about that. To write a program and then say improve it will get you nowhere.
Third suggestion:
Show effort in YOUR work. Most everyone here has a job and gets paid to do these programs. If you succeed, you might be working next to one of these here. No one wants to work with a slacker or wants to do the work for the next person.
Fourth suggestion:
Listen to what other people here state. Your homework is just an exercise to get you to think. There are many real world examples that will make your assignment look like it was missing everything (think diagnostics, alarms, HMI, initializing, and safety).