Skip to main content

A simple package simulating rockets and circular rockets.

Project description

Rocket Project

A simple Python project that models rockets and their behavior.
It includes different types of rockets such as:

  • Rocket — the base class representing a rocket in 2D space
  • Shuttle — a reusable rocket with a number of completed flights
  • CircleRocket — a rocket modeled as a circle with a given radius

Features

  • Move rockets in a 2D coordinate system
  • Calculate distances between rockets
  • Compute area and circumference for circular rockets
  • Demonstrate inheritance and method overriding in Python

Classes Overview

Rocket

Represents a basic rocket with coordinates (x, y).

Shuttle

Inherits from Rocket and adds a flights_completed attribute.

CircleRocket

Inherits from Rocket and adds:

  • r → the radius of the rocket
  • get_area() → returns π * r²
  • get_circumference() → returns 2 * π * r

🧩 Installation

Make sure you have Python installed.
You can clone this repository and run the examples in Jupyter Notebook or any IDE.

git clone https://github.com/Amina212004/rocket.git
cd rocket-project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocket_amina-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rocket_amina-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file rocket_amina-0.1.0.tar.gz.

File metadata

  • Download URL: rocket_amina-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rocket_amina-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b231f51e93351b8efa7c26c90a2a3fc2e3f9a24dcb5f0a832912a923a3b83987
MD5 e96406b3268170fd1c16de3862deb46e
BLAKE2b-256 9417d86a9b5493162cd935c724adb1392638753c9ab551d2ff08cf4e16fbce38

See more details on using hashes here.

File details

Details for the file rocket_amina-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rocket_amina-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rocket_amina-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac72c50a9ef4e4488bb9a8b032832ef92ab461763734905e8ee444a7da52911
MD5 f78407509b4af50779d3bb4cd061c5de
BLAKE2b-256 e8d829e52788a01952b357f540e78680ad567ecbe660ad6b5f75da143f3c1e23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page