Skip to content

Conversation

@17GuptaIshita
Copy link
Contributor

@17GuptaIshita 17GuptaIshita commented Oct 7, 2025

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
Screenshot 2025-10-07 110955

@vercel
Copy link

vercel bot commented Oct 7, 2025

@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.

@17GuptaIshita 17GuptaIshita changed the title adding tip calculator implementation with Readme Add tip calculator implementation with Readme Oct 7, 2025
@sumn2u sumn2u requested a review from Copilot October 7, 2025 10:18
@vercel
Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
learn-javascript Ready Ready Preview Comment Oct 7, 2025 10:19am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Owner

@sumn2u sumn2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Image

@sumn2u sumn2u merged commit ef9ea6a into sumn2u:main Oct 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants