Completed tip calculator assignment by adding onClick logic, formatting, error handling, and layout.