Create a new project in eclipse

Assignment Help JAVA Programming
Reference no: EM131466170

Project - Software Implementation

Using Test Driven Development

Mission:

You were hired to implement usingJava a Train system simulation, designed by a developer who suddenly left the team. You are provided with the design specification document (Project6-Train-SDS.doc) and unit test suite (tests.zip). You are to assume that design description is correct for what each class and method is supposed to do and so are the JUnit tests and yourJava code is supposed to match them.

Objectives:
You must implement the system using the given design and make sure that all the unit tests pass against your code.

Your program must implement the complete design to include all the classes, methods, constructors, constants, and attributes, and the input and output specification exactly.

You cannot redesign or change the system.

Steps:

- Create a new project in Eclipse and import the unit tests (tests.zip) and data files into your projects src. Add JUnit library to your Eclipse project
- Note that you will have syntax errors in the tests until you create all the classes
- The unit test suite is divided into the basic and advanced tests for each Java class.
- You should first implement (for each class) the attributes, constants, and empty methods (method signatures) to pass the basic tests.
- Then you should start implementing each method running the appropriate tests against it.
- To run an individual test, highlight the test method name, right click on it, select "Run As" and select "JUnit Test"
- Train's simulate method has been implemented for you. Copy and paste the code in simulate.txt to your Train class.
- Run the code and unit tests against them until all defects are fixed
- For default file tests under TestSimulatorAdvancedyou will need to run them individually with and without that file being on your system (C:/train/customer-data.txt). Check comments for tests which tests require the file and which not
- Once all the unit tests are working, create a sample input file and run the program with it. Capture the screenshot of the output
- Warning: If you use Scanner for reading console and/or file, do not close it because when you try to use again it will not work.

Attachment:- project.zip

Verified Expert

This solution is to provide code for train simulator functionality. In this there are three classes mainly. one is Train class which has components for the functionality of train stops and customer id. second one is Customer class which has private fields of customer id, stop number and methods to get input from users. Third class is simulation class , In this class implementation of train simulation is there.

Reference no: EM131466170

Questions Cloud

Document referring to mgm resorts international : Attached is a document referring to MGM Resorts International. This is a compiled group assignment, however, due to time constraints.
Describe rules for the transmitter to follow : Consider a stop-and-wait data link control protocol. Each transmitted frame contains the sequence number, modulo 2, of the contained packet.
Describe the stop-and-wait system with two-way traffic : Consider a stop-and-wait system with two-way traffic between nodes A and B. Assume that data frames are all of the same length and require D seconds.
Has the nurse practitioners scope of practice : Has the nurse practitioner's scope of practice finally exceeded their training?
Create a new project in eclipse : Implement the system using the given design and make sure that all the unit tests pass against your code - You must implement the system
President of human resources for nittany fone : You are the Vice President of Human Resources for Nittany Fone, a manufacturer of "smart" cellular telephones.
It collaboration technology and ecommerce techniques : Analyze IT collaboration technology and eCommerce techniques that can be applied to your project based on this week's readings.
What were your differential diagnoses : What were your differential diagnoses? Provide a minimum of three possible diagnoses. List them from highest priority to lowest priority.
Describe the learning condition : Describe the learning condition you think is most necessary for learning to occur. Use specific examples to support your answer.

Reviews

len1466170

4/18/2017 3:33:58 AM

5. (20 points) Simulator class methods are implemented correctlyand match the design. All tests in TestSimulatorAdvanced pass. 6. (10 points) Train class methods and constructor are implemented correctly and match the design. All tests in TestTrainAdvanced pass. 7. (5 points).Code does not implement something not identified in the design 8. (5 points)The implementation is using good practices for modularity, naming convention, comments, and layout of code.Functions/objects are clean (cohesive, loosely coupled, etc.) and pass/return appropriate values. 9. (5 points) Student submitted screenshot capture of the running program and correct test data file.

len1466170

4/18/2017 3:33:49 AM

1. (15 points) Customer class exists, has all the required attributes, constants, constructors, and methods that match the design. All tests in TestCustomerBasics pass. 2. (15 points) Simulator class exists, has all the required attributes, constructors, and methodsthat match the design. All tests in TestSimulatorBasics pass. 3. (10 points) Train class exists, has all the required attributes, constructors, and methodsthat match the design. All tests in TestTrainBasics pass. 4. (15 points) Customer class methods and constructor are implemented correctly and match the design. All tests in TestCustomerAdvanced pass.

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