I want you to implement the following function declaration (put the declaration in drawing_functions.h and the definition in drawing_functions.cpp) and then test it. If you haven't realized, when I ask you to test something I mean write a program that uses it and tests that it works even when used in ways that you did not think about initially (like drawing lines from right to left as well as from left to right).
void verticals(fgw: :playpen $\&$, int begin_x, int begin_y, int end $y$, int interval, int count, fgw: :hue);
Let me make certain that you understand the problem. I want a function that will produce a number (given by count) of vertical lines separated by the given interval. The first line must start at (begin_x, begin_y) and end at (begin_x, end_y). Each subsequent line should be an interval to the right of the previous one. For now you can assume that you will not be given a negative count (we are not quite ready to deal with impossible requests), but your solution should be able to handle a negative interval (which should draw successive lines to the left instead of right).
If you think carefully you will find that you can recycle the mechanisms you used in drawing a line and the functions that draw lines (or at least one of them). Good programming builds on what has gone before both by reusing code and reusing ideas.