You should base your assignment on the example from the following book: "The C programming Language" By Brian W. Kernighan and Dennis M. Ritchie: the example and its code you can find here.
https://www.powershow.com/view1/21825c-ZDc1Z/You_should_base_your_assignment_on_the_example_from_the_following_book_The_C_programming_Language_By_Brian_W_Kernighan_and_Dennis_M_Ritchie_the_example_and_its_code_you_can_find_here_powerpoint_ppt_presentation
Icons create by Freepik from www.flaticon.com/