DAM101 Programming and Algorithms DAM101 Closing Analysis The closing evaluate for this module contains 5 Questions. Please learn each and each of the questions quite and that you can cling to strive ALL of the questions.

DAM101 Programming and Algorithms DAM101 Closing Analysis The closing evaluate for this module contains 5 Questions. Please learn each and each of the questions quite and that you can cling to strive ALL of the questions. The marking rubric will likely be viewed on the evaluate web roar on Canvas.

Submission Necessities Code desires to be submitted within the .ipynb structure. Submit one code file per inquire (4 code recordsdata total, 1 for each and each of the questions 2-5). Document desires to be submitted within the .pdf structure. Documentation Necessities Feedback and docstrings desires to be concise. Feedback and docstrings will must cling a fixed structure at some stage within the solutions. Feedback can cling to level the feature of the code written. Every feature must embody a docstring that explains the goal of the feature, parameters and the return payment. Variable and cling names desires to be descriptive and follow a fixed naming vogue, nonetheless most 25 characters. Tasks

  1. As you total Questions 2 to 5 under, put notes in your salvage decisions, challenges, and solutions. Refine and submit these as a single reflective legend (most 1000 words).

For every and each of Questions 2 to 5, your legend must clearly tackle the following:

i) Existing the reasoning within the encourage of the coding decisions you made. This also can embody the collection of algorithms and data structures, recount of the code or diversified salvage decisions.

ii) Hold on any difficulties confronted while finishing the inquire. Existing how these had been identified and resolved.

iii) Your legend desires to be supported with proof, including code snippets and screenshots. As an instance, these can also level to the errors encountered or sudden outcomes.

iv) It’s compulsory to reference relevant video lectures and the textbook to justify or contextualise your coding decisions. For video lectures, embody the week number, lecture number and approximate timestamp. As an instance:

“I made up our minds to exhaust the len() feature to search out the collection of parts within the record (block 4, lecture 3, 1:35-2:35).”

Command a suitable academic referencing vogue for textbook citations. As an instance:

“I made up our minds to exhaust f-strings capacity for string formatting (Speight, 2020, p. 59).”

Which you can cling to embody references each and each within the text and furthermore in a reference record on the stop.

[16 marks]

  1. i) Write a feature that takes a sequence of integers from person enter the exhaust of the feature in appendix A and retail outlets them in a tuple.

ii) Write a feature that takes a tuple of integers ‘my_tuple’ and an integer ‘k’, and returns the ingredient whose distinction from k is the smallest. If two values are equally conclude, return each and each.

iii) Write the code to envision the code in parts i) and ii). Command 5 as the payment of ‘k’.

iv) File the code in parts i), ii) and iii) as detailed within the Documentation Necessities.

[8 marks]

  1. In this process you are going to must exhaust the insertion form algorithm code from Block 8 Lecture 4.

i) Adjust the insertion form algorithm to form strings in descending record and print the explain of the record after every swap is conducted.

ii) Write the total output produced in fragment i) into a text file named ‘sorting_strings.txt’.

iii) Test the code with the following record of numbers:

[‘by’, ‘the’, ‘just’, ‘this’, ‘work’, ‘sad’, ‘ant’, ‘ten’, ‘trick’, ‘bus’]

iv) File the code in parts i), ii) and iii) as detailed within the Documentation Necessities.

[8 marks]

  1. In this process it’ll be foremost to place conclude enter from a text file and route of it.

i) Develop a feature that reads the contents of the file called ‘text.txt’ the exhaust of the feature in Appendix B.

ii) This feature can cling to then overview if any of the strings within the text file indulge in replica characters. The feature can cling to return a tuple of strings that indulge in the replica characters.

iii) Write code to envision the feature and you also can exhaust the following text for the ‘text.txt’:

Donec vitae magna rutrum ipsum mattis auctor. Pellentesque ultrices elit malesuada massa tincidunt venenatis. Mauris neque diam, fringilla vel nulla in, euismod posuere mauris. Ut molestie odio eget lorem luctus, quis consequat sem maximus. Praesent at molestie nibh. Proin sed hendrerit orci.

Vestibulum venenatis ipsum sit amet pretium maximus. Etiam nisi ipsum, vehicula a placerat ac, viverra sit amet mi. Donec tristique justo pharetra, placerat sapien ac, sollicitudin lectus. In ut porta sem.

iv) File the code in parts i), ii) and iii) as detailed within the Documentation Necessities.

[8 marks]

  1. You are given the following dictionary:

Cookware Appliances Utensils Frying Pan 24.ninety nine

Microwave 89.ninety nine

Spoons Field 5.50

Saucepan 19.ninety nine

Toaster 29.ninety nine

Fork Field 6.50

Wok 29.ninety nine

Blender 49.ninety nine

Knife Field 12.ninety nine

i) Write a program that retail outlets the info above the exhaust of three dictionaries. Print the categories and gadgets within them in an easy to learn structure. After printing, indicate a message confirming that all meals categories had been successfully created.

ii) Write a feature called ‘find_average’, which takes the class title as an argument and returns the sleek (mean) set up of gadgets on this class.

iii) Write a feature called ‘add_product’, which takes ‘class’, ‘title’ and ‘set up’ as arguments and adds the correct entry within the dictionary.

IV) Write the code to envision the feature in fragment ii) the exhaust of the following two names: ‘Utensils’, ‘Containers’ (unfriendly class).  Write code to envision the feature in fragment iii) selecting appropriate values.

v) File the code in fragment i) as detailed within the Documentation Necessities.

QUALITY: 100% ORIGINAL PAPER NO ChatGPT.NO PLAGIARISMCUSTOM PAPER

Best Custom Essay Writing Services

Looking for unparalleled custom paper writing services? Our team of experienced professionals at AcademicWritersBay.com is here to provide you with top-notch assistance that caters to your unique needs.

We understand the importance of producing original, high-quality papers that reflect your personal voice and meet the rigorous standards of academia. That’s why we assure you that our work is completely plagiarism-free—we craft bespoke solutions tailored exclusively for you.

Why Choose AcademicWritersBay.com?

  • Our papers are 100% original, custom-written from scratch.
  • We’re here to support you around the clock, any day of the year.
  • You’ll find our prices competitive and reasonable.
  • We handle papers across all subjects, regardless of urgency or difficulty.
  • Need a paper urgently? We can deliver within 6 hours!
  • Relax with our on-time delivery commitment.
  • We offer money-back and privacy guarantees to ensure your satisfaction and confidentiality.
  • Benefit from unlimited amendments upon request to get the paper you envisioned.
  • We pledge our dedication to meeting your expectations and achieving the grade you deserve.

Our Process: Getting started with us is as simple as can be. Here’s how to do it:

  • Click on the “Place Your Order” tab at the top or the “Order Now” button at the bottom. You’ll be directed to our order form.
  • Provide the specifics of your paper in the “PAPER DETAILS” section.
  • Select your academic level, the deadline, and the required number of pages.
  • Click on “CREATE ACCOUNT & SIGN IN” to provide your registration details, then “PROCEED TO CHECKOUT.”
  • Follow the simple payment instructions and soon, our writers will be hard at work on your paper.

AcademicWritersBay.com is dedicated to expediting the writing process without compromising on quality. Our roster of writers boasts individuals with advanced degrees—Masters and PhDs—in a myriad of disciplines, ensuring that no matter the complexity or field of your assignment, we have the expertise to tackle it with finesse. Our quick turnover doesn’t mean rushed work; it means efficiency and priority handling, ensuring your deadlines are met with the excellence your academics demand.

ORDER NOW and experience the difference with AcademicWritersBay.com, where excellence meets timely delivery.

NO PLAGIARISM