Add tip calculator implementation with Readme#350
Merged
sumn2u merged 1 commit intosumn2u:mainfrom Oct 7, 2025
Merged
Conversation
|
@17GuptaIshita is attempting to deploy a commit to the Suman Kunwar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a complete Tip Calculator example application to the examples folder, providing a functional web app that calculates tips and bill splitting with a clean, responsive interface.
- Implements core tip calculation functionality with preset percentages (10%, 20%, 30%) and custom tip input
- Includes bill splitting feature to divide the total among multiple people
- Provides comprehensive documentation with usage instructions and file structure overview
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| examples/Tip_Calculator/index.html | HTML structure with form inputs for bill amount, tip selection, and split options |
| examples/Tip_Calculator/style.css | Responsive CSS styling with hover effects and visual feedback |
| examples/Tip_Calculator/script.js | JavaScript logic for calculations, DOM manipulation, and event handling |
| examples/Tip_Calculator/README.md | Documentation explaining features, usage instructions, and file structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a simple Tip Calculator example app to the examples/ folder. The app allows users to enter a bill amount, select or input a custom tip percentage, and optionally split the bill among multiple people. Calculated tip, total amount, and per-person share are displayed dynamically.
The solution demonstrates basic JavaScript math operations, DOM manipulation, event handling, and input validation.
A README file is included to explain features, usage instructions, and file structure.
ISSUE: #325
