SOPkap

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

BASIC CALCULATOR FOR SYSTEM OF PARTICLES

A Report is submitted in partial fulfilment for the project done for

AISSCE

(COMPUTER SCIENCE)

Submitted By

ANUBHAV KAPASIA
(Roll.no: - 30)

Under the Guidance of

Mr. Saquib Alam


PGT Computer Science
P.M. Shri Kendriya Vidyalaya No 1 Balasore
Odisha, India
P.M. SHRI KENDRIYA VIDYALAYA NO 1 BALASORE

COMPUTER SCIENCE - AISSCE


----------------------------------------------------------------------------------------------------------------

CERTIFICATE OF RECOMMENDATION

This is to certify that the thesis entitled “BASIC CALCULATOR FOR SYSTEM OF
PARTICLES” submitted by Master. Anubhav Kapasia (30) to the Department of

Computer Science, Kendriya Vidyalaya No 1, Balasore, in partial fulfilment of


requirements for the project done for AISSCE (Computer Science), is a bonfied
record of work carried out by him under our supervision and guidance during
the academic year 2023-2024

Dated:

Countersigned by:

Mr. Saquib Alam


PGT Computer Science
Kendriya Vidyalaya No 1 Balasore
Odisha, India
P. M. SHRI KENDRIYA VIDYALAYA NO 1 BALASORE

COMPUTER SCIENCE - AISSCE

----------------------------------------------------------------------------------------------------------------

CERTIFICATE OF APPROVAL

This is to certify that we have examined the thesis entitled “SIMPLE


CALCULATOR FOR SYSTEM OF PARTICLES” submitted by ANUBHAV
KAPAISA and at this moment accord our approval of it as a study carried out
and presented in a manner required for its acceptance in partial fulfilment of
requirements for the project done for AISSCE (Computer Science) for which it
has been submitted. It is to be understood that by this approval, the undersigned
do not necessarily endorse or approve any statement made, opinion expressed or
conclusion drawn therein but approve the thesis only for the purpose for which
it is submitted.

Dated:

Board of Examiners

1.
2.
3.
4.
Acknowledgment

I would like to express a deep sense of thanks & gratitude to my project guide Mr. Saquib
Alam Sir for guiding me immensely through the course of the project. He always evinced
keen interest in my work. His constructive advice & constant motivation have been
responsible for the successful completion of this project.

My sincere thanks go to Shri Ravi Prakash, Our Principal Sir, for his co-ordination in
extending every possible support for the completion of this project.

I also thanks to my parents for their motivation & support. I must thanks to my classmates for
their timely help & support for compilation of this project.

Last but not the least, I would like to thank all those who had helped directly or indirectly
towards the completion of this project.

Date: 7th Feb 2023

Group Members:

1. Amit Kumar Tripathy (Roll No. 23)

2. Luckbir Singh (Roll No. 33)

3. Anurag Tripathy (Roll No. 24)

Kendriya Vidyalaya No 1, Balasore,

Odisha, India
Table of Content

1. Introduction

2. Specific Requirements

a. Hardware requirements

b. Software Requirements

3. Flowchart

4. Algorithm

5. Code

6. Output

7. Conclusion

8. Future prospective

9. Reference
Introduction: -
This code is a program that performs various calculations related
to physics. It includes functions to calculate the center of mass,
moment of inertia, velocity of the center of mass, radius of
gyration, torque, work done by torque, power of torque, and
angular momentum. The program starts by defining all the
necessary functions for each calculation. Each function prompts
the user for the required input values and performs the
corresponding calculation. The results are then printed to the
console. The main function acts as the entry point of the program.
It creates a dictionary called "operations" that maps each
operation number to its corresponding function. It then enters a
while loop that repeatedly prompts the user to select an operation
and calls the corresponding function based on their choice. After
each calculation, the user is asked if they want to perform
another calculation. If they choose not to, the program exits.
Overall, this program provides a menu-driven interface for
performing various physics calculations.
Specific Requirements: -
Hardware required: -
 Intel Core i5 processor or equivalent.
 4 GB RAM
 Internet connection

Software required: -
 Python IDLE (or) PyCharm

Flowchart: -

Algorithm: -
STEP1: Initialization:
- Import the necessary functions from the math module.

STEP2: Center of Mass Calculation (com Function):

- Input the number of particles n.

- For each particle:

- Input mass and coordinates (x, y, z).

- Calculate the total mass and center of mass in each dimension.

- Print the center of mass.

STEP3: Moment of Inertia Calculation (Inertia Function):

- Input the number of particles n.

- For each particle:

- Input mass and radius.

- Calculate the moment of inertia for the system.

- Print the moment of inertia.

STEP4: Velocity of Center of Mass Calculation (vcm Function):

- Input the number of particles n.

- For each particle:

- Input mass and velocity.

- Calculate the velocity of the center of mass.


- Print the velocity.

STEP5: Radius of Gyration Calculation (rg1 and rg2 Functions):

- For rg1:

- Input inertia and mass

- Calculate and print the radius of gyration.

- For rg2:

- Input the number of particles n.

- For each particle, input the radius.

- Calculate and print the radius of gyration.

STEP6: Torque Calculation (turu1 and turu2 Functions):

- For turu1:

- Input force and perpendicular distance.

- Calculate and print torque.

- For turu2:

- Input force, distance, and angle (in degrees or radians).

- Calculate and print torque.

STEP7: Work Done by Torque Calculation (wd Function):

- Input torque and angular displacement.

- Calculate and print work done.

STEP8: Power of Torque Calculation (power_tau Function):


- Input torque and angular velocity.

- Calculate and print the power of torque.

STEP9: Angular Momentum Calculation (L Function):

- Input mass, velocity, and radius.

- Calculate and print angular momentum.

STEP10: Menu and User Interaction:

- Display a menu with options for different calculations.

- Input the user's choice and execute the corresponding function.

- After each calculation, ask the user if they want to perform another calculation.

- If the user declines, exit the loop.


CODE: -
Output: -
Conclusion: -
The Physics Calculator project provides a comprehensive tool for performing various
calculations related to physics concepts. From determining the center of mass of a system to
calculating the moment of inertia and torque, this calculator offers a range of functionalities
to assist students and enthusiasts in their physics studies.

Throughout the development of this project, we have implemented algorithms and functions
to handle user input, perform calculations accurately, and present results effectively. By
organizing the functionalities into a menu-driven interface, users can easily navigate different
options and perform the desired physics calculations effortlessly.

Moreover, including error handling ensures that users receive feedback in case of invalid
inputs, enhancing the overall user experience and reliability of the calculator.

With its user-friendly interface and robust functionality, the Physics Calculator serves as a
valuable resource for students, educators, and anyone interested in exploring various physics
concepts and solving numerical problems.

This project not only demonstrates the application of fundamental physics principles but also
highlights the significance of programming in facilitating scientific calculations and analysis.
It serves as a testament to the integration of computational tools in the field of physics
education, empowering learners to deepen their understanding and proficiency in the subject.

In conclusion, the Physics Calculator project exemplifies the synergy between physics and
programming, offering a practical solution for solving physics problems and promoting
learning and exploration in the fascinating realm of physics.
Future prospective: -
In the future, we can add the essential functions for computing topics like kinematics,
dynamics, and basic thermodynamics. It might also include functions to calculate velocity,
acceleration, force, energy, and temperature conversions. It can be a valuable tool for
students to reinforce their understanding of physics concepts.

Reference: -
1. https://www.w3schools.com/python/python_string_formatting.asp
2. https://www.eraser.io/diagramgpt
3. https://chat.openai.com/

You might also like