COSC1295 Advanced Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132603297

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: EM132603297

Questions Cloud

Advantages of using a balanced scorecard : 1. You're a manager who employs a participative control approach.
Functional requirements and assurance requirements : Distinguish between the three main security goals. Explain the difference between functional requirements and assurance requirements.
Differentiate basic and applied research : Differentiate Basic and Applied research with three practical Examples.
Who are the stakeholders in this case : Barry Yellen, CPA, is a sole practitioner. The largest audit client in his office is Rooster Sportswear. Who are the stakeholders in this case
COSC1295 Advanced Programming Assignment : COSC1295 Advanced Programming Assignment Help and Solution, RMIT University - Assessment Writing Service - Describe and apply basic algorithms
Cloud computing are worth threats and vulnerabilities : Do you feel the benefits of cloud computing are worth the threats and vulnerabilities?
What is the extent of the role played by external factors : What is the extent of the Role played by external factors in the strategic control of formal and informal organizations?
Implementing the new idea : Indicate the approach you will take in implementing the new idea. Provide support for your suggestion.?
Compute for the net income earned during the year : MARK entered into a franchise agreement with MARIAN, Inc. to sell M&M's products. Compute for the net income earned during the year

Reviews

len2603297

8/18/2020 2:48:04 AM

It contains milestones which I need to submit weekly. So I need in that format. And I have done some work on first milestone already so if possible can you extend in that?

Write a Review

JAVA Programming Questions & Answers

  Explain the types of malware and the potential impact they

write a 200- to 300-word short-answer response to the following bull describe the types of malware and the potential

  Create a new child class and new driver program

In this assignment you will create a new child class and new driver program. Please review that example before continuing with this assignment. You should fully understand the shape program above

  Javascript code to prompt and read the cost of a pizza

This is an exercise in Client-Side JavaScript - Call the function you wrote to calculate the cost per square inch of the pizza

  User and prints the number of occurrences of each letter

File CountLetters.java contains a program that reads a word from the user and prints the number of occurrences of each letter in the word. In reviewing the code, note that the word is converted to all upper case first, then each letter is translated ..

  Display the birthday messages.

I figured out how to work with the dates. Right now all it does is prompt for user name and birthday, and then output the information back along with age in years and days.

  What are differences between trusted and untrusted applets

What are the differences between trusted and untrusted applets? Why doesn't an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?

  Write a program that displays a drawing popular hangman game

Write a program that displays a drawing for the popular hangman game, as shown in Figure 15.32(c). draws a sketch for the hangman game.

  Compute a java programming writing a number converter

Compute a Java Programming - Writing a number converter. Surgeons have a very tough schedule throughout the day to deal with patients, perform surgeries, visit wards, and attend meetings among others.

  Accesses element of array

Which of the following correctly accesses element 13 of array Book

  Explain roles and responsibilities of the developer

In this assignment, you will articulate the roles played by team members in a software development project. You will explain how the Java programming language.

  Create subject class whose instances will represent subjects

For this task you will create a Subject class, whose instances will represent the subjects for study at a university. Getters will provide access to attributes.

  Create java program to find number of days left in that year

Create a Java program called "DaysLeftInYear.java" that outputs the number of days left in that year. use the calendar class to represent dates. Use the DateFormat class to display the current date in the output.

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