
Patrick B. answered 06/25/19
Math and computer tutor/teacher
Program SalesTax (input,output);
const sales_tax = 0.18;
var inputAmount : real;
outputAmount : real;
begin
write(' Please input the amount :>');
readln(inputAmount);
outputAmount := inputAmount * (1 + sales_tax);
writeln(' The original amount = ',inputAmount:8:2);
writeln(' With sales tax that is ',outputAmount:8:2);
writeln(' The sales tax amount is a difference of ',outputAmount-inputAmount:8:2);
end.