Create an input form that accepts user input for a service

Assignment Help Database Management System
Reference no: EM132310797 , Length: word count : 1500

Assignment Task

Part 1 - Demonstration Code

Important Note: For ease of demonstration, your code must be self-contained. In addition to using Standards based HTML and Python, PETL, Bottle and Parser are the only additional frameworks you should need. If you use others they must be provided and not require
installation.

To demonstrate your code, you have been provided with four data sources compiled with fictitious sample data. These are:

• “Offices.csv” contains the information about the government offices,

• “Office_Locations.csv” contains the location coordinates for each office,

• “Services.xml” contains a list of government office services, and

• “Office_Services.csv” contains a list of offices and the services they offer.

Task 1 - Data integration demo.

You are to submit a python script named “data_integration.py” which first clean the data then merge it into one CSV output file named “office_service_locations.csv”.

Task 1.1 Data Cleansing

Clean the data in the phone number field in “Offices.csv” to ensure all phone numbers are in the same format:

(+international_code) regional_code phone_number

That is, all phone numbers should have the international code for Australia “(+61)”, followed by a space, followed by the regional code in two digits, followed by a space, followed by 8 digits of the local phone number. For example, the Brisbane office should be formatted to:
(+61) 07 36728709

Whilst regional codes do not always adhere to state boundaries, you may apply the following regional codes for each state:
NSW = 02
VIC = 03
QLD = 07
SA = 09

Task 1.2 Data Merge

Merge the data from all four data sources, and generate output file “office_service_locations.csv” with the following fields (attributes):

• OfficeServicesID – a unique field identifying each record from Office_Services

• OfficeID – a foreign key linking to Services from Office_Services

• Service – the ServiceName from Services

• OfficeID – a foreign key linking to offices and locations

• Office – the “Contact Name” from offices

• Suburb – the “Suburb” from offices

• Phone – the cleaned “Phone Number” data from offices

• Email – the “Email” address from offices

• Lat – from Office_Locations

• Lon – from Office_Locations

Task 2 – RESTful Web Service Demo

You are to submit a python script named “office_locator.py”.

For tasks 2.1 to 2.2, your script should build a RESTful web service that supports a ‘getoffices’ query from the client browser similar to “/getoffices?serviceid=x”. The server Web Service will return a JSON table with the following fields (attributes): Office, Suburb, Service, Phone, Email, Lat, Lon.

Data is to come from the “office_service_locations.csv” you built in task 1.2.

Task 2.1 Return offices for a service

The server will return a table of records (tuples) of offices offering the service ID passed to it.

Task 2.2 List of Services

To populate your drop-down list in task 3.1, you will need to return a JSON table of all records from “services.csv” with the following fields (attributes): ServiceID, Service. The server should respond to a “getservices” request.

Task 3 Mashup Demo

You are to submit a HTML file “office_map.html” and optionally a CSS file named “office_map.css”.

Task 3.1 Form Layout

You are to create an input form that accepts user input for a particular service. The input for the service should be a drop-down list whose items should be created dynamically from a call to getservices from task 2.2.

The drop-down list should be accompanied with descriptors and a “Locate Offices” button.

Task 3.2 Google Map

Clicking the “Locate Offices” button will trigger a “getoffices” web service to retrieve a table of offices matching the service with attributes described in task 2. From this data you are to display a Google cluster map marking the position of the returned offices. The map should be
centred and zoomed to an appropriate level to show all offices in Australia.

Task 3.3 Information Window Demographics

Upon clicking a marker bubble on the map, the user will be displayed an information window containing: Contact Name, Suburb, Phone Number, and a clickable email address.

Part 2 – Integration Report

You are required to write a report explaining the theory underlining the key concepts around the design and implementation of your demonstration system. You are also required to explain how to run your code. Finally, you are to include all code submitted in the appendices to the report, note that the code will not count towards the word count.

Attachment:- Database.rar

Reference no: EM132310797

Questions Cloud

Measures including sectors of the economy : How do you explain and synthesize the potential impacts on the US economy tied to these austerity measures including sectors of the economy that would be affect
Challenges of economic growth : When looking at the challenges of economic growth, you will find that we are focused on how to have the economy grow without an increasing amount of debt
How can deadlock occur and under what circumstances : How can deadlock occur and under what circumstances - Research "livelock" and describe it in your own words with example
What is double dividend effect : Consider two possible tax schemes on natural resources. One levies fixed fee per production amount (for example, per barrel for oil and per tones for iron ore)
Create an input form that accepts user input for a service : ICT705 Data and System Integration University of the Sunshine Coast Australia-Write a report explaining the theory underlining the key concepts.
Will a production possibility curve : Will a production possibility curve expand outward more if the country prefer more consumer goods than capital goods, after 10 years?
Estimate the demand curve : Suggest 2 or 3 ways that you can think of that a firm could use to try to estimate the demand curve for their product.
Dynamic data structures and file processing : COIT11134 - Object Oriented Programming - CQUniversity - develop a Java GUI application to help manage their business - Continue to develop a Java GUI
What factors led to the deindustrialization : What factors led to the deindustrialization of the U.S. Manufacturing Belt in the 1970s and the transformation of Silicon Valley

Reviews

Write a Review

Database Management System Questions & Answers

  Describe three examples in which databases could be used

Describe three examples in which databases could be used to support decision making in a large organizational environment.

  Database design proposal product in the final phase of the

in the final phase of the database design proposal assignment you are required to design a working prototype of the

  Prepare a dfd and context diagram for the system

Journal entries have to be reconciled with the spreadsheet on a daily basis - Prepare a context diagram for the system and also prepare a diagram 0 DFD for the system

  What must a user guarantee with respect to a transaction and

What must a user guarantee with respect to a transaction and database consis-tency? What should a DBMS guarantee with respect toconcurrent execution of several transactions and database consistency?

  Explain how to normalize a database to three-nf

Write a 350- to 700-word informal paper using Microsoft Word explaining how to normalize a database to 3NF. Include in your explanation how you would assure the foreign keys are specified.

  What are the candidate keys of r

Suppose you have a relation schema about teaching classes that has the following attributes: Class, Instructor, Time and Room.

  Use the contents of figure 1 to work problems 1-31write the

use the contents of figure 1 to work problems 1-3.1.write the business rules that govern the relationship between agent

  Estimate the height of the b plus tree

Estimate the height of the B+ tree. (Giving a range of heights is fine.) Also estimate the amount of memory needed to store the tree, including leaves but not including the posting lists themselves.

  Write the sql statements to create the database structures

ITECH 1006 - Database Management Systems Assignment. For this assignment you will implement and query a database from a supplied ER Diagram and Schema. You will be required to write the SQL statements to create the database structures, to fill the ..

  Describe the data contained in the database

Describe the data contained in the database. Describe the tables, fields, and records in the database. Describe the keys, indexes, and relationships in the database. Identify data redundancy and describe potential solutions.

  Oracle datatypes for attributes from a normalized relation

Choose Oracle datatypes for the following attributes from a normalized relation including: Vendor(VendorID, Address, ContactName) Item (ItemID, Description) PriceQuote(VendorID, ItemID, Price) Describe why you selected the datatypes for each attri..

  What are the limitations of conventional approach

1. What are the limitations of conventional approach of managing data? Explain.2. For what record size will clustering be of no benefit to improve performance? Can a table have clustering on multiple fields simultaneously?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd