Git Product home page Git Product logo

practice_project_bacteria's Introduction

Practice_Project_Bacteria

Project about Juint testing and inner classes

Java Bacterial Life Simulation Project

This repository showcases a Java application that simulates the life cycle of bacteria within a given field. This project is aiming to demonstrate my programming skills and my approach to simulationg and testing. Project Overview

The application models the behavior of bacteria on an N by N field over a specified period. It calculates the time it takes for the bacteria to fill the field and determines the number of bacteria that die during this timeframe. Features

Bacteria Generation: Simulates the appearance of a random number of bacteria on the field each day for the initial 7 days.
Bacteria Reproduction: Models the reproduction of bacteria in neighboring cells with a probability based on P+.
Bacteria Lifespan: Tracks the lifespan of bacteria and ensures they stop reproducing after 14 days.
Bacteria Mortality: Implements the death of bacteria with a probability based on P- for bacteria older than 7 days.

How to Run

Clone the repository to your local machine.
Open the project in your preferred Java IDE.
Navigate to the main simulation class.
Customize the input values for N, K1, K2, P-, and P+.
Run the application to observe the simulation results.

Dependencies

This project uses JUnit 5 for testing purposes. The simulation behavior can be thoroughly tested using predefined test cases. Testing

During testing, the project considers values such as N < 100, P+ = 5%, and P- = 2% to ensure the correctness of the simulation algorithm.

Feel free to explore the code, understand the simulation logic, and experiment with different input values to observe varying outcomes.

For any inquiries or collaborations, feel free to contact me via [email address or preferred contact method].

Happy simulating and coding!

practice_project_bacteria's People

Contributors

solovevanton avatar

Watchers

 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.