CS 222 Spring 2016

MVC Challenge

Due: July 28, Thursday, 14:30 pm.

Language: Java

Submission:

  • Check your file encoding. It should be UTF-8
  • Checkout the project inClass_MVC from SVN to get started
  • Commit your code to SVN at the end of the class

Assignment Explanation

We will implement MVC design pattern in this assignment. You will be given a code consisting of a Controller, a Model and a View. And sample input files to be used.

IMPORTANT: The Model is different from what we have seen in the previous inClass Assignment (Refactoring Challenge).

Task

Run the code using the sample input files provided to you. Try different samples and get familiar with the GUI. Then, go over the code. You’re already familiar with the Model. You should pay attention to View and Controller. You can modify them in the way that you like. Please remember what we have discussed in the class and the examples for MVC pattern. The code provided to you is incomplete and also should be modified.

Below, sample runs are provided.

First, you enter the number of clusters and hit Set number of clusters. enter # of clusters

Then you hit Choose Input Data File. And select an input file. choose input file

Last, hit Go K-Means!. run

Clusters have different colors. Points are represented with circles and centroids with squares. You can modify the number of clusters and hit Set number of clusters and run KMeans again. You can also change the input file and run the algorithm again.

result

result2

Grading

  • MVC (30)

    Penalties:

  • Submitting code that is not compiling: -15 points
  • Submitting code that is not runnning correctly: -15 points
  • Submitting code not with SVN: -5 points
  • Not being present in the class but submitting the assignment: -30 points