Good Evening,
I need you to only confirm the language you require, as C and C++ are different languages; and you ave effectively specified both for your specification.
I will provide not only complete source code solutions, but I will give you a video walk through of all the code, so you not only understand the code but feel like you own it.
This is clearly "school" work, and as such it will be more important that you digest the solution AND video I will provide.