Skip to content

Shoes Budget Tool helps users manage their shoe budget by checking if they have enough money to make a purchase and calculating the remaining amount. It validates the budget, handles price calculations, and provides feedback on affordability. Easy to use with a simple Python script.

Notifications You must be signed in to change notification settings

RiteshKumarNayak125/ShoeBudgetTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shoes Budget Tool

The Shoes Budget Tool is a Python application designed to help users manage their budget when buying shoes. It checks if you have enough money for a purchase and calculates how much money you'll have left over.

Features:

  • Validates if the budget is a valid number (integer or float).
  • Calculates the remaining budget after buying a pair of shoes.
  • Provides feedback on whether the user has enough money and displays the remaining amount.

To use the Shoes Budget Tool, clone the repository and run the script using Python 3:

git clone <repository-url>
cd <repository-directory>
python3 shoepurchase.py

Usage:

  1. Create a Shoes Object: Initialize with the name and price of the shoes.
  2. Call the buy Method: Pass your budget to check if you can afford the shoes and calculate the remaining amount.

Example:

from shoes_budget_tool import Shoes

# Initialize the Shoes object with name and price
shoes = Shoes("Sneakers", 50)

# Check if you can buy the shoes with a given budget
shoes.buy(100)

Screenshot

Screenshot of Shoes Budget Tool

This project is licensed under the MIT License. See the LICENSE file for details.


Replace `<repository-url>` and `<repository-directory>` with the appropriate values for your project.

About

Shoes Budget Tool helps users manage their shoe budget by checking if they have enough money to make a purchase and calculating the remaining amount. It validates the budget, handles price calculations, and provides feedback on affordability. Easy to use with a simple Python script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages