Skip to content

This project works as a "budget manager" for monthly purchases, where it allows the user to add their income and save the purchases that they have made

Notifications You must be signed in to change notification settings

Nour-Sadek/Budget-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Budget Manager

This project works as a "budget manager" for monthly purchases, where it allows the user to add their income and save the purchases that they have made. It provides the ability to save inputted purchases, to view the balance, and sort the purchases.

When the program is run, the user is greeted with a menu to:

  1. Add their income
  2. Add a purchase based on its type (available types are: Food, Entertainment, Clothes, Other)
  3. Show the list of purchases provided
  4. Show the balance (income - total price of inputted purchases)
  5. Save the purchases added to a file
  6. Load the purchases previously saved to a file into the program (allows the user to register purchases inputted and saved in a previous run of the program)
  7. Analyze the purchases by sorting them in three different ways:
    • Sort All - sorts the entire shopping list with the most expensive purchases at the top
    • Sort By Type - sorts the categories with the category that used up the most money at the top
    • Sort Certain Type - Same as Sort All, but for a specific category

General Info

To learn more about this project, please visit HyperSkill Website - Budget Manager.

This project's difficulty has been labelled as Hard where this is how HyperSkill describes each of its four available difficulty levels:

  • Easy Projects - if you're just starting
  • Medium Projects - to build upon the basics
  • Hard Projects - to practice all the basic concepts and learn new ones
  • Challenging Projects - to perfect your knowledge with challenging tasks

This repository contains

budget package
    - Contains the budget.Main java class that contains the main method to run the project
    - Contains the budget.Menu java class that is used to store the purchases provided by the user
    - Contains the budget.PurchaseType abstract java class and its subclasses that store the purchases provided by the user by type
    - Contains the budget.GetUserInput java class that contains utility methods used to get correct user input

purchases.txt file: A sample text file that can be loaded to see an example of code output and usage

Project was built using java version 8 update 381

How to Run

Download the budget repository to your machine. Create a new project in IntelliJ IDEA, then move the purchases.txt file to it and the downloaded budget repository to the src folder, then run the budget.Main java class.

About

This project works as a "budget manager" for monthly purchases, where it allows the user to add their income and save the purchases that they have made

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages