Coding Task: 02.04 Your Solar System! (with images)

We’re going to revisit your previous 02.02 Your Solar System coding task and add images to the responses.

Your Task

Based on your code for 02.02 Your Solar System, additionally display an appropriate image for each response.

You may use an image search to find the appropriate image URL to include as the argument in the printImage() function.


Below is a demo of how the program should run (try the following planets: mercury, venus, earth and mars)

Scroll to Top