Highlights
This assignment is worth 30% of the total marks available for this mod ule. If coursework is submitted late (and where there are no extenuating circumstances):
1. If the assessment is submitted no later than 24 hours after the deadline, the mark for the assessment will be capped at the minimum pass mark;
2. If the assessment is submitted more than 24 hours after the deadline, a mark of 0 will be given for the assessment.
Your submission must include the official Coursework Submission Cover sheet, which can be found here:
Assignment
To complete this coursework, you must complete a set of programming chal lenges in Python and/or JavaScript.
Each challenge can be awarded a maximum of 12.5 marks. The final mark is determined by the best eight challenges. Therefore, perfectly solving four exercises will give you 50 marks (pass), and perfectly solving at least eight exercises will give you 100 marks. Also, you cannot get more than 100 marks. An exercise is solved perfectly only if high-quality functional code is submitted in both Python and JavaScript. Providing high-quality functional code in only one programming language results in a lower mark (i.e., 10 marks). Therefore, you can still pass the coursework by only completing problems in one language.
The challenges are described in detail below, and you are also provided with a set of test cases that will check whether your code produces the required output or not. You should make sure that your submitted code passes the supplied tests to ensure it functions correctly. However, please note that your code may be tested against further/different test cases. You should therefore ensure that you try to cover all corner cases and additional inputs and that your code still functions correctly.
You will find template code for the assignment on Learning Central. This provides two folders, python and js. Inside each folder you will find a template.{js/py} file, in which you should complete your solutions. You will also find a test_template.{js/py} file containing the test cases that will check your code’s functionality, along with a folder of test data required for some of the tests. You are also supplied with a Readme.md file containing detailed instructions on how to run the test cases to check your code.
In the templates, the functions’ interfaces are given but the functions’ bodies are empty. Solve the exercises by correctly filling in the functions’ bodies. It is forbidden to change the functions’ interfaces. However, new functions can be defined to support the solution of the exercises. These functions must have names that are different from those already present in the templates.
In all the exercises, you can assume that the inputs are provided in the appropriate format. Therefore, error-checking is not needed. You will be given marks for solving each problem, and extra marks for completing the solution in both programming languages. Further marks will be awarded for solution style and quality. The mark scheme is described in further detail later.
Exercise 1: Smallest Fraction Terms
Complete the function ‘reduceFraction’ that takes two positive integers as its parameters. The parameters represent the numerator and denominator of a fraction. The function reduces the fraction to lowest terms and then returns both the numerator and the denominator of the reduced fraction as integers.
Python: The numerator and denominator should be returned as a tuple. JavaScript: The numerator and denominator should be returned as elements 0 and 1 of a 2-item array.
Example: reduceFraction(12,15) returns (4, 5) in Python and [4,5] in JavaScript.
This Computer Science Assignment has been solved by our Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.