CSE1PE Real-Time Assignment Page 1 of 5
La Trobe University
Department of Computer Science and Information Technology
CSE1PE Real-Time Assignment
This assessment is worth 28% of your PE grade
Objective
To demonstrate your knowledge and understanding of both the Python programming language and the steps in
software development. To achieve high marks for this assessment, sufficient understanding of concepts such as
selection, repetition and functions must be displayed.
Assessment Date & Time
Please refer to the LMS for the date and time of this assessment.
Delays caused by computer downtime cannot be accepted as a valid reason for a late submission without penalty.
Students must plan their work to allow for both scheduled & unscheduled downtime.
Academic Integrity
This is an individual assignment. You are explicitly instructed to not work in groups.
When submitting the assignment, students are required to submit their own work only. La Trobe University treats
plagiarism seriously. When detected, penalties are strictly imposed.
Submission Guidelines
This assignment is made up of two sections (Section A & Section B). Section A details the requirements that you need
to complete before the assignment due date and have in your possession during Section B. Section B is the real-time
programming, program testing and script session that is to be done under exam conditions. You will use Section A to
help you during Section B. Section A, which is your documentation, should be submitted as a docx or pdf file, via the
submission link on LMS, while Section B, which is your Python code and script session, should be electronically
submitted to the university’s assignment submit server.
See Appendix on page 5 on how to submit Section B to the submit server during the exam.
See Requirements on page 4 for detailed Section A and B specifications.
Problem Description
You have been employed to write a program, titled insurancePremiumCalculator.py, which calculates
insurance premiums for buildings. There are two types of buildings: domestic/private houses and commercial
premises. The premium charged on each type of building depends on the following:
(1) The type of building being insured
(2) Amount insured
(3) Number of previous claims
Each building type has a fixed processing charge and is described below:
Domestic/Private House
• Customers are charged 0.3% of the amount insured, where the insured amount is less than $100,000 and
0.25% for amounts equal to or over $100,000.
• Customers who have 0 claims receive a 10% reduction in their total premium as a no claim bonus
• Processing charge is $50 for all domestic/private houses
Commercial Premise
• All commercial applicants are charges 0.5% of the amount insured when the insured amount is less then
$250,000 and 0.75% for other amounts equal to or over $250,000.
• Customers who have 0 claims receive a 15% reduction in their total premium as a no claim bonus
• Processing charge is $80 for all commercial premises
CSE1PE Real-Time Assignment Page 2 of 5
Example Program Run
The following execution defines the program’s expected behaviour:
Note: User type is answered as either P, being private/domestic, and C, being commercial.
Welcome to the Insurance Premium Calculator!
CSE1PE Real-Time Assignment Page 3 of 5
Assignment Tips
• Make your Section A perfect. If you have a well-thought Pseudocode, you can go into the Section B realtime programming phase and fully understand what is being asked of you. If anything, if your Pseudocode
is correct, your only task is to translate it into Python, which shouldn’t take long at all
• Be advised, that while you are coding in Section B, you will not have any access to your previous .py files
developed on the Latcs servers
• Please continue to develop in Unix using vim as Section B will have to be developed in vim. No use of any
other editor or IDE will be accepted during the test.
• Section B will be administered using PuTTY from home, so you must have the VPN and PuTTY
successfully functional for this test
$1900
CSE1PE Real-Time Assignment Page 4 of 5
Requirements
Section A
Your Section A should be presented neatly. This includes the consistent use of a font, font size, page numbering etc.
Keep in mind this assessment is marked out of 100. 5 of those marks are based on overall assessment presentation.
This section consists of the steps in program development you have been using during this subject. These steps must
be completed prior to the Real-Time programming (Section B) part of this assignment. The LMS submission portal will
close prior to the Section B time.
Section A must contain the following:
A title page with:
• Your name
• Your student ID
• The submission title (Real-Time Assignment Section A)
• Submission date
A table of contents page which should:
• List all major sections of the assignment and the page numbers they occur on
The 7 Steps of Program Development:
(1) Define the Problem
a. A clear representation of the problem in your own words
b. The use of informal diagrams to represent your definition may be beneficial
(2) Specify a High-Level Solution
a. Use of a Defining Diagram
(3) Outline the Solution
a. Describe how you intend on coming to the solution or solving the problem
b. Describe any selection, repetition, function calls etc.
(4) Develop the Algorithm
a. Use of a Data Dictionary
b. Use of a Pseudocode
(5) Test the Algorithm for correctness
a. Desk Check is required here
b. Please provide a Desk Check for 2 runs
(6) Test the Solution
a. A Test Plan is required here
Please Note:
• This section must be prepared prior to the Section B real-time coding as you are actually expected to refer to
this document while you are coding Section B and it must be submitted to LMS before Section B commences.
• Code the Solution has been replaced by Test the Solution at Step 6 as Code the Solution is to be completed
during the Section B real-time coding.
Section B
This section consists of a real-time coding assessment, involving the specified assignment. The date and time for this
assessment will be advised on LMS. You will have 3 hours to program a solution to the above problem and then test
your program. The Section A test plan should be utilised and Script Sessions are to be both recorded and submitted
electronically, along with your .py file.
Details on how to submit files to our electronic submit server are attached as an appendix at the end of this document.
The marking of your .py file and script session file will be undertaken on your electronic submission only.
CSE1PE Real-Time Assignment Page 5 of 5
Your Python Code
You must write your code using Python3 syntax, along with adhering to the following:
(1) Match the logic specified in the Section A Pseudocode
(2) Two functions must be defined and called throughout the program
(3) Variable names must match those defined in the Section A Data Dictionary
(4) Code must be easy to read and understand by formatting correctly
a. E.g. correct indentation, spaces between sections
(5) Appropriate use of keywords
(6) Correct logical conditions and statements
(7) Extensive code commenting explaining
a. The program name
b. The author
c. The program purpose
d. Variable use
e. General segments of the code
(8) Please also include a comment at the end of your code explaining whether the code compiled successfully or
not
Test Plans & Script Sessions
(1) Using your test plan, ensure you test the program and record each run/test according to the test plan, using a
Script Session
(2) The Script Sessions you record must be submitted along with your .py file for Section B
Appendix 1: Assignment Marking Guide
Total: 100%
Appendix 2: Submitting a file to the Unix electronic submit server
To submit a file electronically:
(1) Navigate to the directory your file is located in that you wish to submit
(2) Type submit LAB filename (where “filename” is the name of the file you wish to submit)
(3) You will have to agree to a notice.
(4) Once you have agreed, the file should have uploaded and therefore, moved to the marking area
(5) Type verify to verify your file was submitted successfully
The post CSE1PE Real-Time Assignment appeared first on My Assignment Online.