C Programming Project for NP