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

  Create a screenshot of the execution of the implementation

Create a screenshot of the execution of the implementation of your Java program. Note: Click here if you need a tutorial on taking a screenshot.

  Planning software application

The solution is a desktop Course-Planning Software application to replace their existing electronic Course Scheduling - System Features that meet the functional requirements specified in the Requirements Document.

  Achieve these two important features

Java TM is a portable language, and being an object-oriented programming language, it also encourages component reusability. How does Java TM achieve these two important features

  A small mobile application using android or ios

A small mobile application using Android or IOS, the application idea chosen by each student individually, or in groups of two students only. The app must be not less than 3 activities.

  How would you categorize this kind of script what resources

write a 200- to 300-word short-answer response to the following bull how would you classify this type of script? bull

  Compare and determine the smallest number

The main method that begins execution of Java application

  Implement your client-server system

A detailed discussion of the methodology you used to implement your client-server system and a concise and detailed design for the client-server system

  Write a java program that creates 3 threads

Write a Java program that creates 3 threads each of them performing 10 reading/writing to the shared location. Use a random number generator to decide if the request is reading or writing

  Write a program that uses the brute-force approach

Write a program that uses the brute-force approach to count the number of inversions in the array - calculate the total weight and the total value of each subset in the powerset.

  What are the characterstics of sql

What makes it different than other languages?

  Create a tic-tac-toe

create a tic-tac-toe

  Write java application that lets you create strong password

Write a java application that lets you create a strong password. The password should follow the following some criteria: (use your own creativity to come up with specific requirements).

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