



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Files to submit: 1. HW1.py
2. face.py
Collaboration at a reasonable level will not result in substantially similar code. Students may only collaborate with fellow students currently taking CS 1301, the TA's and the lecturer. Collaboration means talking through problems, assisting with debugging, explaining a concept, etc. You should not exchange code or write code for others. For Help:
You will write a few python functions for practice with the language. In your HW1.py file, include a comment at the top with your name, section, GTID/Email, and your collaboration statement. Also include each of the following functions.
may assume that the user will enter a valid float (e.g. 34.4) and do not have to do error checking.
programming your robot and making graphics. See the documentation here: http://wiki.roboteducation.org/Myro_Reference_Manual For this assignment, we will be focusing on the graphics aspect of myro, so you won’t need your robot. Both the link given above, as well as the PDF for the Myro Graphics Reference will be rather helpful.
Files to submit: face.py Your mission, should you choose to accept it (and we recommend that you do), is to make a face in Python. You need to create a program that initializes a graphics window, and draws the face. When you are done, save your program as “face.py”. Make sure that your filename matches this exactly, or you will lose points! Don’t forget to include any necessary import statements needed to use myro functions. The face should contain:
kilometersToMiles 5 sphereVolume 10 timeCleanup 20
bodyMassIndex 15
50 points File named correctly (face.py) – 5 points Creates a graphics window – 10 Draws a head – 6 Draws 2 eyes – 6 Draws a nose – 6 Draws a mouth – 6 Uses at least 2 different colors - 6 The facial features are properly aligned – 5 Total for Face: 50 points You can earn up to 3 points bonus [discretion of the TAs] for extra creativity/general awesomeness, for a possible total of 103/100.