| University | Singapore University of Social Science (SUSS) |
| Subject | FIN312: Mathematics and Programming for FinTech |
Question 1
a) Design and implement a function common_letters(words_list) that returns a list of letters that appear in all the words of words_list.
Requirements:
- Uppercase and lowercase letters are considered the same.
- The result must be in uppercase, sorted alphabetically, and have no duplicates.
For example:

Explanation: The letters that appeared in all three words are ‘A’, ‘L’, and ‘M’ as
highlighted: McDonald’s, HappyMeal, LemonTea.
(b) Given the following 5 test cases, print the results from your function using this code:
for t in cases:
print(f”Result: {common_letters(t)}”)

Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Native Singapore Writers Team
- 100% Plagiarism-Free Essay
- Highest Satisfaction Rate
- Free Revision
- On-Time Delivery
Question 2
(a) Let π΄ = (π1, π2, β¦, ππ) and π΅ = (π1, π2, β¦, ππ) be two points in the π-dimensional space βπ. We can think of each point as a tuple of π real numbers.
Define the proximity-π metric between A and B using the formula:

where the symbol |π₯| represents the absolute value of π₯. The proximity-π metric is a generalized way to measure ‘distance’ between π΄ and π΅.
Example: Suppose π΄ = (1,1) and π΅ = (5,4) in the 2-dimensional plane.
- When p = 1, we get the distance to travel along the lines of a square grid. In this case, π·1 (π΄, π΅) = ππππ₯ππππ‘π¦(1, (1,1), (5,4)) = 7.
- When p = 2, we get the familiar ‘Euclidean distance’ from Pythagoras’ Theorem. In this case, π·2 (π΄, π΅) = ππππ₯ππππ‘π¦(2, (1,1), (5,4)) = 5.

Task: Implement the function ππππ₯ππππ‘π¦(π, π΄, π΅) that takes in an integer π, point A and point B (each represented as a tuple of π real numbers). The function should compute and return the value of π·π (π΄, π΅) using the given formula.
(b) Given the following 5 test cases, print the results from your function using this code:
for p, A, B in cases:
print(f”Result: {proximity(p, A, B):.3}”)

Buy Custom Answer of This Assessment & Raise Your Grades
Get the best value for your money with Singaporeassignmenthelp.com! Our cheap assignment help services are designed to provide you with top-quality academic assistance at a fraction of the cost. With a team of experienced and highly qualified assignment help experts, we guarantee to deliver high-quality and plagiarism-free assignments that meet your academic requirements. Whether you need help with essays, dissertations, case studies, or any other type of assignment, we are here to help you achieve academic success. Contact us today and let us help you get the grades you deserve!
Looking for Plagiarism free Answers for your college/ university Assignments.
- COR1100 Writing and Reasoning Assessment 3 , 2026 | SMU
- LOG206 Transport Management and Technology Group-based Assignment 2026 | SUSS
- NCO212 The βSmart Cityβ and Society Pre-Class Quiz Assignment 2026 | SUSS
- CVEN3501 Water Resources Engineering Coursework Brief 2026 | UNSW
- MKTG101 MarketingΒ Coursework Brief 2026 | Singapore Management University
- NCO102 Effective Writing Tutor-Marked Assignment 1, 2026 | SUSS
- SC1101E Making Sense of Society Written Assignment 1 Brief 2026 | NUS
- BUSM2653 People Analytics Assesment 1 Insightful Analytics Report 2026 | SIM
- MLA604 Maritime Operations Assessment Brief 2026 | MLA College
- ICT226 Enterprise Systems and Integrated Business Process End-of-Course Assessment 2026 | SUSS
