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.
- 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
andcos(x)/x
using NumPy. - Write and read data to/from a text file.
- Clone the repository:
git clone https://github.com/YourUsername/Python-Project.git
- Navigate to the project folder:
cd Python-Project
- Install required packages:
pip install numpy
- Run the main script:
python main.py
- Follow the prompts to:
- Enter parent names and ages
- Enter number of children and their details
- View family information and children list
- Perform calculations using
sin(x)/x
andcos(x)/x
over a range
PythonProject/
│
├─ Family.py # Contains classes: Father, Mother, Child, Family
├─ main.py # Main program execution
├─ requirements.txt # Project dependencies
└─ README.md # Project documentation
- Python 3.x
- NumPy
- File handling with built-in Python I/O
- Object-oriented programming concepts
- Hadassa Alback