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

CPSC 217: Mini-Assignment 3a

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

New Concepts to be applied for the assignment

Only new concepts that need to be applied in the assignment are listed, concepts previously applied in other assignments may need to used in the implementation of your solution.

Functional assignment requirements

Up to this point you have only been using functions that have already been defined with the Python programming language such as: print() and input()For this assignment you will be defining  (writing the body) a new function called smaller(). JT's hint: knowing your terminology is always important before starting an assignment. It is imperative that you complete this prerequisite work for this assignment otherwise you will have trouble understanding the following requirements.

The program already prompts the user for the two numbers, function smaller must take as arguments the two numbers entered by the user and determine which of these values is smaller.

Non -functional assignment requirements (style and documentation).

You should still practice applying good style in your solution as well as writing documentation. Unlike the full assignments you will be just graded on program functionality for the mini-assignments.

Marking and grading

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

Mini-assignments cannot be submitted late for credit

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].

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.