CSSE2310 C programming assignment