HS1031 Introduction to Programming T3 2024 Assignment Help

HS1031 Introduction to Programming T3 2024 

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 
  1. All work must be submitted on Blackboard by the due date along with a completed Assignment Cover Page. 
  2. The assignment must be in MS Word format unless otherwise specified.     

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
  • All work must be submitted on Blackboard by the due date and time, along with a completed Assessment Cover Page. Late penalties apply.
  • Your answers must be based on Holmes Institute syllabus of this unit. Outside sources may not amount to more than 10% of any answer and must be correctly referenced in full.  Over-reliance on outside sources will be penalised
  • Reference sources must be cited in the text of the report and listed appropriately at the end in a reference list using Holmes Institute Adapted Harvard Referencing. Penalties are associated with incorrect citation and referencing.
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 
  1. All work must be submitted on Blackboard by the due date along with a completed Assignment Cover Page. 
  2. The assignment must be in MS Word format unless otherwise specified.     

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
  • All work must be submitted on Blackboard by the due date and time, along with a completed Assessment Cover Page. Late penalties apply.
  • Your answers must be based on Holmes Institute syllabus of this unit. Outside sources may not amount to more than 10% of any answer and must be correctly referenced in full.  Over-reliance on outside sources will be penalised
  • Reference sources must be cited in the text of the report and listed appropriately at the end in a reference list using Holmes Institute Adapted Harvard Referencing. Penalties are associated with incorrect citation and referencing.

 

Group Assignment Guidelines and Specifications

 

Specific 

Instructions

  • You need to provide your answeras 1) an executable Python script (.PY file) and 2) text in a MS Word document.
  • Your script must be written in Python 3. (You get no marks if your script is written in Python 2 or a programming language other than Python).
  • Make sure that your script runs successfully for all possible entries.
  • Your script must be appropriately commented. 
  • Try to approach the solution with the least number of steps. Your script must be clear, logical and easy to read and understand.
  • Please do NOT zip your files in .RAR file format (use ZIP format if necessary, as the RAR format is not supported by Blackboard).
  • Please do NOT submit an empty file or folder.
  • Please do NOT convert your script into images. Your script must be executable as a .PY file, not an image. Images will not be marked.
  • Please note you are required to explain your script in-class and run your programas part of this assessment. Make sure that your submission is your own work.Your mark in the in-class session will influence your overall mark in this assessment.
  • Each group member must participate in the in-class script explanation. Group members who do not participate will received a 50% penalty and may fail the assessment.

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

QuestionCriteria

Weight

 

Question 1Algorithm2
 Commenting1
 Programming logic3.5
 Execution3.5
Total 10
Question 2Algorithm2
 Commenting1
 Programming logic3.5
 Execution3.5
Total 10
Question 3Algorithm2
 Commenting1
 Programming logic3.5
 Execution3.5
Total 10
Question 3Algorithm2
 Commenting1
 Programming logic3.5
 Execution3.5
Total 10
Total Marks 40

 

Looking For HI5004 Marketing Management T3 2024 Assignment Help?

 

Rubric Descriptions

CriteriaUnsatisfactorySatisfactory

Good

 

AlgorithmAlgorithm 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.
CommentingLacks 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 LogicCode 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.
ExecutionCode 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.

Example invalid form file feedback

Join our 150К of happy users

Get original papers written according to your instructions and save time for what matters most.