TM112 TMA Spring2019 2020
TM112 TMA Spring2019 2020
TM112
Introduction to Computing and Information Technology 2
Spring 2019/2020
Tutor-Marked Assignment
Cut-Off Date: TBA
Total Marks: 40
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and avoid
plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must
provide all references in case you use and quote another person's work in your TMA. You will be
penalized for any act of plagiarism as per the AOU's rules and regulations.
I hereby declare that this submitted TMA work is a result of my own efforts and I have not
plagiarized any other person's work. I have provided all references of information that I have
used and quoted in my TMA work.
Name of Student:………………………………..
Signature:…………………………………………...
Date:……………………………………………………
Question 1: (20 marks)
You are required to perform a literature search on the internet (e.g. Google,
AOU e-library etc.) and find the relevant technical articles, reports or
publications dealing with the below topic and write a report, using your own
words, answering the following questions.
o If the CA grade is <15 or the Final exam< 20/50, then the letter Grade
is F, and you don’t need to check the below conditions. Otherwise, the
final grade = CA grade + Final exam /2.
o After checking above, the letter grade will be as follows:
✓ If the final grade >=90 ➔ A
✓ If 77<=final grade <90 ➔ B
✓ If 65<=final grade <77 ➔ C
✓ If 50<=final grade <65 ➔ D
✓ If the final grade <50 ➔ F
Using “csv” and “table_utils” modules, you are asked to do the following:
1- Create a text file, Std_Grades, and copy the above data to it.
2- Write a python program that does the following:
a. Read the contents of the file Std_Grades into a new list, std_List and
then print the list.
b. Create a new list, table1, that includes the items of std_List without the
first row that contains the titles.
c. Create a new list, table2, that includes the items of table1 without any
column that is found after the column of the x’s.
d. Create a new list, table3, that will be used to convert the numerical
values of table2 from string to float and then print the list.
e. Create a new list, tableCA, to calculate the CA grade for each student
in table3 and place it in the CA position in the list and then print the list.
f. Create a new list, tableLG, to calculate the letter grade for each
student in tableCA according to the mentioned criteria and place it in
the LGrade position in the list and print the name of the student and
his/her letter grade.
The expected output should be as follows:
[['Name', ' MTA', ' TMA', ' CA', ' Final', ' LGrade', ''], ['Samir', '25',
'18', '0', '60', 'x', ''], ['Abir', '18', '13', '0', '50', 'x', ' '],
['Fouad', '10', '2', '0', '55', 'x', ''], ['Najwa', '15', '14', '0', '53',
'x', ' '], ['Dany', '10', '5', '0', '40', 'x', ''], ['Suzan', '27', '17',
'0', '80', 'x', ' '], ['Jamil', '16', '15', '0', '33', 'x', ''],
['Abdullah', '23', '16', '0', '78', 'x', ''], ['Nawaf', '29', '18', '0',
'92', 'x', ''], ['Yasser', '21', '19', '0', '85', 'x', '']]
[['Samir', 25.0, 18.0, 0.0, 60.0, 'x'], ['Abir', 18.0, 13.0, 0.0, 50.0,
'x'], ['Fouad', 10.0, 2.0, 0.0, 55.0, 'x'], ['Najwa', 15.0, 14.0, 0.0,
53.0, 'x'], ['Dany', 10.0, 5.0, 0.0, 40.0, 'x'], ['Suzan', 27.0, 17.0, 0.0,
80.0, 'x'], ['Jamil', 16.0, 15.0, 0.0, 33.0, 'x'], ['Abdullah', 23.0, 16.0,
0.0, 78.0, 'x'], ['Nawaf', 29.0, 18.0, 0.0, 92.0, 'x'], ['Yasser', 21.0,
19.0, 0.0, 85.0, 'x']]
[['Samir', 25.0, 18.0, 43.0, 60.0, 'x'], ['Abir', 18.0, 13.0, 31.0, 50.0,
'x'], ['Fouad', 10.0, 2.0, 12.0, 55.0, 'x'], ['Najwa', 15.0, 14.0, 29.0,
53.0, 'x'], ['Dany', 10.0, 5.0, 15.0, 40.0, 'x'], ['Suzan', 27.0, 17.0,
44.0, 80.0, 'x'], ['Jamil', 16.0, 15.0, 31.0, 33.0, 'x'], ['Abdullah',
23.0, 16.0, 39.0, 78.0, 'x'], ['Nawaf', 29.0, 18.0, 47.0, 92.0, 'x'],
['Yasser', 21.0, 19.0, 40.0, 85.0, 'x']]
End of Assessment