CheckPoint: Iteration Control StructureResource: Ch. 4 in Extended Prelude to Programming: Concepts andDesign (2nd ed.)Due Date: Day 5 [Individual] forumDesign a program that models the worms behavior in the followingscenario:A worm is moving toward an apple. Each time it moves the worm cutsthe distance between itself and the apple by its own body lengthuntil the worm is close enough to enter the apple. The worm canenter the apple when it is within a body length of the apple.