The Income Divider App is a simple Rust application designed to calculate and display the distribution of income among various categories based on predefined percentages.
The application takes a total income value and divides it according to predetermined percentage allocations. It specifically divides the income into the following categories:
- Taxes
- Owner's Share
- Profit
- Operational Expenses (OpEx)
The predefined percentages used for distribution are as follows:
- Taxes: 30%
- Owner's Share: 55%
- Profit: 5%
- Operational Expenses (OpEx): 10%
- Input the total income value.
- The application calculates the income distribution based on the provided value and the predefined percentages.
- The calculated amounts for Taxes, Owner's Share, Profit, and OpEx are displayed.
To run the application, follow these steps:
- Ensure Rust is installed on your system.
- Clone the repository.
- Open a terminal window and navigate to the project directory.
- Run
cargo run
to execute the application.
To create an optimized release version, use the following commands:
- Build the optimized release version:
cargo build --release
To create an app build, install the cargo-bundle
crate:
- Install
cargo-bundle
:
cargo install cargo-bundle
-
Add the
[package.metadata.bundle]
in the Cargo.toml file with the name and identifier. Add a description to the[package]
. -
Build command for app version:
cargo bundle --release