Skip to content

Conversation

@aditya-chouksey
Copy link

@aditya-chouksey aditya-chouksey commented Oct 17, 2025

This C++ program calculates the maximum height a ball will reach when thrown vertically upward with a given initial velocity. The program uses the standard equation of motion derived from basic physics:

h

v
2
2
g
h=
2g
v
2

where:

  1. h is the maximum height (in meters),

  2. v is the initial velocity of the ball (in meters per second), and

  3. g is the acceleration due to gravity (9.8 m/s² on Earth).

The user inputs the initial velocity, and the program computes and displays the corresponding maximum height. This program helps understand the relationship between velocity and height in projectile motion under uniform gravity.

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

This C++ program calculates the maximum height a ball will reach when thrown vertically upward with a given initial velocity. The program uses the standard equation of motion derived from basic physics:

h
=
v
2
2
g
h= 
2g
v 
2
 
​
 
where:

1. h is the maximum height (in meters),

2. v is the initial velocity of the ball (in meters per second), and

3. g is the acceleration due to gravity (9.8 m/s² on Earth).

The user inputs the initial velocity, and the program computes and displays the corresponding maximum height.
This program helps understand the relationship between velocity and height in projectile motion under uniform gravity.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Author has not responded to the comments for over 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants