Highlights
Task:
Question 1: [25 marks]
Write a robust program that requests an integer from 1 through 10 and calculates its reciprocal.
Your program must perform according to the following sample output:
Business rules:
• The exception handling must be done using 'try' statement. No other way is accepted (for instance, using if-elif-else). That is, no 'try', no marks.
• The program must keep running until the user enters a number between one and ten (inclusive) and receives the value of the reciprocal in the screen.
• Reciprocal is calculated as 1 divided by the number. For example, the reciprocal of 3 is 1/3=0.33.
• Markers will test your code using various examples, including the ones given above.
Marks’ allocation:
• Program asks the user to enter a number. [3 marks]
• Program handles entering whole numbers between 1 and 10 inclusive. [3 marks]
• Program handles user entering numbers outside requested interval. [4 marks]
• Program handles user entering strings. [3 marks]
• Program handles user entering floats. [3 marks]
• Program handles user entering a zero. [3 marks]
• Program calculates reciprocal. [3 marks]
• Program keeps running unless the user enters requested input. [3 marks]
Question 2 [25 marks]
You are asked to work out the required tests needed to assess the performance of a function called trip_OK(). The description of the problem, business rules, variables and variable types (including a test example) are included in the file “Holidays.html” located in the same section of this document on Canvas.
You need to edit this HTML file to include the test cases as described during the lectures and tutorials.
All pieces of software to test are designed such that they do not need more than 10 tests. That is, you only have up to 10 tests available to assess all boundaries and partitions.
Be sure to save your answers and submit your html file as described in the Section “Submission” of this document.
Marks’ allocation:
• All boundaries are tested. [8 marks]
• All partitions are tested. [8 marks]
• Proper descriptions are given for every test. [9 marks]
• You may need at least six tests to check all partitions and boundaries. No more than
10 tests are allowed. That is, all tests above the 10th won’t be considered for marking purposes.
This IT Assignment has been solved by our IT 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.