Rewriting old program using functions!Hey guys, my assignment is to rewrite this old program that I wrote by using various types of functi...