brunomnsilva / JavaPatterns_Strategy

Software design patterns - Strategy (Java)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strategy Design Pattern | Java

The problem

We would like to extend the current program to allow different calculations of the student's course average, namely:

  • Simple average (implemented)
  • Weighted average by each course ECTS.

Exercises

  1. Solve the aforementioned problem using the Strategy Pattern

  2. We would also like that the record listing present the ECTS when the weighted average is used.

Reference

Refactoring Guru - Strategy Pattern

About

Software design patterns - Strategy (Java)


Languages

Language:Java 97.6%Language:HTML 2.4%