OFFICE OF ACADEMIC AFFAIRS Reference No. : XMUM.OAA - 100/2/8-V2.0 Effective Date : 23 APRIL 2018 DESCRIPTION OF COURSEWORK Course Code AIT102 Course Name Python and Tensorflow Programming Language Lecturer Zhang Yingqian Academic Session 2021 Sept. Assessment Title Assignment 2 A. Introduction/ Situation/ Background Information This assignment evaluates the students’ understanding of python functions. B. Course Learning Outcomes (CLO) covered At the end of this assessment, students are able to: CLO 1 Demonstrate ability to write, test, and debug Python code. CLO 2 Evaluate the results that source code will produce when executed. CLO 3 Apply algorithms within the constraints of a Python language's syntax and semantics. C. University Policy on Academic Misconduct 1. Academic misconduct is a serious offense in Xiamen University Malaysia. It can be defined as any of the following: i. Plagiarism is submitting or presenting someone else’s work, words, ideas, data or information as your own intentionally or unintentionally. This includes incorporating published and unpublished material, whether in manuscript, printed or electronic form into your work without acknowledging the source (the person and the work). ii. Collusion is two or more people collaborating on a piece of work (in part or whole) which is intended to be wholly individual and passed it off as own individual work. iii. Cheating is an act of dishonesty or fraud in order to gain an unfair advantage in an assessment. This includes using or attempting to use, or assisting another to use materials that are prohibited or inappropriate, commissioning work from a third party, falsifying data, or breaching any examination rules. 2. All the assessment submitted must be the outcome of the student. Any form of academic misconduct is a serious offense which will be penalized by being given a zero mark for the entire assessment in question or part of the assessment in question. If there is more than one guilty party as in the case of collusion, both you and your collusion partner(s) will be subjected to the same penalty. D. Instruction to Students This assignment is an individual assignment. Each student should submit a PDF file in Moodle, while you can type the answer in MS Word or LaTex and convert into PDF or handwrite and scan to PDF. The deadline of Assignment 2 is 18:00, 20th November. Overdue penalty will be given to the assignment that is submitted after the deadline. E. Evaluation Breakdown No. 1. Component Title Assignment 2 TOTAL Percentage (%) 100 F. Task(s) (1)(20marks)Write a function that takes a character (i.e. a string of length 1) and returns True if it is an uppercase letter, False otherwise. (2)(20marks)Define a procedure starts() that takes a list of integers and prints starts to the screen. For example, starts([4, 5, 6]) should print the following: **** ***** ****** (3)(20marks)Define a function reverse() that computes the reversal of a string. For example, reverse("This is a book.") should return the string "koob a si sihT". (4)(20marks)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers. Write a program to meet the requirements: (1) Print "Yes" if N is a palindromic number, or "No" if not. (2) The integer value of N is passed by user input when executing the program. (5)(20marks)Define a function different() that takes two lists and returns True if they have not any member in common, False otherwise. For the sake of the exercise, you should (also) write it using two nested for-loops.