Skip to content

kennyhk418/tips-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Pre-work - Tips Calculator

Tips Calculator is a tip calculator PHP page.

Submitted by: Ki Yin Kenny Lam

Time spent: 4 hours spent in total

User Stories

The following required functionality is complete:

  • User can enter a bill amount, choose a tip percentage, and submit the form to see the tip and total values.
  • Tip percentage choices use a PHP loop to output three radio buttons.
  • PHP code sets reasonable default values for the form.
  • PHP code confirms the presence and correct format of submitted values.
  • Page indicates any form errors which need to be fixed.
  • Submitted form values are retained when errors or results are shown.

The following optional features are implemented:

  • Add support for custom tip percentage
  • Add support for splitting the tip and total

The following additional features are implemented:

  • List anything else that you can get done to improve the functionality!

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

Notes

I have some experience with Javascript, HTML and CSS, but I have not tried to work on PHP. I found PHP to be more messy and hard to manipulate than Javascript, especially when I want to enclose one within another. Therefore, I have spent a lot of time on looking at the tutorials and do trial and errors on the project. To be honest, my code is not well organized, but I will try my best to polish it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages