This exercise focuses on various programming tasks involving recursion, array operations, text conversion, and object-oriented programming with factories and machines.
Develop a recursive method to find the minimum value in a given array.
- Program:
ArrMin.java
Convert numbers into their text representation.
- Program:
JavalandNumber.java
andNumbersToText.java
Simulate a factory with multiple machines, each producing products at a specified rate.
- Classes:
Machine.java
: Represents a machine in the factory.Factory.java
: Manages multiple machines.Company.java
: Simulates factory operations and calculates service costs.
src/
In.java
Helper class for inputOut.java
Helper class for outputArrMin.java
Recursive method to find minimum in an arrayJavalandNumber.java
Converts numbers to text recursivelyNumbersToText.java
Converts numbers to text using loopsMachine.java
Represents a machine with production detailsFactory.java
Manages an array of machinesCompany.java
Simulates a factory and its operations
tests/
Testprotokolle.txt
Test cases and results for all tasks
- Recursive Methods: Tasks include recursive functions for finding minimum values and converting numbers to text.
- Factory Simulation: The factory manages machines, handles production, and calculates service costs.
- Test Coverage: Includes edge cases such as negative inputs and empty arrays.
- Programming Language: Java
- Editor: Visual Studio Code with JavaWiz extension
This project is licensed under the MIT License.