The program solves the following problem by modeling the described system: