Skip to content

DataProcessor 'medain' has typo and incorrect calculation #70

@aliAljaffer

Description

@aliAljaffer

As a developer
I want correct median calculation with proper spelling
So that statistical analysis is accurate

Current Behavior

  1. Typo: medain() instead of median()
  2. Wrong calculation for even-length lists

Location: src/java/DataProcessor.java line 40

Expected Behavior

For even-length lists, return average of two middle values.

Example

[1, 2, 3, 4] should return 2.5, not 3

Acceptance Criteria

  • Rename to median()
  • Fix even-length calculation
  • Add unit tests for both odd and even lengths

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdata-processingData processing issuesjavaJava code issuestypoSpelling or grammar erroruser-storyUser story format issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions