Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Distance Calculator #389

Merged
merged 9 commits into from
Jan 27, 2025
Merged

Conversation

Mathdallas-code
Copy link
Contributor

@Mathdallas-code Mathdallas-code commented Jan 12, 2025

PR Title

Distance Calculator

Summary

This program can measure the distance between two points on a 2D plane.

Description

Using the Pythagoream theorem of a^2=√b^2+c^2, this program which I also made in Java, can measure the distance between two points on a 2D plane.

The program itself is quite short but still pretty complex because the points need to be converted into two lines(Adjacent and Opposite) to calculate the distance of the actual line (Hypotunese).

Try entering these values given below!
Starting X-value = 0,
Starting Y-value = 0,
Ending X-value = 3
Ending Y-value = 4
It will give 5

You can enter any four values you want!

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request in a small level (for the creator's wellfare)
  • Tested the changes you made

Thank You,

Mathdallas_code

Also, here is the link to the issue -
The issue

Fixed a bug where negative numbers were not allowed and added quit feature to quit the program
Made the calculator compatible with floating(decimal)numbers
Copy link
Collaborator

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

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

LGTM

@hasan-py hasan-py merged commit 3949851 into DhanushNehru:master Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants