Robot C++ Program

Job ID: 31668544

Budget: €8 – €30 EUR

You will create a Robot class which will be able to draw a little robot icon at a particular place on the screen. Your robot will alternate drawing from two possible icons to create a small animation. We've provided main.cc that uses your Robot class to draw an animated robot that follows your cursor around.

robot icon

Details
Robot needs a constructor, getters and setters for pixel location, and a drawing function.

Constructor
Your Robot Class constructor should take two string parameters, the filename for the image icon to show first, and the filename for the image icon to show second. Your constructor should save these filenames in member variables but should not construct the images yet.