Cpsc111-Su16-Asg2.docx - CPSC111-Introduction to computing...

This preview shows page 1 - 2 out of 4 pages.

CPSC111-Introduction to computing By Dr. Ahmed Malki – Asg. #2 (Summer-16) Assignment 2 Python Practice: working with functions & Numbers Name: ____________________________ Student number: __ __ __ __ __ __ ASSIGNMENT MARK : ________ / 50 Due Date: Friday, Aug. 5 th As always, all your answers should use functions and every function should have a documentation string explaining the purpose of the function. Use the Python template given below at the top of your program you submit (don’t forget to modify it to include your information; your name and your student number.) # Program: cpsc111-Su16-asg2.py  # Author:  Enter your Name and student number here # Class: CPSC 111 # Date: 25/07/2016  # Task: Assignment #2  # Purpose: Solving simple functions  ___________________ Do not wait until the last minute to do this assignment in case you run into problems. Submit your assignment to the instructor by email at: [email protected] Part 1 - Simple Functions You will write a few Python functions for practice with the language. In your program file, include a Python template comment at the top. [0] Warm-up exercise For some practice using the numerical operators, first type the following at the shell prompt: x1 = 1 y1 = 2 x2 = 4 y2 = 6 1 | am/cpsc111-Su16-Asg2.docx Assigned: Monday, July 25 th

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture