CSE 101 -- Prog 0

Due before midnight, Sunday, October 03, 2021.
Late submissions will not be accepted/graded.

Change Log:

Objectives:

Brush up on C and recursion. You will also need to brush up a bit on geometry (lines and slopes) and learn a bit of computer graphics along the way.

Description:

In this programming assignment, you will be generating graphics patterns procedurally. Specifically, you will be writing code to draw successively smaller squares. Each smaller square starts off a fraction along the edge of its larger version. Note that there are multiple implementation options e.g. iterative and rotating a smaller version of the larger squares. However, for this assignment, you are required to implement a recursive version. And rather than using rotations, you will have to use fractions. See input requirements below.

Details:

Tutorial/Startup code:

  • Geometry review:

  • Naming:

  • Input/Output:

    Grading:

    Submission:

    Make sure that you've compiled and tested your code on the campus unix timeshare before submitting. On the unix timeshare, put materials in a folder named prog0 and zip it up.

    submit cse101-ap.f21 prog0 prog0.zip

    You can submit as often as you want up until the deadline. We will only look at your most recent submission.

    After each submission, you should get a message like:

    Submitting the files you specified...
    copying prog0.zip
    
    1 File submitted: 
      prog0.zip (revision XXX)
    
    where XXX is the number of times you have submitted.

    Read the instructions on how to submit your work.


    Last modified Monday, 04-Oct-2021 06:19:57 PDT.