Computer Science I for majors by James Tam

Return to the course web page

CPSC 231: Mini-Assignment 1

Due Monday Sept 26 at 4 PM

New Concepts to be applied for the assignment

Part I: Writing a Python program with input/output capabilities (4 marks)

Part II: Using the UNIX typescript utility (the first part must be successfully completed to get credit for this second part, 3 marks)

All the steps related to displaying & running a Python program refers to the program created in Part I

  1. Login to your UNIX account*

  2. Navigate to the directory where the Python program created in "Part I" was created*

  3. Start a script session *

  4. Using the UNIX 'cat' utility display the contents of the Python program. (1 mark)

  5. Run the Python program using the 'python' command. (1 mark)

  6. Show the program prompting for user input and display the modified string. (1 mark)

  7. End the script session*

  8. Submit the typescript file (no requirement to submit the Python program in this assignment because the marker can see it in the script although you can submit as well) using D2L as described on the course web page [D2L link]).*

The lines marked with a star '*' don't directly yield any marks but must still be completed in order for Part 1 of the assignment to be marked. You will either receive full marks for a step in Part I or no credit.

Grading

Mark 0 1 2 3 4 5 6 7
Assignment grade point 0 1.0 1.5 2.0 2.5 3 3.5 4.0

Marking spreadsheet