There are different ways of solving this problem. It depends upon how you want your program or how does your professor wants it to be done. The starting point could be visualizing how your program...