Source
homework7.cpp
data.txt
Screenshot