Question: The drawFilledRectangle function appearing in Example 1 is a useful function that could be reused in other programs. However, after it executes, the current pen

The drawFilledRectangle function appearing in Example 1 is a useful function that could be reused in other programs. However, after it executes, the current pen colors might be altered. Modify the function definition so that it does not alter the current colors.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!