University | The Royal Melbourne Institute of Technology (RMIT) |
Subject | Introduction To Programming |
Introduction To Programming Course Work, RMIT, Singapore Define a function named “coverage” which takes a list of integers as a parameter. This function will then calculate and store
- Define a function named “coverage” which takes a list of integers as a parameter. This function will then calculate and store the average into a variable named “result”. Finally, the function MUST return the result with 2 decimal places only. For Example, given the following list, [2,6,8,3,4,6], the function will return 4.83.
- Define a function named “count character” that accepts a sentence as a parameter and calculate the total number of letters, total number of uppercase letters, total number of lowercase letters, the total number of digits, and the total number of characters that do not letter and not digit.
The function will then return a list of integers representing the total number of letters, number of letters with uppercase and lowercase, number of digits, and any other character besides letters and digits.
Suppose the following input is supplied to the function
“Hell0 WorlD!!! 4567” the function will return a list with the following values
[9, 3, 6, 5, 4]
- Define a function named “excludeItem” which takes two parameters (item1 & item2) and both are listed. This function will create a separate list named “result” which only includes items found in both lists. The result list should not have duplicate values.
For example, given item1 = [1,2,3,4,2,1] while item2 = [2, 4, 4, 2]. This function will return a result of [2,4]. Note that the output value is unique. The function must be able to accept other parameters as well i.e. list of strings or a mixture of strings and digits.
- Define a function named “second large” which takes a list of numbers as a parameter. This function will then identify and return the 2nd largest number in the list. The function will return the smallest number if the parameter only contains two numbers. While the function will return the only number if the list contains only a single number. In some odd cases, the function will return -999 if the parameter contains another datatype i.e. string or float in the list.
FOR EXAMPLE:
- [1,2,3,4,5,6] returns 5
- [6,8,3,4,6] returns 6
- [53, 23] return 23
- [13] return 13
- [12, ‘not number’, 23] return -99220
- Define a function named “invalid password” which takes a string as a parameter. The function will then check if the supplied string fulfilled the following password criteria:
- must-have combination of uppercase and lowercase
- must have at least 3 digits
- must have at least 2 special characters.
- must have at least 10 characters
The function will return a Boolean value i.e. True if all criteria are met or return False otherwise.
Make sure you test your function with every single possible input that may return a False value as well.
Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers
Maximize your academic success in Singapore with our specialized offerings! We specialize in providing comprehensive solution of summative assignments, offering the assistance of a dedicated assignment helper. At The Royal Melbourne Institute of Technology (RMIT), excel in Introduction To Programming confidently. From cracking complex problems like the "coverage" function to acing your coursework, our experts are here to guide you. Singapore students can now enlist our professionals and pay for expert guidance to ensure excellence in their courses. Don't let academic hurdles impede your progress—join us for unparalleled support, including our trusted Report Writing Service and more!
- ELG101: Discovering Language Assignment, SUSS, Singapore: Speakers are creative users of the languages they speak. In our everyday interaction
- ELG101: Discovering Language Assignment, SUSS, Singapore: Demonstrate the articulation of the words in the above data set using the International Phonetic
- Principles of Project Management Individual Assignment, SUSS, Singapore: You are appointed a Project Manager in charge of organising and planning a project
- COR2223: Frontiers of Modern Computing Final Written Assignment, SMU, Singapore: Write a short story imagining a future scenario and how one or more of the modern computing technologies
- AC2101: Accounting Recognition and Measurement Assignment, NTU, Singapore: If NTU-C were to record the abovementioned transactions on 31 January, 28 February and 15 March 20×2
- BSE217: Motor Development, Control and Learning Assignment, SUSS, Singapore: Create a rating scale or categories of differentiation to rate the movement proficiencies of the individual
- BSE217: Motor Development, Control and Learning Assignment, SUSS, Singapore: Discuss the main theoretical foundations of Ecological Dynamics Theory
- NCO201: Learn To Learn, Learn For Life Tutor-Marked Assignment 2, SUSS, Singapore: Create a learning plan. Use this template to create your learning plan
- NCO201: Learn To Learn, Learn For Life Tutor-Marked Assignment 2, SUSS, Singapore: Self-reflection is a critical part of learning. By looking back at your process and analysing
- BPM301: LCC and Sustainable Design and Construction Assignment, SUSS, Singapore: A developer is building a new 3-storey sports complex on a 10-year leasehold land
UP TO 15 % DISCOUNT