Assignment OO Programming Sem XXXXXXXXXX Java The aim of this assignment is to develop a java application that puts into practice the programming skills taught on your OO programming course. You have...

1 answer below »
question number 2 please


Assignment OO Programming Sem 2 2021 Java The aim of this assignment is to develop a java application that puts into practice the programming skills taught on your OO programming course. You have two options for your project: • You can pick one of the ideas described in this document. This is the most typical option. • You can create your own idea e.g. a game, some sort of analysis tool, etc of your choice – but you need to get your idea approved first, to check it’s suitable. This assignment is worth 60% of your Sem 2 CA (and therefore, 30% of your OVERALL CA mark. What next? If you are doing one of the 4 ideas below - just go ahead and get started. If you are doing your OWN project idea, please submit a description of your idea to me by Friday March 19th. Your idea must have some sort of algorithm in it – just as the sample projects shown here do – so keep that in mind. You should divide it into the core functionality, and the optional advanced features. I will approve the project or send it for redrafting if it is not suitable. The sooner you send it to me, the sooner you get it returned. Assignment criteria As well as meeting the requirements of the application: • All or most of your assignment should be written in Java. If there are extra parts (e.g. database) that is fine. • Your code should demonstrate the use of OO concepts. - including using classes for separate entities (as opposed to dumping everything into a single class), methods, encapsulated attributes, constructors, inheritance, interfaces, polymorphism. • Code should follow java naming standards, be well indented, bracket aligned , comment headers, comments. • Use BitBucket or GIT to manage your source code. Your code and video link will be collected from your whatever code repository you use (more on this). If you haven’t used GIT, we can cover in class. • If you make use of any code directly from a book or online source, you must show this in the comments. You will be marked on code that is your own code. • The assignment is due in on by end of day Monday 19th April Assignment OO Programming Sem 2 2021 Java What you submit: - Code (either as zip file or repository link); - Video: 3 minutes or less, in which you demo all of your app. Show each screen being used, explain what data you are entering or what you are clicking, any error checking etc. as if you were demo’ing in person. Just show your screen with your voice - as opposed to you! - Readme file: Include a readme file to explain your project. This should list: o List of classes, with a description. o Description of the core functionality you included; o Description/list of the optional functionality you included. o Explain what you would add if you had more time. Marking The marking scheme will be: - 10% Project management (demonstrating regular commits using GIT over the lifetime of the assignment) - 10% video (and read me file) explaining your assignment – available via YouTube or any video hosting service - 40% Basic core functionality: for well functioning, well implemented, using code that follows coding standard core functionality – i.e. the core of whatever problem you are solving. - 40% Optional advanced features: for added functionality that enhances whatever your idea is. Plagiarism means attempting to pass off someone else’s work as your own or deliberately allowing another student to copy your work Be careful: IF YOU COPY YOUR ASSIGNMENT, YOU GET ZERO PLUS & IT GOES ON YOUR RECORD The following four ideas are available to choose from : Assignment OO Programming Sem 2 2021 Java 1. Machine learning model, using Naïve Bayes This assignment allows you to learn about machine learning, including building a predictive/classification model. The machine learning classifier you will use is Naïve Bayes. The purpose of the assignment is to build a prediction tool that predicts whether a secondary school pupil will become an entrepreneur or not (i.e. own their own business) in the future. The model uses previous examples of secondary school students and whether they later became entrepreneurs or not – and has information such as whether the student studied “business subjects”, had a part time job, had a guardian/ parent who owned their own business and student gender. Using java, the assignment should “train” a model using the dataset provided. Don’t hard code the classifier in anyway – make sure it is driven by the data dynamically in your code. Using a GUI, allow for student’s details to be put entered in, and the prediction model will give the probability of whether they are likely to be an entpreneur in the future. To make this work well , you will need to have a GUI to take the new input (student details) that you want to predict about. • Have the application read in the training set and do the training dynamically (i.e. don’t hard code the rules for the classifier). • If extra data rows, termed “instances” are added to the dataset, your classifier should still work (in fact, it will be improved as a result of new data). • Allow for model to train on some of the dataset (e.g. 70%) and test itself on the remainder of the dataset(30%) so that it knows how “good” it is (i.e. be able to evaluate itself). Dataset Columns: (Full dataset will be put on Brightspace) Features: Student gender, Features The label Student gender Parent/ guardian had own business Has a part time job Urban or rural address Studies business subjects Become an Entrepreneur Female Yes No Rural No Yes Etc Assignment OO Programming Sem 2 2021 Java 2. Topic Modeller This tool will allow a user to detect whether a set of documents are “about” the same topic or not. The tool will analyse the words in each document – and decide what the most common words are in each document. “Stop” words should be excluded from the analysis (this is the list of words that don’t really add meaning which are not included in the similarity measure – such as “the”, “a”, “of” “he”.. etc. Sets of stop words can be found online (for example at : http://www.lextek.com/manuals/onix/stopwords1.html) Basic on the overlap in the top X words (e.g. 10), a grade of likelihood of it being about the same topic can be produced (e.g. 70% overlap in the top ten words = 70% likely to be about the same topic or whatever way you decide to do this). Likewise, documents with small overlap on most comment words (e.g. < 40%) are definitely different topics. additional features that could be included to include marks would be things such as:s • improving the gui quality so that it looks better than a very basic gui (e.g. layout, colour etc). • having the ability to select documents through a “file chooser” gui, with graphical results rather than just console • allowing words which appear on the list as common across documents - but which are obviously not informative about the topic – to be added to the stop word list, and the analysis re-run. • displaying the results - so that the user can easily see how many, and what topics (i.e. what word groups) are returned. • saving down the results persistently to a file, with the overlapping words written out too. • extra features that you think will enhance the application. http://www.lextek.com/manuals/onix/stopwords1.html assignment oo programming sem 2 2021 java 3. data explorer note: i will cover sql database connection (briefly) in class. data analysis is a major area within computer science . apart from the big data generated by social media and internet generally – there is an insatiable desire on behalf of companies to analyse their data in order to reveal “knowledge” hidden in the data. for example, an optical chain analysed their sales data to determine that sales of high end high profit glasses peaked on friday afternoons –so they made sure that they had enough staff to service this demand. the irish government have put 1000s of datasets into public use at a portal site: https://data.gov.ie/data this has data about a whole plethora of public interests and government control information e.g. about crime rates, hospitals, schools, transport, environment, energy use and so on. the purpose of this project is to take one of these datasets – and build a tool that shows interesting facts from the dataset. the dataset formats include comma separated (csv) which is probably the easier to work at – so these datasets are at : https://data.gov.ie/data/search?res_format=csv you don’t have to use the full dataset if it is too big. but to query it, you will need to load the dataset, or a subset of it, into a relational database yourself – and get a connection working between your java code and the database (using jdbc). your project will need to have a gui that allows query parameters to be put in. extras - ability to see the results through the gui too. - flexible queries – not just one or two hard coded whatever else you decide might enhance the application. https://data.gov.ie/data assignment oo programming sem 2 2021 java 4. my search engine this tool will allow you to search for a term across a set of text sources – e 40%)="" are="" definitely="" different="" topics.="" additional="" features="" that="" could="" be="" included="" to="" include="" marks="" would="" be="" things="" such="" as:s="" •="" improving="" the="" gui="" quality="" so="" that="" it="" looks="" better="" than="" a="" very="" basic="" gui="" (e.g.="" layout,="" colour="" etc).="" •="" having="" the="" ability="" to="" select="" documents="" through="" a="" “file="" chooser”="" gui,="" with="" graphical="" results="" rather="" than="" just="" console="" •="" allowing="" words="" which="" appear="" on="" the="" list="" as="" common="" across="" documents="" -="" but="" which="" are="" obviously="" not="" informative="" about="" the="" topic="" –="" to="" be="" added="" to="" the="" stop="" word="" list,="" and="" the="" analysis="" re-run.="" •="" displaying="" the="" results="" -="" so="" that="" the="" user="" can="" easily="" see="" how="" many,="" and="" what="" topics="" (i.e.="" what="" word="" groups)="" are="" returned.="" •="" saving="" down="" the="" results="" persistently="" to="" a="" file,="" with="" the="" overlapping="" words="" written="" out="" too.="" •="" extra="" features="" that="" you="" think="" will="" enhance="" the="" application.="" http://www.lextek.com/manuals/onix/stopwords1.html="" assignment="" oo="" programming="" sem="" 2="" 2021="" java="" 3.="" data="" explorer="" note:="" i="" will="" cover="" sql="" database="" connection="" (briefly)="" in="" class.="" data="" analysis="" is="" a="" major="" area="" within="" computer="" science="" .="" apart="" from="" the="" big="" data="" generated="" by="" social="" media="" and="" internet="" generally="" –="" there="" is="" an="" insatiable="" desire="" on="" behalf="" of="" companies="" to="" analyse="" their="" data="" in="" order="" to="" reveal="" “knowledge”="" hidden="" in="" the="" data.="" for="" example,="" an="" optical="" chain="" analysed="" their="" sales="" data="" to="" determine="" that="" sales="" of="" high="" end="" high="" profit="" glasses="" peaked="" on="" friday="" afternoons="" –so="" they="" made="" sure="" that="" they="" had="" enough="" staff="" to="" service="" this="" demand.="" the="" irish="" government="" have="" put="" 1000s="" of="" datasets="" into="" public="" use="" at="" a="" portal="" site:="" https://data.gov.ie/data="" this="" has="" data="" about="" a="" whole="" plethora="" of="" public="" interests="" and="" government="" control="" information="" e.g.="" about="" crime="" rates,="" hospitals,="" schools,="" transport,="" environment,="" energy="" use="" and="" so="" on.="" the="" purpose="" of="" this="" project="" is="" to="" take="" one="" of="" these="" datasets="" –="" and="" build="" a="" tool="" that="" shows="" interesting="" facts="" from="" the="" dataset.="" the="" dataset="" formats="" include="" comma="" separated="" (csv)="" which="" is="" probably="" the="" easier="" to="" work="" at="" –="" so="" these="" datasets="" are="" at="" :="" https://data.gov.ie/data/search?res_format="CSV" you="" don’t="" have="" to="" use="" the="" full="" dataset="" if="" it="" is="" too="" big.="" but="" to="" query="" it,="" you="" will="" need="" to="" load="" the="" dataset,="" or="" a="" subset="" of="" it,="" into="" a="" relational="" database="" yourself="" –="" and="" get="" a="" connection="" working="" between="" your="" java="" code="" and="" the="" database="" (using="" jdbc).="" your="" project="" will="" need="" to="" have="" a="" gui="" that="" allows="" query="" parameters="" to="" be="" put="" in.="" extras="" -="" ability="" to="" see="" the="" results="" through="" the="" gui="" too.="" -="" flexible="" queries="" –="" not="" just="" one="" or="" two="" hard="" coded="" whatever="" else="" you="" decide="" might="" enhance="" the="" application.="" https://data.gov.ie/data="" assignment="" oo="" programming="" sem="" 2="" 2021="" java="" 4.="" my="" search="" engine="" this="" tool="" will="" allow="" you="" to="" search="" for="" a="" term="" across="" a="" set="" of="" text="" sources="" –="">
Answered 7 days AfterApr 14, 2021

Answer To: Assignment OO Programming Sem XXXXXXXXXX Java The aim of this assignment is to develop a java...

Ankit answered on Apr 21 2021
135 Votes
Modeller/.classpath

    
    
        
            
        
    
    
        
            
        
    
    
    
    
Modeller/.project

     Modeller
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            

        
        
             org.eclipse.wst.common.project.facet.core.builder
            
            
        
        
             org.eclipse.wst.validation.validationbuilder
            
            
        
    
    
         org.eclipse.jem.workbench.JavaEMFNature
         org.eclipse.wst.common.modulecore.ModuleCoreNature
         org.eclipse.wst.common.project.facet.core.nature
         org.eclipse.jdt.core.javanature
         org.eclipse.wst.jsdt.core.jsNature
    
Modeller/.settings/.jsdtscope

    
    
    
        
            
        
    
    
    
Modeller/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=9
org.eclipse.jdt.core.compiler.compliance=9
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=9
Modeller/.settings/org.eclipse.wst.common.component







Modeller/.settings/org.eclipse.wst.common.project.facet.core.xml








Modeller/.settings/org.eclipse.wst.jsdt.ui.superType.container
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Modeller/.settings/org.eclipse.wst.jsdt.ui.superType.name
Window
Modeller/build/classes/com/project/Compare.class
package com.project;
public synchronized class Compare {
String common;
public void Compare();
public static java.util.Set commonMethod() throws java.io.IOException;
public static String[] Firstfile() throws java.io.IOException;
public static String[] Secondfile() throws java.io.IOException;
public static void main(String[]) throws...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here