I am trying to calculate the print cost base on different paper size, single side or double side. So here is the detail:
A4, job type single sided:
*15 cents - black and white page
*25 cents - color page.A4, job type double sided:
*10 cents - black and white page
*20 cents - color page.
Also need to support other page size.
I am not sure if should use factory pattern and decorator pattern. Could someone help me on that?
Aucun commentaire:
Enregistrer un commentaire