/UE04

Java programs for the fourth exercise unit (UE04) in "Software Development 1". Focus: working with one-dimensional and two-dimensional arrays.

Primary LanguageJavaMIT LicenseMIT

Software Development Exercises - UE04

📜 Tasks

This exercise focuses on working with one-dimensional and two-dimensional arrays in Java. The tasks include:

1. Expanding Arrays

Dynamically increase the size of a one-dimensional array as new integers are entered from the console.

  • Program: ReadArray.java

2. Population Growth

Analyze population growth in Javaland by calculating year-over-year differences and identifying the maximum difference.

  • Program: JavalandPopulation.java

3. Minimum 2x2 Squares

Read a two-dimensional array from a file and identify the 2x2 sub-matrix with the smallest sum.

  • Program: MinSquare.java

4. House Construction in Javaland

Validate construction rules for upper floor layouts in Javaland by comparing two 2D arrays (ground floor and first floor).

  • Program: HouseChecker.java

📂 Project Structure

src/

  • In.java Helper class for input
  • Out.java Helper class for output
  • ReadArray.java Task 1: Expanding arrays
  • JavalandPopulation.java Task 2: Population growth analysis
  • MinSquare.java Task 3: Minimum 2x2 sub-matrix
  • HouseChecker.java Task 4: House construction validation

tests/

  • Testprotokolle.txt Test cases and results for all tasks

data/

  • numbers.txt Input file for Task 3
  • ground.txt Ground floor layout for Task 4
  • first.txt First floor layout for Task 4

🛠 Tools

  • Programming Language: Java
  • Editor: Visual Studio Code with JavaWiz extension

📝 License

This project is licensed under the MIT License.