Skip to content

felipenehmi/payment-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

payment-calculator

Coding exercice for ioet

This project was written using Python 3, so it's installation is required for running the application.

Usage

Once inside paymentcalculator directory, commands available are:

Running application: python3 main.py [input_file.txt]

Running tests: python3 tests.py

About the development

The project structure was built over a combination of Facade and Command design patterns, mainly motivated by the sequence of actions necessary to process the file - validation, processing and displaying results - each having it's own complexity. This structure allows these three steps to be isolated. So, if it happens to be necessary a change in the input data format, in the payment calculation or in the results display, we need to change only the command responsible for processing each task. The Facade design keep the code clean and undestandable, making the maintenance easy. A black box testing approach was chosen for this project, considering the project's structure and funcionality

About

Coding exercice for ioet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages