write a pseud code to calculate the total price a patient has to pay when purchasing a medicine from a pharmacy. The calculation includes a 12% tax.Find total price patient pays based on quantity, price\unit and tax.

taxrate = 0.12

read medicine,quantity,unitprice
totalprice = quantity * unitprice * (1+taxrate)