Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

ITI1120- Assignment 2

ITI1120- Assignment 2

ITI1120- Assignment 2 Due Saturday; April 10, 2021 @ 11:30 PM

Section A: Important Instructions

1. Read and follow the instructions below carefully.

2. This assignment is worth 7.5% of your grade.

3. Submit your assignment by 11:30 PM Saturday, April 10th, 2021 via Brightspace. Refer

to the course syllabus to understand the policy over late assignment submissions. You can

make multiple submissions, but only the last submission will be graded.

4. Before you can start this assignment, you need to know how to use google Colab or

Jupyter notebook to develop and test your code. Refer to lecture or lab material for help.

5. Assignments must be submitted in a notebook format (file extension .ipynb) using free

resources: either google Colab or Jupyter. The following information must be included at

the beginning of your assignment program:

# Course: IT1 1120

# Assignment number: 4

# Due Date: Sat April 10, 2021 11:30 PM

# Family name, Given name

# Student number

6. This is an individual assignment, NOT a group effort. Review and adhere to course

policies and the university Plagiarism and Academic Integrity policy presented during the

first lecture.

7. The assignment has 4 questions totalling 50 marks. Make sure you’ve written good

docstrings that include:

a. Type contract

b. Function description, including parameter names.

c. Preconditions (if any).

8. Make sure you use the provided master notebook file to document all answers to all

questions.

File name must be formatted a4_xxxxxx.ipynb (where xxxxxx is replaced with your

student number).

You must have minimum one code cell to answer each question. Your submission should

contain AT LEAST 4 cells.

Your program must run without syntax errors. In particular, when grading your

assignment, TAs will first open your file a4_xxxxxx.ipynb with either google Colab or

Jupyter notebook and press Run Module. If pressing Run Module causes any syntax error

for any cell, the grade for that question will be zero.

9. For each of the questions below, test example(s) are provided to test your solution. To

obtain a partial mark your solution may not necessarily give the correct answer on these

tests. But if your solution gives any kind of python error when run on the tests provided

below, that question will be marked with zero points.

10. To determine your grade, your solution will be tested both with examples provided in

each question and with extra examples.

Section B: Assignment Questions

Question 1: (10 marks)

Write a function called tally_scores that takes as a parameter the name of a file that contains a series

of student records and that prints a summary of each student record. A student record will begin with a

name followed by a sequence of integer test scores. The name is guaranteed to be one word and at the

beginning of the line. You may assume that each student has at least one test score. Your function should

produce two lines of output for each student: one showing the student’s name and test scores and a second

line showing the average score.

Order Solution Now