Implementation of small to medium sized application programs

Assignment Help JAVA Programming
Reference no: EM132610376

COSC1295 Advanced Programming - RMIT University

Learning Outcome 1: use the Java programming language in the implementation of small to medium sized application programs that illustrate professionally acceptable coding and performance standards.

Learning Outcome 2: demonstrate knowledge of the basic principles of the object-oriented development process and apply this understanding to the analysis and design of solutions for small to medium scale problems.

Learning Outcome 3: describe and apply basic algorithms and data structures, in particular simple searching and sorting of data stored in data structures and manipulating data.

Learning Outcome 4: implement basic event-driven programming and graphical user interfaces in Java.

Milestone 1: Preparing the Data (Involves File Processing, Exception Handling and Input Validation)

Write a menu-driven program that helps the project manager capture the details related to each project, project owner, company, student personal details and student preferences, in separate files. There should be an additional menu option to shortlist projects based on student preferences. Note, there can be multiple project owners from the same company and multiple projects by the same project owner. This program should perform appropriate error checking and input validation by validating all user inputs (Your program should not crash at any time because of invalid inputs).
Menu
A. Add Company
B. Add Project Owner
C. Add Project
D. Capture Student Personalities
E. Add Student Preferences
F. Shortlist Projects

A. Add Company
The details related to the company should include a unique company ID, company name, ABN number, company URL and address. The company details added should be saved to the file companies.txt.

B. Add Project Owner
The details captured by each project owner (contact person) should include first name, surname, a unique project owner ID (of the form Own1, ...), role (such as software engineer), email and the ID of the company the project owner represents (of the form C1, ...) The project owner details added should be saved to the file owners.txt.

C. Add Project
The details captured for each project should include a title, a unique project ID (of the form pr1, ...), brief description (one line), ID of the project owner (of the form Own1, ...) and the ranking of the skills sought after for the project (4 being the highest and 1 the lowest) in the 4 different technical specialization (Skills) at MRIT university shown in the table below. The project details added should be saved to the file projects.txt.

Technical Skill Categories
(P) Programming & Software Engineering
(N) Networking and Security
(A) Analytics and Big Data
(W) Web & Mobile applications

D. Capture Student Personalities
Now assume the project manager can download a file named students.txt capturing the list of students doing the project course in current semester with their average grades (HD=4, DI=3, CR=2, PA=1, NN=0) in project related technical skills (P programming, N networking, A analytics, W web) with the format shown below. Assume students have IDs S1 to S20.

file format for students.txt (You need to create such a file with 20 students))

The project manager interviews each of the students in the list during the first week and assigns their personality types as shown in the table below to ensure balanced teams are formed with at least one with leadership attributes in each team. It is required that the personality type assigned to students must be equally distributed across types.

 

Characteristics

Personality Type

Likes to be a Leader (Director)

A

Outgoing and maintains good

relationships (Socializer)

B

Detail oriented (Thinker)

C

Less assertive (Supporter)

D

In addition, the project manager allows each student to specify up to two others (student-numbers) they cannot work with in a team because of prior personal conflicts. Both the personality and conflict information must be captured and appended to existing file after the interview and saved in a text file studentinfo.txt, as shown below.

Personality Type assigned = B
file format studentinfo.txt

Note, all project must be of size 4. Exceptions must be thrown when the personality types of the 4 students assigned by the project manager is not balanced. For example, if there are 20 students, the maximum number of personality types A, B, C and D can only be 5, and hence any attempt to assign A,B,C, D type to more than 5 students should result in an exception.

E. Capture Student Preferences
Students having attended the presentations for 10 projects decide their preferences and submit them via discussion- board by the end of first week, with 4 for most preferred and 1 for the least. These preferences should be saved in the file preferences.txt. A student may add preferences multiple times, but only the final preference should be counted.

file-format for preferences.txt

F Shortlist Projects based on Preferences
The student preferences for projects (from 4 down to 1) should be summed up for all the projects before discarding the 5 least popular projects in the file projects.txt.

Milestone 2: Forming Project Teams Manually and Creating the Test Cases

In this milestone you are required to ensure teams are balanced in terms of personality types, each team has at least one leader type (A) and students with personality conflicts are not placed in the same team. In addition, for each team you are required to compute Team-Fitness Metrics which will allow project manager to swap members when necessary (next milestone) considering ethical considerations as well as preferences of owners and students.

Team-Fitness Metrics
1. Average student skill competency for each project team. This value should not vary greatly between teams to ensure fairness (ethical consideration).
2. Percentage of students who got their first and second preferences in each of the teams. A good allocation should try to maximize this percentage to improve student satisfaction.
3. Skills shortfall for each project based on categories in which the average grade for a skill category (between 0 and 4) falls below the requested level for that category. It is derived by summing up the absolute difference between skill level requested and the average skill level of team members for categories where the average skill competency level is lower than the requested level. For example, if a project requested 4 for P, 3 for A, 2 for W and 1 for N, and the average skill competency for these categories are 1.5, 2.5, 2.5 and 3 respectively, then the skills shortfall for that project is 3 being (4 - 1.5) + (3 - 2.5). The project manager aims to minimize the skills shortfall and to balance it across teams to ensure all project owners get members with skill competencies close to what was requested.

Extending the Menu Driven Program
You are required to extend the menu-driven program creating two additional options. You are expected to make use of the data stored in the files projects.txt, studentinfo.txt and selections.txt.
A. Form Team
B. Display Team Fitness Metrics
In addition, you are required to create 10 JUnit test cases specified below and serialize all the objects (see below).

A. Form Teams
Project manager should be allowed to specify the project ID followed by the IDs of all the students to be assigned to the project. You are expected to develop the appropriate classes.

B. Display Team Fitness Metrics
Create a sub-menu to allow the user to display the required team fitness metrics. This menu should only be enabled after all the teams are formed.

Test Cases (You are required to write both positive and negative test cases)
a) Average skill competency for a team is computed correctly
b) Percentage of project members getting first and second project preference is computed correctly
c) Skill shortfall for any team is computed correctly.
d) InvalidMember exception thrown when an attempt is made to add a student already assigned to another project team
e) StudentConflict exception thrown when students members who have indicated prior conflicts are assigned to the same team
f) PersonalityImbalance exception whenever a team has less than three different personality types.
g) RepeatedMember exception thrown when an attempt is made to add a student twice to the same team
h) NoLeader exception thrown when a team does not have a leader personality type
i) Standard deviation (see formula in last page) in skill competency across projects computed correctly.
j) Standard deviation for percentage of project members getting first and second project preferences across projects computed correctly
k) Standard deviation of shortfall across teams is computed correctly.

Serialization
Your program should allow all project and student objects to be serialized and retrieved.

Milestone 3: Visual Sensitivity Analysis
The main aim for this milestone is to assist project manager improve fairness and overall satisfaction of all stakeholders as measured by the metrics by assigning and swapping members between teams. To meet this goal, you are required to incorporate appropriate GUI and event handling for adding and swapping members. You are required to combine the model class from the previous milestone with view and controller classes developed with either Scene Builder and fxml or Java FX directly.

• When adding project manager should specify the Student ID and tick an empty location on one of the teams before pressing Add.
• When swapping user should click the two student IDs to be swapped before clicking the Swap button.
• All the metrics must be immediately updated and shown visually. Compute and display the standard deviation for all three metrics.
• You are expected to display error messages in appropriate dialogs (not console mode) when invalid add or swap attempts are made (such as attempting to swap 3 elements at a time).
• You are required to clearly separate the code for the model, view and the controller.
• Appropriate layout managers to ensure GUI window is consistent even when resized

Milestone 4: Object Relational Mapping of all the Project related Data Captured and Derived

This milestone requires you to develop the code for object relational mapping. You are required to write all the client, project and student related data to tables in the relational database. The tables created will be used as inputs to external systems. Your tables must include the necessary primary and secondary keys to make the correct associations. This milestone may be demonstrated in console mode (as with milestones 1 and 2) or GUI mode (milestone 3).

Milestone 5: Using Heuristic Techniques for Creating Well Balanced Teams

This milestone should only be attempted only after completing first three milestone as this will be much more demanding and open ended and you will be expected to learn and use additional patterns and algorithms. You will also be expected make use of multithreading to provide suggestions to the project manager in an unobtrusive way using the console (writing to GUI may interfere with the Java FX threads). The main requirements are:
o Develop algorithms and implement t them to suggest appropriate swaps so that team-fitness metrics can be improved by narrowing the gap between different teams for all three metrics (lowering the standard deviation). You need to demonstrate following these suggestions will help improve the metrics.
o The suggestions should be offered unobtrusively using a separate thread. Your suggestions must not violate any of the hard constraints and lead to a new state which improves all 3 metrics specified.
o Incorporate an undo button allowing previous state to be restored making use of appropriate patterns.

Assignment Details
You are required to combine and refactor the code you developed as part of your milestones after fixing any issues identified. 50% of the marks is allocated for the functional aspects specified in the 5 milestones. The remaining 50% of the marks are allocated for code quality, following good object-oriented design, reflective practices (report 1), scalability (report 2) and lessons learnt (report 3). Please refer to the Canvas rubrics for details.

• Correctly preprocessing data used in team formation (refining milestone 1) and handling all the error conditions and exceptions.
• Correctly carrying out at least 10 test cases that demonstrate an in-depth understanding of the problem domain (refining milestone 2) including the metrics used, enforcing all the constraints associated with teams and standard deviation.
• Effectively facilitating visual sensitivity analysis through the use of visual elements and event handing (refining milestone 3). The graphical user interface designed and implemented must be effective, intuitive, usable and fit for purpose. Effectiveness will be measured by how easily team members can be assigned and swapped, how well the visual elements depict the metrics of interest and how error states are avoided.
• Correctly mapping the data from object-oriented paradigm to relational database tables capturing all the relevant attributes and associations (refining milestone 4).
• Use of heuristic techniques, multithreading and patterns (for undo) to assist the project manager form well balanced teams in an unobtrusive and convenient way (refining milestone 5).
• You are required to demonstrate effective use of object-oriented programming constructs (encapsulation, inheritance, polymorphism, abstract classes, interfaces and composition), principles (SOLID) and GoF patterns (such as singleton)
• You code developed as part of the milestone should be refactored adhering to established coding standards to make it readable and maintainable. Your code must be refactored to have a clear separation between model, view and controller classes.
• A one-page document justifying the data structures, collections, generics, algorithms and design techniques used. If you want to describe your design, you may use UML diagrams. You may be asked to explain these.
• A one-page report on scalability (as the number of students and teams increase) considering possible limitations of the algorithms and GUI you developed. You may be asked to explain these.
• A one-page document on lessons-learnt reflecting on the problems encountered and how you would avoid them in a future project. You may be asked to explain these.

Attachment:- Advanced Programming.rar

Reference no: EM132610376

Questions Cloud

Identify at least four strategies of change : Identify at least four strategies of change. If you were the project director of Coca Cola and you wanted to make "New Coke" a success
General data protection regulation : The EU's new General Data Protection Regulation (GDPR) came into effect on 25 May 2018 and has wide-ranging consequences on a global scale.
Calculate the weighted average number of common shares : Salmon Limited reported profit of $465,325 for its November 30, 2021, year end. Calculate the weighted average number of common shares for the year
Benefits of virtualization software : Discuss the benefits of virtualization software, as described in the text. Do you agree/disagree with these benefits,
Implementation of small to medium sized application programs : Implement basic event-driven programming and graphical user interfaces in Java - implementation of small to medium sized application programs
Error-free storage of digital information : From our weekly chapter reading, digital preservation can be defined as the long-term, error-free storage of digital information,
Pathophysiology of both normal bone formation : Please explain the pathophysiology of both normal bone formation and abnormal bone formation
What tax advice would you offer to Calvin : Calvin called you to ask what tax consequences the interest and dividends will have along with the stock sale. What tax advice would you offer to Calvin
Define the most important capital budgeting techniques : Define the most important capital budgeting techniques. Name at least two capital budgeting techniques (e.g., NPV, IRR, Payback Period, etc.)

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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