Group Assignment
Assessment Details and Submission Guidelines | |
Trimester | T3 2024 |
Unit Code | HS1031 |
Unit Title | Introduction to Programming |
Assessment Type | Group Assignment |
Due Date + time: | 24January 2025 11.59 pm (Melb / Sydney time) |
Purpose of the assessment (with ULO Mapping) | This assignment evaluates student’s understanding of basic programming principles using Python programming language. In particular, it assesses student’s ability to develop algorithms,problem solve, runningscripts and write meaningful comments, while being an active member of a team. |
Weight | 40 % |
Total Marks | Assignment (40 marks) (if also presentation component, please add here) |
Word limit | N/A |
Submission Guidelines |
|
Academic Integrity Information | Holmes Institute is committed to ensuring and upholding academic integrity. All assessments must comply with academic integrity guidelines. Please learn about academic integrity and consult your teachers with any questions. Violating academic integrity is serious and punishable by penalties that range from deduction of marks, failure of the assessment task or unit involved, suspension of course enrolment, or cancellation of course enrolment. |
Penalties |
|
Assessment Details and Submission Guidelines | |
Trimester | T3 2024 |
Unit Code | HS1031 |
Unit Title | Introduction to Programming |
Assessment Type | Group Assignment |
Due Date + time: | 24January 2025 11.59 pm (Melb / Sydney time) |
Purpose of the assessment (with ULO Mapping) | This assignment evaluates student’s understanding of basic programming principles using Python programming language. In particular, it assesses student’s ability to develop algorithms,problem solve, runningscripts and write meaningful comments, while being an active member of a team. |
Weight | 40 % |
Total Marks | Assignment (40 marks) (if also presentation component, please add here) |
Word limit | N/A |
Submission Guidelines |
|
Academic Integrity Information | Holmes Institute is committed to ensuring and upholding academic integrity. All assessments must comply with academic integrity guidelines. Please learn about academic integrity and consult your teachers with any questions. Violating academic integrity is serious and punishable by penalties that range from deduction of marks, failure of the assessment task or unit involved, suspension of course enrolment, or cancellation of course enrolment. |
Penalties |
|
Specific Instructions |
|
Note:Most of the constructs you may need to solve the problems in this assignment have already been covered in your lectures and/or tutorials. However, please note that some concepts may require extra research, which is part of your learning experience.
Question 1 (10 marks)
Save your file for this program as findDuplicates.py
Write a Python function (called findDuplicates()) that takes a list of integers as input and returns a list containing all the duplicate elements from the input list. If there are no duplicates, the function should return an empty list.
For example,
![]() |
Start by writing an algorithm for solving the problem (i.e. set of steps to the problem). Copy both the algorithm and your script to the answer sheet. You must submit both, your answer sheet and .py file(s).
Question 2 (10 marks)
Save your file for this program as maxiLyst.py
Define a function (call it maxiLyst()). maxiLyst takes two arguments: a list of digits D and an integer M. The function returns a list. The function iterates through the first M digits of D, finds the largest number within that set, and appends it to the result list. Then, it shifts one position at a time and repeats the process until the end of the list D.
For example,
![]() |
Start by writing an algorithm for solving the problem (i.e. set of steps to the problem). Copy both the algorithm and your script to the answer sheet. You must submit both, your answer sheet and .py file(s).
Question 3 (10 marks)
Save your file for this program as prime.py
Write a Python function named "prime()" that identifies prime years within a given range of years. The function should prompt the user to input a range of years and then print out which years within that range are prime and which are not. A prime year is defined as a year that is divisible by 4. However, if the year is divisible by 4 and also divisible by 100, then it is not considered prime unless it can be evenly divided by 400. For instance, the function should correctly identify that 2000 and 2004 are prime years, while 1900 and 2100 are not prime years.
For example,
![]() |
Start by writing an algorithm for solving the problem (i.e. set of steps to the problem). Copy both the algorithm and your script to the answer sheet. You must submit both, your answer sheet and .py file(s).
Question 4 (10 marks)
Save your file for this program as gamify.py
Write a Python function (call it gamify()), which implements a number manipulation game.
In this game, the program prompts the user to input an integer number. If the number is even, it is divided by 2. If the number is odd, it is multiplied by 3 and 1 is added to the result. This process is repeated until the number reaches 1. The program then prints each number generated during the process, separated by spaces.
For example,
Given the numbers 24, 176, 21, and 1024, the output would be as follows:
![]() |
Start by writing an algorithm for solving the problem (i.e. set of steps to the problem). Copy both the algorithm and your script to the answer sheet. You must submit both, your answer sheet and .py file(s).
End of Assessment
Marking Rubric
Question | Criteria | Weight
|
Question 1 | Algorithm | 2 |
Commenting | 1 | |
Programming logic | 3.5 | |
Execution | 3.5 | |
Total | 10 | |
Question 2 | Algorithm | 2 |
Commenting | 1 | |
Programming logic | 3.5 | |
Execution | 3.5 | |
Total | 10 | |
Question 3 | Algorithm | 2 |
Commenting | 1 | |
Programming logic | 3.5 | |
Execution | 3.5 | |
Total | 10 | |
Question 3 | Algorithm | 2 |
Commenting | 1 | |
Programming logic | 3.5 | |
Execution | 3.5 | |
Total | 10 | |
Total Marks | 40 |
Looking For HI5004 Marketing Management T3 2024 Assignment Help?
Rubric Descriptions
Criteria | Unsatisfactory | Satisfactory | Good
|
Algorithm | Algorithm is incorrect or lacks major components, leading to incorrect results. | Implements a correct algorithm but may lack efficiency or robustness in handling edge cases. | Demonstrates a thorough understanding of the problem, with an accurate algorithm. Code handles edge cases gracefully. |
Commenting | Lacks sufficient comments or contains comments that are vague, inconsistent, or unhelpful for understanding the code. | Code includes adequate comments explaining most major sections, but some sections may lack clarity or could be improved. | Code is well-documented with clear and informative comments for every significant section and complex logic. |
Programming Logic | Code is poorly organized, lacks structure, or contains significant logical errors. | Code is generally well-structured but may contain minor logical errors or suboptimal naming conventions. | Code is well-structured with no logical errors. Variables and functions are appropriately named. |
Execution | Code fails to run successfully, produces frequent errors, or consistently generates incorrect results. | Code runs successfully with minor issues that do not affect the overall functionality. It may not handle exceptions well or produce slightly incorrect results in specific cases. | Code runs flawlessly without any errors. It produces the expected results and handles potential exceptions gracefully. |
Get original papers written according to your instructions and save time for what matters most.