Assignment 5 (Specification) - DPIT128/UCIT128 Assignment 5 Specification - DPIT128/UCIT128 Introduction to Web Technology (Autumn 2021) Assignment 5 (15%) due by Friday 21st of May 2021 at 11:55 PM...

1 answer below »
I need question 2, 3 and 4 by tomorrow night question 1 have already attached and is used for question 2. I will also share some example codes given by the teacher so I like the same coding style as teacher and similar code.


Assignment 5 (Specification) - DPIT128/UCIT128 Assignment 5 Specification - DPIT128/UCIT128 Introduction to Web Technology (Autumn 2021) Assignment 5 (15%) due by Friday 21st of May 2021 at 11:55 PM Learning Outcomes · Ability to incorporate AJAX scripting into CSS enhanced HTML documents · Experience working directly with the structure and content of XML and JSON files · Ability to reference and navigate XML data structures via AJAX scripts · Ability to reference, navigate and sort JSON data structures via AJAX scripts · Ability to utilise specific JavaScript control structures to accomplish the above Submission Instructions You will need to submit a total of 4 files using the “Assignment 5” submission facility on Moodle. Please see the table below for an overview of the files (including their names and extensions) that are required for each task. Task Files Required 1 A5_TASK1.xml 2 A5_TASK2.html 3 A5_TASK3.json 4 A5_TASK4.html The assessor will be using the Google Chrome browser. Please test your work with this browser prior to submission. This assignment is scheduled to be marked in the laboratory during Week 12. Marks will be deducted if you cannot answer the questions asked about your solution by the assessor. Please be aware of the following: 1. Late submissions will incur an awarded mark deduction of 10% for each day late. 2. Submissions more than 3 days late will not be marked (a zero will be automatically awarded). 3. If you need an extension, please apply for academic consideration before the assignment due date/time. The UOW College Academic Consideration Policy can be found at the following URL: https://www.uowcollege.edu.au/about/governance/policies-procedures/ 4. Plagiarism is treated seriously. If we suspect that work has been copied, ALL students involved are likely to be awarded a mark of zero for the assignment. There are 4 tasks in this assignment. Task 1: Download and extend the A5.xml file available on Moodle (also available here) to include all the information provided in the following table. The first hotel has already been inserted to demonstrate the structure that should be used for each record. Hotel Name Stars Reviews Score Novotel Wollongong Northbeach 4 3123 8.1 Sage Hotel Wollongong 4 3802 7.8 Adina Apartment Hotel Wollongong 4 1046 8.7 Quality Suites Pioneer Sands 4 656 8.6 Mantra Wollongong 4 1052 7.6 The Belmore All-Suite Hotel 3 1214 8.8 Boat Harbour Motel 3 869 8.0 Solomon Inn Wollongong 3 731 7.3 Best Western City Sands 4 1219 8.3 Flinders Motel 3 701 7.4 Information obtained from Hotels Combined on the 25th of February 2021. Please Note: · Save your completed file as “A5_TASK1.xml”. · This will be the first of 4 separate files that you must submit for this assignment. · Check that your XML is well-formed by using the validation service available at the following URL: https://www.xmlvalidation.com This task is worth 1.5 marks. Task 2: Create the HTML and CSS code needed to reproduce the following web application interface. Extend your code by including the JavaScript & AJAX functionality listed in “Design Requirements”. You must use the same layout and inclusions as shown below. Figure 1: Initial State Figure 2: Final State Design Requirements: · The heading text should be displayed within a h2 element. · The button must have a width value of 100px and a padding value of 10px. · A background colour for the button should also be specified (see “Design Resources”). · The following actions must occur when the “Start” button is clicked: 1. An AJAX script is called to access and read the “A5_TASK1.xml” file 2. A for loop is used to populate a table with the collected XML data 3. A switch statement is used to display a suitable “Star Rating” image (see “Design Resources”) 4. An if/else if/else structure is used to set the “Overall Score” background colour · The table heading text must be displayed within a caption element. · The caption should have a font size of 21px and a matching bold style. · The caption must also have a top padding value of 30px and a bottom padding value of 10px. · All hyperlinks should display their destination in a new window/tab. · The table must utilise th and td elements with a padding value of 10px and a font size of 20px. · A background colour for all th elements should be applied (see “Design Resources”). · The table must have a matching border, field alignment and centred position on the page. · All “Total Reviews” and “Overall Score” values should be presented as shown. · An :nth-child() pseudo-class must be applied to shade even table rows (see “Design Resources”). · The text shown beneath the table should be displayed within a h3 element. · The date must be presented in an Australian format (specifically as DD/MM/YYYY). · The decision conditions and hexadecimal colour values are provided in the table below. Score < 7.5="" 7.5="" ≤="" score="">< 8.5="" otherwise="" #ff9999="" #ffdb99="" #99cc99="" design="" resources:="" 1="" star="" image="" https://mywebspace.net.au/uowc128/assignment_5/images/1_star.png="" 2="" star="" image="" https://mywebspace.net.au/uowc128/assignment_5/images/2_stars.png="" 3="" star="" image="" https://mywebspace.net.au/uowc128/assignment_5/images/3_stars.png="" 4="" star="" image="" https://mywebspace.net.au/uowc128/assignment_5/images/4_stars.png="" 5="" star="" image="" https://mywebspace.net.au/uowc128/assignment_5/images/5_stars.png="" background="" (button)="" #ecf2f4="" background="" (th)="" #a8a8a8="" background="" (:nth-child)="" #e0e0e0="" border="" effect="" 1px="" solid="" #808080="" please="" note:="" ·="" you="" must="" use="" all="" of="" the="" attribute="" values="" contained="" within="" the="" xml="" file.="" ·="" save="" your="" completed="" file="" as="" “a5_task2.html”.="" ·="" this="" will="" be="" the="" second="" of="" 4="" separate="" files="" that="" you="" must="" submit="" for="" this="" assignment.="" this="" task="" is="" worth="" 4.5="" marks.="" task="" 3:="" download="" and="" extend="" the="" a5.json="" file="" available="" on="" moodle="" (also="" available="" here)="" to="" include="" all="" the="" information="" provided="" in="" the="" following="" table.="" the="" first="" two="" drivers="" have="" already="" been="" placed="" in="" the="" json="" file="" to="" demonstrate="" the="" structure="" that="" should="" be="" used="" for="" each="" record.="" driver="" name="" rank="" wins="" starts="" source="" lewis="" hamilton="" 1="" 95="" 266="" https://en.wikipedia.org/wiki/lewis_hamilton="" michael="" schumacher="" 2="" 91="" 306="" https://en.wikipedia.org/wiki/michael_schumacher="" sebastian="" vettel="" 3="" 53="" 257="" https://en.wikipedia.org/wiki/sebastian_vettel="" alain="" prost="" 4="" 51="" 199="" https://en.wikipedia.org/wiki/alain_prost="" ayrton="" senna="" 5="" 41="" 161="" https://en.wikipedia.org/wiki/ayrton_senna="" fernando="" alonso="" 6="" 32="" 311="" https://en.wikipedia.org/wiki/fernando_alonso="" nigel="" mansell="" 7="" 31="" 187="" https://en.wikipedia.org/wiki/nigel_mansell="" jackie="" stewart="" 8="" 27="" 99="" https://en.wikipedia.org/wiki/jackie_stewart="" jim="" clark="9" 25="" 72="" https://en.wikipedia.org/wiki/jim_clark="" niki="" lauda="9" 25="" 171="" https://en.wikipedia.org/wiki/niki_lauda="" information="" obtained="" from="" wikipedia="" on="" the="" 25th="" of="" february="" 2021.="" please="" note:="" ·="" save="" your="" completed="" file="" as="" “a5_task3.json”.="" ·="" this="" will="" be="" the="" third="" of="" 4="" separate="" files="" that="" you="" must="" submit="" for="" this="" assignment.="" ·="" check="" that="" your="" json="" code="" is="" well-formed="" by="" using="" the="" validation="" service="" available="" at="" the="" following="" url:="" https://jsonlint.com="" this="" task="" is="" worth="" 1.5="" marks.="" task="" 4:="" create="" the="" html="" and="" css="" code="" needed="" to="" reproduce="" the="" following="" web="" application="" interface.="" extend="" your="" code="" by="" including="" the="" javascript="" &="" ajax="" functionality="" listed="" in="" “design="" requirements”.="" you="" must="" use="" the="" same="" layout="" and="" inclusions="" as="" shown="" below.="" figure="" 1:="" initial="" state="" figure="" 2:="" final="" state="" design="" requirements:="" ·="" the="" heading="" text="" should="" be="" displayed="" within="" a="" h2="" element.="" ·="" the="" button="" must="" have="" a="" width="" value="" of="" 100px="" and="" a="" padding="" value="" of="" 10px.="" ·="" a="" background="" colour="" for="" the="" button="" should="" also="" be="" specified="" (see="" “design="" resources”).="" ·="" the="" following="" actions="" must="" occur="" when="" the="" “start”="" button="" is="" clicked:="" 1.="" an="" ajax="" script="" is="" called="" to="" access,="" read="" and="" parse="" the="" “a5_task3.json”="" file="" 2.="" an="" additional="" property="" is="" created="" for="" each="" driver="" to="" store="" the="" calculated="" total="" losses="" 3.="" an="" additional="" property="" is="" created="" for="" each="" driver="" to="" store="" the="" calculated="" win="" percentage="" 4.="" the="" finalised="" collection="" of="" driver="" objects="" is="" sorted="" based="" on="" the="" win="" percentage="" value="" 5.="" a="" for="" loop="" is="" used="" to="" populate="" a="" table="" with="" the="" finalised="" collection="" of="" driver="" objects="" 6.="" an="" if/else="" if/else="" structure="" is="" used="" to="" set="" the="" “win="" percentage”="" background="" colour="" ·="" the="" table="" heading="" text="" must="" be="" displayed="" within="" a="" caption="" element.="" ·="" the="" caption="" should="" have="" a="" font="" size="" of="" 21px="" and="" a="" matching="" bold="" style.="" ·="" the="" caption="" must="" also="" have="" a="" top="" padding="" value="" of="" 30px="" and="" a="" bottom="" padding="" value="" of="" 10px.="" ·="" all="" hyperlinks="" should="" display="" their="" destination="" in="" a="" new="" window/tab.="" ·="" the="" table="" must="" utilise="" th="" and="" td="" elements="" with="" a="" padding="" value="" of="" 10px="" and="" a="" font="" size="" of="" 20px.="" ·="" a="" background="" colour="" for="" all="" th="" elements="" should="" be="" applied="" (see="" “design="" resources”).="" ·="" the="" table="" must="" have="" a="" matching="" border,="" field="" alignment="" and="" centred="" position="" on="" the="" page.="" ·="" all="" “win="" percentage”="" values="" should="" be="" presented="" as="" shown.="" ·="" an="" :nth-child()="" pseudo-class="" must="" be="" applied="" to="" shade="" even="" table="" rows="" (see="" “design="" resources”).="" ·="" the="" text="" shown="" beneath="" the="" table="" should="" be="" displayed="" within="" a="" h3="" element.="" ·="" the="" decision="" conditions="" and="" hexadecimal="" colour="" values="" are="" provided="" in="" the="" table="" below.="" percentage="">< 20="" 20="" ≤="" percentage="">< 30 otherwise #ff9999 #ffdb99 #99cc99 design resources: background (button) #ecf2f4 background (th) #a8a8a8 background (:nth-child) #e0e0e0 border effect 1px solid #808080 please note: · you must use all of the property values contained within the json file. · save your completed file as “a5_task4.html”. · this will complete the set of 4 separate files that you must submit for this assignment. this task is worth 4.5 marks. the following applies to all relevant components of your submission: additional marking criteria available marks all documents validate without issue(s) using specified validation services 1.0 all scripts function without issue(s) in google developer tools 1.0 all code is neat and suitably indented (2 spaces only) 0.5 documents contain explanatory commenting where appropriate 0.5 - this is the end of the assignment - version 2.5 by jason rodriguez - dpit128/ucit128: assignment 5 (task ?) dpit128/ucit128: assignment 5 insert full name (insert student number) date due: 21/05/2021 i have viewed the college's policy regarding academic integrity as provided at the following url: https://documents.uow.edu.au/content/groups/public/@web/@uowc/documents/doc/uow218734.pdf task ?: ? insert solution here © insert full name novotel wollongong northbeach 4 3123 8.1 sage hotel wollongong 4 3802 7.8 adina apartment hotel wollongong 4 1046 8.7 quality suites pioneer sands 4 656 30="" otherwise="" #ff9999="" #ffdb99="" #99cc99="" design="" resources:="" background="" (button)="" #ecf2f4="" background="" (th)="" #a8a8a8="" background="" (:nth-child)="" #e0e0e0="" border="" effect="" 1px="" solid="" #808080="" please="" note:="" ·="" you="" must="" use="" all="" of="" the="" property="" values="" contained="" within="" the="" json="" file.="" ·="" save="" your="" completed="" file="" as="" “a5_task4.html”.="" ·="" this="" will="" complete="" the="" set="" of="" 4="" separate="" files="" that="" you="" must="" submit="" for="" this="" assignment.="" this="" task="" is="" worth="" 4.5="" marks.="" the="" following="" applies="" to="" all="" relevant="" components="" of="" your="" submission:="" additional="" marking="" criteria="" available="" marks="" all="" documents="" validate="" without="" issue(s)="" using="" specified="" validation="" services="" 1.0="" all="" scripts="" function="" without="" issue(s)="" in="" google="" developer="" tools="" 1.0="" all="" code="" is="" neat="" and="" suitably="" indented="" (2="" spaces="" only)="" 0.5="" documents="" contain="" explanatory="" commenting="" where="" appropriate="" 0.5="" -="" this="" is="" the="" end="" of="" the="" assignment="" -="" version="" 2.5="" by="" jason="" rodriguez="" -="" dpit128/ucit128:="" assignment="" 5="" (task="" )="" dpit128/ucit128:="" assignment="" 5="" insert="" full="" name="" (insert="" student="" number)="" date="" due:="" 21/05/2021="" i="" have="" viewed="" the="" college's="" policy="" regarding="" academic="" integrity="" as="" provided="" at="" the="" following="" url:="" https://documents.uow.edu.au/content/groups/public/@web/@uowc/documents/doc/uow218734.pdf="" task="" :="" insert="" solution="" here="" ©="" insert="" full="" name="" novotel="" wollongong="" northbeach="" 4="" 3123="" 8.1="" sage="" hotel="" wollongong="" 4="" 3802="" 7.8="" adina="" apartment="" hotel="" wollongong="" 4="" 1046="" 8.7="" quality="" suites="" pioneer="" sands="" 4="">
Answered Same DayJun 02, 2021

Answer To: Assignment 5 (Specification) - DPIT128/UCIT128 Assignment 5 Specification - DPIT128/UCIT128...

Rushendra answered on Jun 03 2021
130 Votes
js-Table/a5.json
{
"topic": "Formula 1 Racing",
"subject": "Top 10 Driver Statistics",
"source": "https://en.wikipedia.org/wiki/List_of_Formula_One_Grand_Prix_winners#By_driver",
"driverStats": [{
"name": "Lewis Hamilton",
"rank": "1",
"wins": 95,
"starts": 266,
"source": "https://en.wikipedia.org/wiki/Lewis_Hamilton"
},
{
"name": "Michael Schumacher",
"rank": "2",
"wins": 91,
"starts": 306,
"source": "https://en.wikipedia.org/wiki/Michael_Schumacher"
},
{
"name": "Sebastian Vettel",
"rank": "3",
"wins": 53,
"starts": 257,
"source": "https://en.wikipedia.org/wiki/Sebastian_Vettel"
},
{
"name": "Alain Prost",
"rank": "4",
"wins": 51,
"starts": 199,
"source": "https://en.wikipedia.org/wiki/Alain_Prost"
},
{
"name": "Ayrton Senna",
"rank": "5",
"wins": 41,
"starts": 161,
"source": "https://en.wikipedia.org/wiki/Ayrton_Senna"
},
{
"name": "Fernando Alonso",
"rank": "6",
"wins": 32,
"starts": 311,
"source": "https://en.wikipedia.org/wiki/Fernando_Alonso"
},
{
"name": "Nigel Mansell",
"rank": "7",
"wins": 31,
"starts": 187,
"source": "https://en.wikipedia.org/wiki/Nigel_Mansell"
},
{
"name": "Jackie Stewart",
"rank": "8",
"wins": 27,
"starts": 99,
"source": "https://en.wikipedia.org/wiki/Jackie_Stewart"
},
{
"name": "Jim Clark",
"rank": "=9",
"wins": 25,
"starts": 72,
"source": "https://en.wikipedia.org/wiki/Jim_Clark"
},
{
"name": "Niki Lauda",
"rank": "=9",
"wins": 25,
"starts": 171,
"source": "https://en.wikipedia.org/wiki/Niki_Lauda"
}
]
}
js-Table/a5.xml


Novotel Wollongong Northbeach
4
3123
8.1


Sage Hotel Wollongong
4
3802
7.8


Adina Apartment Hotel Wollongong
4
1046
8.7


Quality Suites Pioneer Sands
4
656
8.6


Mantra Wollongong
4
1052
7.6


The Belmore All-Suites Hotel
3
1214
8.8


Boat Harbour Motel
3
869
8.0


Solonon Inn Wollongong
3
731
7.3


Best Western City Sands
4
1219
8.3


Flinders Motel
3
701
7.4


js-Table/assignment-5-specification-2-b1difi5m-gsbwaciu.docx
- DPIT128/UCIT128 Assignment 5 Specification -
        
DPIT128/UCIT128
Introduction to Web Technology (Autumn 2021)
Assignment 5 (15%) due by Friday 21st of May 2021 at 11:55 PM
Learning Outcomes
· Ability to incorporate AJAX scripting into CSS enhanced HTML documents
· Experience working directly with the structure and content of XML and JSON files
· Ability to reference and navigate XML data structures via AJAX scripts
· Ability to reference, navigate and sort JSON data structures via AJAX scripts
· Ability to utilise specific JavaScript control structures to accomplish the above
Submission Instructions
You will need to submit a total of 4 files using the “Assignment 5” submission facility on Moodle. Please see the table below for an overview of the files (including their names and extensions) that are required for each task.
        Task
        Files Required
        1
        A5_TASK1.xml
        2
        A5_TASK2.html
        3
        A5_TASK3.json
        4
        A5_TASK4.html
The assessor will be using the Google Chrome browser. Please test your work with this browser prior to submission.
This assignment is scheduled to be marked in the laboratory during Week 12. Marks will be deducted if you cannot answer the questions asked about your solution by the assessor.
Please be aware of the following:
1. Late submissions will incur an awarded mark deduction of 10% for each day late.
2. Submissions more than 3 days late will not be marked (a zero will be automatically awarded).
3. If you need an extension, please apply for academic consideration before the assignment due date/time. The UOW College Academic Consideration Policy can be found at the following URL:
https://www.uowcollege.edu.au/about/governance/policies-procedures/
4. Plagiarism is treated seriously. If we suspect that work has been copied, ALL students involved are likely to be awarded a mark of zero for the assignment.
There are 4 tasks in this assignment.
Task 1: Download and extend the A5.xml file available on Moodle (also available here) to include all the information provided in the following table. The first hotel has already been inserted to demonstrate the structure that should be used for each record.
        Hotel Name
        Stars
        Reviews
        Score
        Novotel Wollongong Northbeach
        4
        3123
        8.1
        Sage Hotel Wollongong
        4
        3802
        7.8
        Adina Apartment Hotel Wollongong
        4
        1046
        8.7
        Quality Suites Pioneer Sands
        4
        656
        8.6
        Mantra Wollongong
        4
        1052
        7.6
        The Belmore All-Suite Hotel
        3
        1214
        8.8
        Boat Harbour Motel
        3
        869
        8.0
        Solomon Inn Wollongong
        3
        731
        7.3
        Best Western City Sands
        4
        1219
        8.3
        Flinders Motel
        3
        701
        7.4
Information obtained from Hotels Combined on the 25th of February 2021.
Please Note:
· Save your completed file as “A5_TASK1.xml”.
· This will be the first of 4 separate files that you must submit for this assignment.
· Check that your XML is well-formed by using the validation service available at the following URL:
https://www.xmlvalidation.com
This task is worth 1.5 marks.
Task 2: Create the HTML and CSS code needed to reproduce the following web application interface. Extend your code by including the JavaScript & AJAX functionality listed in “Design Requirements”. You must use the same layout and inclusions as shown below.
Figure 1: Initial State
Figure 2: Final State
Design Requirements:
· The heading text should be displayed within a h2 element.
· The button must have a width value of 100px and a padding value of 10px.
· A background colour for the button should also be specified (see “Design Resources”).
· The following actions must occur when the “Start” button is clicked:
1. An AJAX script is called to access and read the “A5_TASK1.xml” file
2. A for loop is used to populate a table with the collected XML data
3. A switch statement is used to display a suitable “Star Rating” image (see “Design Resources”)
4. An if/else if/else structure is used to set the “Overall Score” background colour
· The table heading text must be displayed within a caption element.
· The caption should have a font size of 21px and a matching bold style.
· The caption must also have a top padding value of 30px and a bottom padding value of 10px.
· All hyperlinks should display their destination in a new window/tab.
· The table must utilise th and td elements with a padding value of 10px and a font size of...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here