You are purchasing 50 widget(s) at the cost of $299.50 each. With tax, the total comes to $317.47.

The price per widget, widget quantity, and tax rate are all stated above!

This is my first attempt using PHP for calculations!

With 6% sales tax, you can expect to pay a bit more for each widget than another state!

You can see where I've used different math operations to get the final price! I hope you enjoy your widgets! For one with tax, it'd be $6.35. 50 of them would be $317.50.