The purpose of this assignment is to build part of a system that would be used to track the voters for the different electorat
Department of Computing
Bachelor of Information and Communication Technologies Graduate Diploma of Information and Communication Technologies
BCSE 101 Software Engineering
Assignment Two
Programming Assignment 1
Semester Two 2016
Due date: Friday 14 Oct
2016
Time: 5.00pm
Section
Marks
A
5
B
15
C
30
Total
50
Student Name/ID ………………………………………………………………………………………………….
CPIT and its faculty members reserve the right to use electronic means to detect and help prevent plagiarism. Students agree that when submitting this assignment, it may be subject to submission for textual similarity review to Turnitin.com.
Submissions received late will be subject to a penalty of 10% of the student’s mark per working day.
This assignment is worth 10% of the total marks for BCSE101.
This paper has eight (8) pages including the cover sheet.
Assignment Description
The purpose of this assignment is to build part of a system that would be used to work out who qualified for the 2016 Olympics Women’s Golf track competition. The class diagram below shows how this system is to be implemented:
<
Note:
· This is a partial system.
At the end of this assignment, once you have handed in your work, you will be given a model answer. That will be the basis for the next assignment which will add more details (entering of results, calculation of winners) to what you have to do for this first assignment. Think of this as ‘iteration 1’ of the building of a larger system.
Controler.js
The code in Controller.js will load test data.
class Controller {
static setup () {
var olympics = new Olympics();
olympics.addPossiblePlayer( 1, “Lydia Ko”, “NZL” )
olympics.addPossiblePlayer( 2, “Brooke M. Henderson”, “CAN” )
olympics.addPossiblePlayer( 3, “Inbee Park”, “KOR” )
olympics.addPossiblePlayer( 4, “Lexi Thompson”, “USA” )
olympics.addPossiblePlayer( 5, “Sei Young Kim”, “KOR” )
olympics.addPossiblePlayer( 6, “Amy Yang”, “KOR” )
olympics.addPossiblePlayer( 7, “Ariya Jutanugarn”, “THA” )
olympics.addPossiblePlayer( 8, “In Gee Chun”, “KOR” )
olympics.addPossiblePlayer( 9, “Stacy Lewis”, “USA” )
olympics.addPossiblePlayer( 10, “Ha-Na Jang”, “KOR” )//
olympics.addPossiblePlayer( 11, “Anna Nordqvist”, “SWE” )
olympics.addPossiblePlayer( 12, “So Yeon Ryu”, “KOR” )//
olympics.addPossiblePlayer( 13, “Shanshan Feng”, “CHN” )
olympics.addPossiblePlayer( 14, “Minjee Lee”, “AUS” )
olympics.addPossiblePlayer( 15, “Gerina Piller”, “USA” )
// continued for a total of 1189 players
runner.html
Run your code using the following document.
Place runner.html is the directory ABOVE the /src directory which holds the other files