added part b functionality
added part c functionality
screenshot of part a program
screenshot of part b program
screenshot of part c program