Mini Project 104
Mini Project 104
Study
On
“VISUALISING THE SOLAR SYSTEM”
The report submitted
for the partial fulfilment of the requirements for the completion of
Mini Project for
B.Sc. Data Science-Semester III
Submitted By,
Somithkumar
201223539104
Date:
CERTIFICATE
EXTERNAL SIGNATURE
Further, I state that this project work is the result of my own efforts and have not
plagiarized or submitted the same work for the award of any other certificate.
In case this undertaking is found incorrect, I accept that my project work will be
rejected.
Somith kumar
201223539104
ACKNOWLEDGEMENT
The success of this mini project is credited to people who have helped me and I
find that it is my duty to convey acknowledgement and sincere thanks to them.
I take much pleasure to express my deep sense of gratitude and thankfulness to
my Mini Project guide Mr. P S RAVI KUMAR, Lecturer of SIVA SIVANI
DEGREE COLLEGE for the valuable guidance and constant co-operation
throughout my Mini project work, which helped me to gain more knowledge and
develop my practical thinking.
Somith kumar
201223539104
TABLE OF CONTENTS
ABSTRACT
1
INTRODUCTION
➤ Our solar system consists of the Sun and 8 planets including Earth.
➤ Following are the planets in the Solar System in the given order:
1. Mercury
2. Venus
3. Earth
4. Mars
5. Jupiter
6. Saturn
7. Uranus
8. Neptune
➤ Python Project Details in this Python Project, we are going to visualize a Solar System. We
will see how the planets revolve around the sun. Also, we will be using different colors to show
different planets and assign them with speed and paths to make our project look real. We are
going to use the Math Module and Turtle Module to create objects in the solar system and depict
their movement.
This project will demonstrate the application of programming concepts, such as data
visualization on, object-oriented programming, and event-driven programming, to create
an educational and entertaining tool for understanding the solar system.
The final product will be a interactive and informative visualization on that can be used in
educational settings or for personal exploration.
2
OBJECTIVE
* Here this project programmed in such a way every student can view that detail
* Several modules are used to program the project like turtle module and me module
* Turtle can draw intricate shapes using programs that repeat simple moves. In Python,
turtle graphics provides a representation of a physical "turtle"
* The math module in Python provides functions for handling math related tasks.
3
SYSTEM DEVELOPMENT LIFE CYCLE
SDLC is a process followed for a so ware project, within a so ware organization. It consists of a
detailed plan describing how to develop, maintain, replace and alter or enhance specific so ware.
The life cycle defines a methodology for improving the quality of so ware and the overall
development process.
PHASES:
4
INSTALLATION PROCESS
5
HARDWARE AND SOFTWARE
REQUIREMENTS
RAM : 8.00 GB
You have to install Python 3.12 and related packages You will need the required modules to be
installed and imported properly. You need to have all the specified images and other attachment
as required
6
MODULES IMPORTED
TURTLE MODULE
Turtle is a pre-installed Python library that enables users to create pictures and shapes by
providing them with a virtual canvas. The onscreen pen that you use for drawing is called the
turtle and this is what gives the library its name.
TIME MODULE
The module in Python provides functions for handling me-related tasks. The me- related tasks
includes, sleeping for a specified number of seconds and so on.
MATH MODULE
Math Module is an in-built Python library made to simplify mathematical tasks in Python. It
consists of various mathematical constants and functions that can be used as importing the
math module.
7
FLOW CHART
8
CODING
import turtle
import me
from math import *
screen = turtle.Screen() #creating the
screen screen.tracer(50)
sun = turtle.Turtle() #turtle object for
sun sun.shape('circle') #shape of sun
sun.color('yellow') #colour of sun
class Planet(turtle.Turtle):
def_init (self, name, radius, color): #initialize function
super().init_(shape='circle')
self.name = name
self.radius = radius
self.c = color
self.color(self.c)
self.up()
self.pd ()
self.angle = 0
def move(self):
x= self.radius*cos(self.angle) # Angle in
+x,sun.ycor()+y)
# making plantes
9
mercury = Planet("Mercury", 40, 'grey')
venus = Planet("Venus", 80, 'orange')
earth=Planet("Earth",100,'blue')
mars = Planet("Mars", 150, 'red')
for i in myList:
i.move()#moving the elements of the list
mercury.angle += 0.05
venus.angle += 0.03
earth.angle += 0.01
mars.angle += 0.007
jupiter.angle += 0.02
saturn.angle += 0.018
uranus.angle += 0.016
neptune.angle += 0.005
10
OUTPUT
11
TESTING
12
CONCLUSION
A solar system visualization serves as an effective educational tool, allowing users to explore
and understand the structure, motion, and scale of the solar system.
By simulating the positions and orbits of planets, moons, and other celestial bodies in real- me,
it helps provide a clearer comprehension of astronomical concepts that might otherwise be
abstract.
Additionally, the interactive nature of such a tool enhances engagement, making it easier for
students, researchers, and enthusiasts to grasp the dynamics of the universe.
Whether used for educational purposes or entertainment, a solar system visualizer bridges
the gap between theoretical knowledge and visual understanding, making space exploration
more accessible and immersive.
13
BIBILOGRAPHY
WEBSITE:
https://www.learnpython.org/
https://www.w3schools.com/python/
14