Assignment 00 (Due date: Sept. 8, 2024)
Computer Graphics
Assignment 00
Due date: Sept. 8, 2024
 
This assignment is considered a gateway for the future assignments.
This assignment will be graded as pass or fail.
You must submit and pass this assignment, otherwise your future assignments will receive a grade of zero.
 
Objective:
 
  • Verify that you have Python 3.x installed and can run Python programs.
  • Ensure adherence to the Assignment Submission Guidelines.
  • Confirm that you can log into Canvas and upload your assignments.
  • Review and understand the class syllabus.
 
Assignment Task:
Write a program to create the following drawing in a window on your screen:
graphic
 
  • Draw a line from the upper left corner to the lower right corner of the window.
  • Draw another line from the upper right corner to the lower left corner of the window.
  • Draw an oval centered in the middle of the window. The oval's width should be 50% of the window's width, and its height should be 50% of the window's height.
  • Ensure the window is resizable, and all drawn elements adjust their size accordingly.
 
Purpose: 
This assignment provides a foundation and framework for your future work. It will help you:
  • Create a window
  • Add menu items
  • Set up panels, widgets, and buttons
  • Position objects
  • Implement callback routines for button clicks
  • Request user input
  • Create a canvas
  • Draw lines and ovals
  • Query window size
  • Capture mouse clicks
 
How to Proceed:
Be sure to follow these steps and check off each box as you complete them:
  • Download the provided zip file here.
  • Unzip the file. You will find a directory containing a Python file and an MS Word document.
  • Run the Python program to ensure Python is correctly installed.
  • Modify the filenames and update the first four lines of each file according to the Assignment Submission Guidelines.
  • Open the MS Word document, update the first four lines according to the  Assignment Submission Guidelines, enter your last name, first name, and student ID, and save the document.
  • Rename all files according to the Assignment Submission Guidelines.
  • Verify that the program runs correctly after renaming the files.
  • Download and use the provided program to check the format of your submission, ensuring the first four lines of your files are correctly formatted.
  • Zip your files and submit them on Canvas following the Assignment Submission Guidelines.
 
Note:
Adhering strictly to the format specified in the Assignment Submission Guidelines is essential. Submissions are processed automatically based on these guidelines, which means that any deviation from the exact format will prevent your assignment from being properly graded. If your submission does not match the required format precisely, it will be rejected by the system, and you will receive no credit for that assignment. Ensure that you follow every detail of the guidelines to avoid any issues with your submission.