Sales tax form

Tags
Challenge
No

Write an app that shows a form like this (style it as you want):

Form, no input

The user fills in the fields. All are required. If there are errors, show them all, and the form, with the user's input values. For example:

Errors

Another:

More errors

  • State should be MI or IL. Case should not matter. There can be extra leading and trailing spaces.
  • Price should be a positive number.
  • Discount rate should be a positive number.

If all is OK, show the output.

Output

You can try my solution.

Submit the URL of your solution, and a zip of your files.

Where referenced