I. Module Learning Outcomes 1. Demonstrate a critical understanding of the theory and application of advanced programming techniques 2. Design and implement programs for real-world problems 3....

all question saved in the file


I. Module Learning Outcomes 1. Demonstrate a critical understanding of the theory and application of advanced programming techniques 2. Design and implement programs for real-world problems 3. Communicate design decisions for the selection, storage and manipulation of data 4. Critically evaluate the legal and ethical impact of software developments in real-world contexts. This formative will contribute to and support the development of a software application on which the summative assessment is based. II. Assessment Background/Scenario You should use the client brief and given data set for your formative work. As this brief is identical to the summative you should not share or distribute your work with your peers. Your summative work should be all your own work. Client Brief This document provides the client brief which should be used for the development of a single program or a collection of related programs, for submission with the final summative report. You have been asked to design and develop a prototype application that demonstrates how data form the given data set can be formatted, cleaned, and used to generate specific outputs (as listed below). Functional requirements The application should provide the following functionality: A means to load the initial data set (which consists of three CSV files) and translate it into a suitable format, either XML, or JSON or an entity relationship structure (not CSV) A means to back up the data in this format using either files or a database. This should preserve the current state of the data when the program is closed, and make it available when the program is reopened. A process for cleaning and preparing the initial data set, managing inconsistences, errors, missing values and any specific changes required by the client (see below). A graphical user interface(s) for interacting with the data that enables the user to: o Load and clean an initial data set (from the CV format) o Load and save a prepared data set (from its translated format) o Use the prepared data set to generate output and visualisations o Manipulate the range of values used to generate output and visualisations It should be assumed that this program will be able to handle other sets of data generated from the same source, i.e. data with the same column row headings but containing different values and anomalies. However, the application is not required to be generic (work with multiple unknown data sets). Given this best practice regarding code reuse, encapsulation and a well- defined programming interface should be applied where applicable. Data manipulation and outputs The client initially wants the application to perform the following actions on the data: 1. Outputs should not include any data from airports that have a ‘type’ ‘closed’ 2. The ‘type’ column contains information of the type of airport. Extract this out into a new column, one for each category of airport, for: a. all UK(GB) airports, that are , large_airport, medium_airport, small airport b. join each category, large_airport, medium_airport, small airport to the communication frequencies ‘ frequency_mhz’ that the airport uses for communication ensuring that each airport in all categories is correctly matched with its communication frequencies. 3. The client initially needs information to generate the following and output the results using appropriate representation: a. Produce the mean, mode and median for the ‘frequency_mhz’ i. For each large_airport ii. For frequencies more than 100 mhz 4. Produce a suitable graph that display the communication frequencies used by ‘small_airport’ You may need to consider how you group this data to make visualisation feasible 5. Determine if there is any significant correlation between the communication frequencies used by the 3 different categories of airport. ‘Are some frequencies used more than others?’. You will need to select an appropriate visualisation to demonstrate this. Non-functional requirements • The GUI interface provides appropriate feedback to confirm or deny a user’s actions • The application manages internal and user-generated errors Technical requirements • The application is built using Python 3.7.* • The application uses one or more of the advanced APIs introduced on this module such as: NumPy, panda, Seaborn, Matplotlib. It should NOT use alternative APIs for this functionality, however Python core libraries can be used to support where applicable, such as support for a database. • The application runs within the anaconda environment using a Jupyter notebook • The application or its parts do not run concurrently, do NOT use Python threads The requirements specified here are the constraints within which you need to produce your development. They are not negotiable with the client. III. Assessment Task(s) You should use the above brief and the production opportunities at the end of each week to develop either a single piece of software or a collection of working programs. These will form the necessary learning and development to enable you to undertake and provide appropriate evidence in your summative assessment report. The formative submission provides you with an opportunity to receive feedback on your approach and thinking process, which will prepare you for the summative. The summative assessment is based 100% on the report you produce (NOT the production of the software), which requires you to evidence your development with appropriate code samples, design documents and justifications on your approach and decisions. Given this the formative will focus on providing feedback to support this, NOT on correcting code samples. Given the three productions from week 2-4 (inclusive), select ONE to submit as your Formative work. Make it clear which production you are submitting. The following is a copy of the information you will find on each week’s production page on Canvas. Week2, Production 1: Data translation for storage To enable a program to function each time it runs there needs to be an external and persistent data storage system that retains the state of the data. There are two considerations here. The physical storage medium for the data, such as a file or database and the format/structure of the data such as CSV or XML. This week you have explored a number of different formats in both regards as follows: CSV XML JSON MongoDB SQL Database Other file formats? Select ONE format that you consider as most suited to the data in the scenario and the aims of the program. The format selected should support both the nature of the data and the aims of the application being designed. It should provide distinct advantages and minimal limitations over other data formats. It should not be selected solely because it is the easiest to program, although this can be included as an advantage if applicable. Design: Produce a model that shows how the data needs to be restructured to take best advantage of the selected format and work more effectively within the program. Where you have created groups or objects from the data show how they relate to each other. Implementation: Implement a parser that reads in the original data file. You may want to create a subset of the data file for testing and speed. Your program should then perform the translation from the original format/structure into your selected format. The result of this process should then be outputted to its relevant physical medium (files/database). At this stage there is no requirement to handle data types (other than those inherent in the data format, i.e. numbers and “Strings”), conversions or missing data. The program can be demonstrated as a simple console based application, requiring the input of the file name by the user and sufficient output to demonstrate the correctness of the translation process. Your program should produce regular output statements to the console so that it is easy to follow what the program is doing and provides a visual demonstration of the translation process. This will also be handy for any debugging required. Reflection on design decisions: Write a 200-word reflection that states the reason for your format selection and the advantages the format leads to the data and application and any limitations on the future use of this data within the selected format. You should consider what literature supports your reasoning/decisions. Week 3, Production 2: Interactive GUI Given the client brief, there are a number of requirements to develop a GUI to enable users to interact with the data and generate statistical information and visualisations. For this production focus on designing the layout and identifying the types of interaction that will be required. Design: Produce a set of wireframe designs for the application. These do not need to be final, changes can be made after the formative submissions, however they should focus on giving a complete view of the applications interface (not a collection of different ideas for one part of the interface). It should be clear how one part of the interface leads to another, and where any additional windows are opened. Alongside this produce a set of integration diagrams (state-machines are a possible option here) to demonstrate 2 or 3 key areas of interaction. It should be clear which aspects of the interface these interactions relate too. Implementation: Create a first iteration implementation of the interface design. This may include small adaptations that are different from the design but you should aim for at least 90% of the design being similar. That is to say it should be very clear that one (design) is a model of the other (implementation). Avoid designing via coding, you will find the result disjointed. The key to GUI is design on paper first build second. Reflection on design decisions: Write a 200-word reflection that states the reason for the selection of the layout and components for the interfaces design. Clearly identify which specific aspects of the requirements or data’s structure informed the decisions. You should consider what literature supports your reasoning/decisions Week 4, Production 3: Data Cleaning and Initial Analysis Given the client brief, there are a number of requirements to provide accesses to specific parts of the data and provide answers to specific statistical questions. For this production focus on how your application will manipulate the data (cleaning and shaping) and developing functions for calculating some of the statically requirements. Design: Consider the steps required for cleaning and shaping and any of the calculations (functions) you want to develop. Write pseudocode to sketch these out before you write code. Mentally or on paper walk the data through your pseudocode steps to test how effective your solution is. Implementation: The first stage is to clean the data and make sure it is fit for purpose. Examine the data careful to identify anomalies and then
Mar 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here