An exercise problem drawing a series of horizontal lines using a straight edge or triangle without using…