Skip to content

Python project demonstrating object-oriented programming with classes (Family, Father, Mother, Child), user input handling, dictionaries, file I/O, iterators, and numpy-based mathematical computations.

Notifications You must be signed in to change notification settings

Hadassa-A/Python-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Family Project

Description

This Python project demonstrates object-oriented programming by implementing classes for Family, Father, Mother, and Child.
The project allows user interaction for adding family members, managing children, and viewing parent/child details. It also includes iterators, file handling, and mathematical computations using NumPy.


Features

  • Create and manage Father, Mother, and Child objects.
  • Build a Family with parents and multiple children.
  • Store and retrieve parent and child information using dictionaries.
  • Accept user input for family member details.
  • Add, view, and iterate over children in the family.
  • Compute mathematical functions like sin(x)/x and cos(x)/x using NumPy.
  • Write and read data to/from a text file.

Installation

  1. Clone the repository:
git clone https://github.com/YourUsername/Python-Project.git
  1. Navigate to the project folder:
cd Python-Project
  1. Install required packages:
pip install numpy

Usage

  1. Run the main script:
python main.py
  1. Follow the prompts to:
    • Enter parent names and ages
    • Enter number of children and their details
    • View family information and children list
  2. Perform calculations using sin(x)/x and cos(x)/x over a range

Project Structure

PythonProject/
│
├─ Family.py        # Contains classes: Father, Mother, Child, Family
├─ main.py          # Main program execution
├─ requirements.txt # Project dependencies
└─ README.md        # Project documentation

Tools and Libraries

  • Python 3.x
  • NumPy
  • File handling with built-in Python I/O
  • Object-oriented programming concepts

Author

  • Hadassa Alback

About

Python project demonstrating object-oriented programming with classes (Family, Father, Mother, Child), user input handling, dictionaries, file I/O, iterators, and numpy-based mathematical computations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages