Microsoft Word - Assignment 3.docx COMP-1502 ASSIGNMENT #3 Dept. of Mathematics & Computing Mount Royal University Khosro Salmani Introduction The intention of this assignment is to demonstrate skills...

1 answer below »
Please complete Assignment 3. My instructor told us to use our code from assignment 2 to complete assignment 3. I've attached everything you need to complete Assignment 3.


Microsoft Word - Assignment 3.docx COMP-1502 ASSIGNMENT #3 Dept. of Mathematics & Computing Mount Royal University Khosro Salmani Introduction The intention of this assignment is to demonstrate skills in designing and implementing applications with Graphical User Interface (GUI). Additionally, it will give you experience working with logging packages, testing tools, and creating/testing your own code as well. Submission Instructions 1) Both of these two steps for assignment submission are mandatory: 1. All assignment files (Eclipse project folder) must be included in a Git project to share with your instructor, by the due date. No changes must be made to the project after the deadline. The contribution of each team member must be visible in Git history. Your project must be private. You must give your instructor permission to access your project (Read or Collaborator access). 2. One ZIP file needs to submit to Blackboard with the following naming convention COMP1501_A1_ Lastname of member 1_Lastname of member2.zip. 2) The Eclipse Project folder must contain the following: 1. The following directory structure: § bin/ – Compiled Java files. § src/ – Java source code files: o mru/tsc/application/ o mru/tsc/controller/ o mru/tsc/model/ o mru/tsc/view/ o mru/tsc/exceptions § doc/ – Generated Javadoc files and log files. o Ensure the private option is checked and everything is included in the generated documentation. § lib/ – Any third-party libraries. This folder can be empty. § res/ – Any resource or data files. § test/ – Unit test cases. 3) A text file named Readme.txt (Use the README.md for GitHub version) in the root folder of the ZIP archive and contain: a) A project title. b) The authors’ names 4) A runnable JAR file in the root folder of the ZIP archive. a) Use the naming convention: lastname1.Lastname2.jar (i.e.: Edison.Blow.jar). b) It is to be built using only Eclipse IDE and JDK 1.8x. Team work • Before starting the project, read the requirements and meet with your project partner to divide tasks equally. List all tasks and assign them each to one member of the team in a planning document. The document can be connected to your remote repository and shared with all team members and with your course instructor. • Both team members must contribute to the git project. The contribution of each member must be visible in the history of your git project. 20% of the assignment grade will be deducted if the project is not submitted with Git or Blackboard. • Both members of a team must be knowledgeable about the whole project. Your instructor may ask questions from each member of a team or request each member to modify any of the pages in your site. Make sure to review the pages that are developed by your teammate. • Students may be asked demo their project to the course instructor. Submission • Like other assignments you must submit the zip folder of the assignment into Blackboard as well as the GitHub. • Moreover, for this assignment you need to capture a 90 seconds demonstration video. In this video: o You show how your project work and test the project with some inputs o You also mention which parts you were not able to get it to work (Deficiency Report) Assignment Instructions 1. Use only Eclipse IDE. 2. The due date for this assignment is posted in Blackboard. The Problem The Toy Store Company (TSC) wants to implement a GUI (using JavaFX) for the system you implemented in assignment 2. This means you already have the application engine and, in this assignment, you just need to change the view package. In the sample runs you can see the proposed layouts for each part of the application. Note that the layout is not important, but the GUI must have the components that you can see in the sample runs. If it helps, you can use Scene Builder application to design the scenes. Testing We expect to see reasonable JUnit tests written to ensure that the behavior of the controller classes. Logging The project should create and update a log file while the user is running the application. Exception Classes The program must throw an exception if: • The input price is negative (when the user is adding a new toy). • The minimum number of players is greater than the maximum number (when adding a new Board Game). Sample Runs List View Marking Rubric Follows submission guidelines Points Grade 1. Correct files and project structure 3 2. File naming conventions followed 2 3. Submissions to both GitHub and Blackboard 20%* Subtotal 5 The Application 4. Compile and run 10 5. Runnable JAR file 3 6. Generate proper documentation (JavaDoc & Commenting) 7 7. All of the inputs are validated 5 9. Follow naming conventions 5 10. Follow packages and classes instructions 5 11. Home Tab is properly designed & running 15 12. Remove Tab is properly designed & running 10 13. Add Tab is properly designed & running 15 15. Exceptions are implemented properly 3 16. The log file is implemented and provides valuable information 7 17. The program saves the record properly into the text file before exiting 3 18. Proper use of ArrayLists 3 19. Designing proper unit tests 4 20. Bonus part is implemented (Extra Marks)** 10 Subtotal 95 Total 100 * 20% of the whole assignment marks will be deducted if either of submissions is missed. ** The maximum mark for this assignment is 100 and the bonus can boost your mark if you lost any marks in other items only in this assignment. List View Microsoft Word - Assignment 2.docx COMP-1502 ASSIGNMENT #2 Dept. of Mathematics & Computing Mount Royal University Khosro Salmani Introduction The intention of this assignment is to demonstrate skills in designing and implementing classes using Object-Oriented programming paradigm, inheritance, abstract, and interface concepts. Additionally, it will give you experience working with testing tools, and creating/testing your own code as well. Submission Instructions 1) Both of these two steps for assignment submission are mandatory: 1. All assignment files (Eclipse project folder) must be included in a Git project to share with your instructor, by the due date. No changes must be made to the project after the deadline. The contribution of each team member must be visible in Git history. Your project must be private. You must give your instructor permission to access your project (Read or Collaborator access). 2. One ZIP file needs to submit to Blackboard with the following naming convention COMP1501_A1_ Lastname of member 1_Lastname of member2.zip. 2) The Eclipse Project folder must contain the following: 1. The following directory structure: § bin/ – Compiled Java files. § src/ – Java source code files: o mru/tsc/application/ o mru/tsc/controller/ o mru/tsc/model/ o mru/tsc/view/ o mru/tsc/exceptions § doc/ – Generated Javadoc files. o Ensure the private option is checked and everything is included in the generated documentation. § lib/ – Any third-party libraries. This folder can be empty. § res/ – Any resource or data files. § test/ – Unit test cases. 3) A text file named Readme.txt (Use the README.md for GitHub version) in the root folder of the ZIP archive and contain: a) A project title. b) The authors’ names 4) A runnable JAR file in the root folder of the ZIP archive. a) Use the naming convention: lastname1.Lastname2.jar (i.e.: Edison.Blow.jar). b) It is to be built using only Eclipse IDE and JDK 1.8x. ! Assignment #2 is prerequisite for assignment #3. We DO NOT provide the code later for the next assignment. Team work • Before starting the project, read the requirements and meet with your project partner to divide tasks equally. List all tasks and assign them each to one member of the team in a planning document. The document can be connected to your remote repository and shared with all team members and with your course instructor. • Both team members must contribute to the git project. The contribution of each member must be visible in the history of your git project. 20% of the assignment grade will be deducted if the project is not submitted with Git or Blackboard. • Both members of a team must be knowledgeable about the whole project. Your instructor may ask questions from each member of a team or request each member to modify any of the pages in your site. Make sure to review the pages that are developed by your teammate. • Students may be asked demo their project to the course instructor. Assignment Instructions 1. Use only Eclipse IDE. 2. The due date for this assignment is posted in Blackboard. The Problem The Toy Store Company (TSC) wants to implement a system to manage their toys more efficiently. The system should allow customers to find, purchase, and list toys. The system also allows the employees to add or remove a toy from the database. A data file containing a sample list of toys is provided. The data file contains a combination of
Answered 6 days AfterApr 02, 2021

Answer To: Microsoft Word - Assignment 3.docx COMP-1502 ASSIGNMENT #3 Dept. of Mathematics & Computing Mount...

Mohd answered on Apr 06 2021
146 Votes
Updated Solution/Assignment 3/build.xml

Builds, tests, and runs the project Assignment 3.


Updated Solution/Assignment 3/build/built-jar.properties
#Thu, 08 Apr 2021 23:06:26 +0530
C\:\\Users\\Mohd\ Lucky\\Documents\\NetBeansProjects\\Assignment\ 3=
Updated Solution/Assignment 3/build/classes/.netbeans_automatic_build
Updated Solution/Assignment 3/build/classes/.netbeans_update_resources
Updated Solution/Assignment 3/build/classes/mru/tsc/application/Main.class
package mru.tsc.application;
public synchronized class Main extends javafx.application.Application {
public void Main();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Animal.class
package mru.tsc.controller;
public synchronized class Animal extends mru.tsc.model.Toy {
char size;
void Animal(String, String, String, String, int, int, char);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/BoardGame.class
package mru.tsc.controller;
public synchronized class BoardGame extends mru.tsc.model.Toy {
String designer;
int minPlayers;
int maxPlayers;
void BoardGame(String, String, String, String, int, int, int, int, String);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/check.txt
2835360879;Cow;
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Figure.class
package mru.tsc.controller;
public synchronized class Figure extends mru.tsc.model.Toy {
char classify;
void Figure(String, String, String, String, int, int, char);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/FXMLDocumentController.class
package mru.tsc.controller;
public synchronized class FXMLDocumentController implements javafx.fxml.Initializable {
ShopController shop;
private javafx.scene.control.RadioButton serialNumberHome;
private javafx.scene.control.RadioButton nameHome;
private javafx.scene.control.RadioButton typeHome;
private javafx.scene.control.TextField serialTextFieldHome;
private javafx.scene.control.TextField nameTextFieldHome;
private javafx.scene.control.TextField typeTextFieldHome;
private javafx.scene.control.TextField serialNumberTextFieldRemove;
private javafx.scene.control.ListView listViewHom
e;
private javafx.scene.control.ListView listViewRemove;
public void FXMLDocumentController();
private void handleSerialNumberHome(javafx.event.ActionEvent);
private void handleNameHome(javafx.event.ActionEvent);
private void handleTypeHome(javafx.event.ActionEvent);
private void handleSearchHome(javafx.event.ActionEvent);
private void handleClearHome(javafx.event.ActionEvent);
private void handleBuyHome(javafx.event.ActionEvent);
private void handleRemoveToy(javafx.event.ActionEvent);
public void initialize(java.net.URL, java.util.ResourceBundle);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/Puzzle.class
package mru.tsc.controller;
public synchronized class Puzzle extends mru.tsc.model.Toy {
String type;
void Puzzle(String, String, String, String, int, int, String);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/controller/ShopController.class
package mru.tsc.controller;
public synchronized class ShopController {
java.util.ArrayList AList;
java.util.ArrayList FList;
java.util.ArrayList PList;
java.util.ArrayList BGList;
java.util.ArrayList List;
public void ShopController();
public void findRemove(String);
public void addToy(String);
public void displayName(String);
public void displayType(String);
public void purchasedToy(int);
public void displaysn(String);
public void readFile();
public void writeFile();
}
Updated Solution/Assignment 3/build/classes/mru/tsc/model/Toy.class
package mru.tsc.model;
public synchronized class Toy {
private String sn;
private String name;
private String brand;
private String price;
private int count;
private int age;
public void Toy();
public String getSn();
public void setSn(String);
public String getName();
public void setName(String);
public String getBrand();
public void setBrand(String);
public String getPrice();
public void setPrice(String);
public int getCount();
public void setCount(int);
public int getAge();
public void setAge(int);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/application.css
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
.root {
-fx-background-color: dimgrey;
-fx-font-size: 14pt;
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/myGUI.class
package mru.tsc.view;
public synchronized class myGUI {
public void myGUI(javafx.stage.Stage);
}
Updated Solution/Assignment 3/build/classes/mru/tsc/view/ToyView.fxml


































































































































Updated Solution/Assignment 3/dist/Assignment_3.jar
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.7
Created-By: 1.8.0_261-b12 (Oracle Corporation)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: mru.tsc.application.Main
mru/tsc/application/Main.class
package mru.tsc.application;
public synchronized class Main extends javafx.application.Application {
public void Main();
public void start(javafx.stage.Stage);
public static void main(String[]);
}
mru/tsc/controller/Animal.class
package mru.tsc.controller;
public synchronized class Animal extends mru.tsc.model.Toy {
char size;
void Animal(String, String, String, String, int, int, char);
}
mru/tsc/controller/BoardGame.class
package mru.tsc.controller;
public synchronized class BoardGame extends mru.tsc.model.Toy {
String designer;
int minPlayers;
int maxPlayers;
void BoardGame(String, String, String, String, int, int, int, int, String);
}
mru/tsc/controller/FXMLDocumentController.class
package mru.tsc.controller;
public synchronized class FXMLDocumentController implements javafx.fxml.Initializable {
ShopController shop;
private javafx.scene.control.RadioButton serialNumberHome;
private javafx.scene.control.RadioButton nameHome;
private javafx.scene.control.RadioButton typeHome;
private javafx.scene.control.TextField serialTextFieldHome;
private javafx.scene.control.TextField nameTextFieldHome;
private javafx.scene.control.TextField typeTextFieldHome;
private javafx.scene.control.TextField serialNumberTextFieldRemove;
private javafx.scene.control.ListView listViewHome;
private javafx.scene.control.ListView listViewRemove;
public void FXMLDocumentController();
private void handleSerialNumberHome(javafx.event.ActionEvent);
private void handleNameHome(javafx.event.ActionEvent);
private void handleTypeHome(javafx.event.ActionEvent);
private void handleSearchHome(javafx.event.ActionEvent);
private void handleClearHome(javafx.event.ActionEvent);
private void handleBuyHome(javafx.event.ActionEvent);
private void handleRemoveToy(javafx.event.ActionEvent);
public void initialize(java.net.URL, java.util.ResourceBundle);
}
mru/tsc/controller/Figure.class
package mru.tsc.controller;
public synchronized class Figure extends mru.tsc.model.Toy {
char classify;
void Figure(String, String, String, String, int, int, char);
}
mru/tsc/controller/Puzzle.class
package mru.tsc.controller;
public synchronized class Puzzle extends mru.tsc.model.Toy {
String type;
void Puzzle(String, String, String, String, int, int, String);
}
mru/tsc/controller/ShopController.class
package mru.tsc.controller;
public synchronized class ShopController {
java.util.ArrayList AList;
java.util.ArrayList FList;
java.util.ArrayList PList;
java.util.ArrayList BGList;
java.util.ArrayList List;
public void ShopController();
public void findRemove(String);
public void addToy(String);
public void displayName(String);
public void displayType(String);
public void purchasedToy(int);
public void displaysn(String);
public void readFile();
public void writeFile();
}
mru/tsc/controller/check.txt
2835360879;Cow;
mru/tsc/model/Toy.class
package mru.tsc.model;
public synchronized class Toy {
private String sn;
private String name;
private String brand;
private String price;
private int count;
private int age;
public void Toy();
public String getSn();
public void setSn(String);
public String getName();
public void setName(String);
public String getBrand();
public void setBrand(String);
public String getPrice();
public void setPrice(String);
public int getCount();
public void setCount(int);
public int getAge();
public void setAge(int);
}
mru/tsc/view/ToyView.fxml


































































































































mru/tsc/view/application.css
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
.root {
-fx-background-color: dimgrey;
-fx-font-size: 14pt;
}
mru/tsc/view/myGUI.class
package mru.tsc.view;
public synchronized class myGUI {
public void myGUI(javafx.stage.Stage);
}
Updated Solution/Assignment 3/dist/README.TXT
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "Assignment_3.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
Updated Solution/Assignment 3/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Updated Solution/Assignment 3/nbproject/build-impl.xml















































































































































































































Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar




































































































Must set javac.includes











































































...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here