# Cpsc111-Su16-Asg1.docx - CPSC111-Introduction to computing...

• Test Prep
• 6
• 100% (3) 3 out of 3 people found this document helpful

This preview shows page 1 - 3 out of 6 pages.

CPSC111-Introduction to computing By Dr. Ahmed Malki – Asg. #1 (Summer-16) Assignment 1 Python Practice: functions, strings and Decimal Binary Conversion! Name: Student number: ASSIGNMENT MARK : ________ / 50 Due Date: Tuesday, July 26 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-asg1.py  # Author:  Enter your Name and student number here # Class: CPSC 111 # Date: 18/07/2016  # Task: Assignment #1  # Purpose: Solving simple functions              # parallelogram()____________________________________ # getUserInfo()______________________________________ # conversionProcess()a user-interactive function to     # convert miles to kilometers. 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. Also include each of the following functions. 1. parallelogram() 2. getUserInfo() 3. conversionProcess() 1 | am/cpsc111-Su16-Asg1.docx Assigned: Monday, July 18 th
CPSC111-Introduction to computing By Dr. Ahmed Malki – Asg. #1 (Summer-16) Function Name: parallelogram() Parameters : None Return Value : None