To the faculty page of James Tam Return to the course web page

CPSC 217: Pre-Mini-Assignment 1

Due at 4 PM. For assignment due dates see the main schedule on the course webpage.

New Concepts to be applied for the assignment

Synopsis:

Write a python program that will perform calculations similar to how your term grade with be determined for this class. To reduce the need for implementing similar features over and over your assignment won't include as many grading components. Although it's not identical to what's used this term but similar enough to give you a good idea how your term grade point will be calculated as well as allow you to apply many basic programming tools.

Functional requirements (working features of your program):

Explicit reminder to be awarded credit for the formatting output:

Figures showing the program getting input from the user and displaying program output


Figure 1: Getting input


Figure 2: Output of the original grades, the weighted grades and the term grade point.

Figure 3: Output of a sample solution annotated with the location of where escape codes format the output.

Figure 4: Format specifiers used to align a column

How to do determine 'how you did' on an assignment?

Depending upon the number of assignments the grading for previous assignments may not be released before the next one comes due. Although this can be problematic in assignments where marking is not specified in detail and marking is fairly subjective this should not be a problem this term. You will not only be given a breakdown in how grades will be allocated by program feature in the assignment description (mini-assignments) or a grading Excel sheet will be provided. Also, when writing computer programs for this class you should, if you approach things correctly, know as you submit your work roughly what your assignment grade will be:

Program functionality (implementing working program features)

Style and documentation (non-functional assignment requirements)

Non-functional assignment requirements (style and documentation).

Although it won't affect your grade for mini-assignments you should still practice applying good style in your solution as well as writing documentation. It will keep your skills for the full assignments (when you will be graded on these things) and get you used to having good habits.

Optional python feature that you can use

The calculations for the weighted grade points for each major course component can be long but python won't allow you to simply hit enter and continue a single python instruction on the next line. (You must use the line continuation character (back slash) properly). Here's a [simple example] illustrating how it works.

Marking and grading

Collaboration:

Assignments must reflect individual work; group work is not allowed in this class nor can you copy the work of others. Some "do nots" for your solution: don't publically post it, don't email it out, don't show it to other students.  For more detailed information as to what constitutes academic misconduct (i.e., cheating) for this course please read the following [link].

Method of submission:

You are to submit your assignment using D2L [help link]. Make sure that you [check the contents of your submitted files] (e.g., is the file okay or was it corrupted, is it the correct version etc.). It's your responsibility to do this! (Make sure that you submit your assignment with enough time before it comes due for you to do a check). If don't check and there were problems with the submission then you should not expect that you can "learn your lesson" and simply resubmit.

D2L configuration for this course

(Waived for fall 2022), Late submissions for full assignments  when there is no extension granted: Again let (TA in the tutorial that you are officially registered) know if you do submit late. Make sure you give yourself enough time to complete the submission process so you don't get cut off by D2L's deadline (or your submission will be automatically flagged as late by D2L and it will be graded appropriately)..

Submission received:

On time

Hours late : >0 and <=24

Hours late: >24 and <=48

Penalty:

None

-1 GPA

-No credit (not accepted)

General use of pre-created Python libraries:

Unless otherwise told you are to write the code yourself and not use any pre-created functions (or methods). For most assignments the usual acceptable functions include: print(), input() and the 'conversion' functions such as int(), float(), str(). Look at the particular assignment description for a list of other functions/methods that you are allowed to use and still get credit in an assignment submission. If it's not listed then you should assume that you won't be able use the function and still be awarded credit.