Combine 2 codes

Hello,

This is simple enough…

If you understand all the elements of the code you wrote in each of the sketches just combine them.

If it is not your must you should comment on source of the code.

Be sure to reference the forum when submitting the code to your teacher.

Some generic advice below:

Combine what is in the two setup() functions and do the same for the two draw() functions.

Where there a common elements you can comment them out or delete them.

Make sure the flow of code in setup() and draw() make sense and flows as required.

And voila!

:)