We all gotta start somewhere. You can enhance this by:
prompt for local tax rate,
enter loop — prompt for item price (add to running cost total) — prompt if it’s taxable (compute tax and add to running tax total) — print item price — prompt for another item or end
print cost total, taxtotal and sum for final cost
Alternately, read the info from a comma separated file instead of the terminal.
View all comments
2
u/slade51 Jul 17 '25
We all gotta start somewhere. You can enhance this by:
Alternately, read the info from a comma separated file instead of the terminal.
Have fun!