Coder Social home page Coder Social logo

ie1-basic-stats's Introduction

Basic Statistics

Basic Statistics is a Java-based implementation for computing statistics on a set of numbers. This implementation is intended to be used in software engineering courses as a subject software system.

Basic Statistics uses the Apache Ant build system. Make sure that you have Ant installed.

How to build Basic Statistics and run its tests from the terminal:

  1. Change into the Basic Statistics root directory, which contains the build.xml build file.

  2. Run ant compile to compile Basic Statistics. The compiled class files will be in the bin directory.

  3. Run ant test to run all Basic Statistics unit tests.

  4. Run ant clean whenever you want to clean up the project (i.e., delete all generated files).

How to run Basic Statistics from the terminal:

  1. After building the project (i.e., running ant compile), run: java -cp bin BasicStats. The application's GUI will show up.

Program features:

  • Displays a set of entered numbers.
  • Computes the mean of the set of numbers.
  • Computes the median of the set of numbers.
  • Computes the mode of the set of numbers.

Troubleshooting

Outdated version of JUnit

If your system uses an outdated version of JUnit, you may encounter the following error:

[junit] junit/framework/JUnit4TestAdapterCache
[junit] java.lang.NoClassDefFoundError: junit/framework/JUnit4TestAdapterCache

Run ant -lib lib/ <target> to explicitly use JUnit4, which is provided in the lib directory. For example, run ant -lib lib/ test to run all Basic Statistics unit tests.

Java JDK not installed or misconfigured

If a Java JDK is not installed or properly configured on your system, you may encounter the following error:

BUILD FAILED
build.xml:17 Unable to find a javac compiler;

Make sure that you have a JDK installed and that the JAVA_HOME environment variable is properly set.

ie1-basic-stats's People

Contributors

developertommy avatar rjust avatar brunyuriy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.