https://github.com/webobite/gstcalculator
GST calculator Java console Application
https://github.com/webobite/gstcalculator
Last synced: about 1 year ago
JSON representation
GST calculator Java console Application
- Host: GitHub
- URL: https://github.com/webobite/gstcalculator
- Owner: webobite
- Created: 2020-06-13T16:27:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T11:31:06.000Z (about 6 years ago)
- Last Synced: 2025-02-16T00:28:59.592Z (over 1 year ago)
- Language: Java
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GST Calculator
GST Calculator is a simple console application, which calculates the GST and final selling price for a given commodity.
# Features!
|GST Slabs | Descriptions |
|---|---|
| 0% |No GST is applied on this commodity |
| 5% |A GST of 5% is applied on top of this commodity. |
| 18% |A GST of 18% is applied on top of this commodity |
| 28% |A GST of 28% is applied on top of this commodity |
Product's for which this GST Calculator is valid with respective GST percentage
- Food Grains (Rice, Wheat, Dal) --> 0%
- Furnitures (Table, Sofa, Chair) --> 5%
- Electronics (Mobile, TV, Tablet) --> 18%
- Cosmetics (Cream, Perfume, Lotion) --> 28%
# What to change GST Slave ?
In folder `src` get into package `com.gst.calculator` open the Java Class file `GST.java` update the GST Percentage slabs and update value of
```
private static final int foodGrainGSTPercent = 0;
private static final int furnitureGSTPercent = 5;
private static final int electronicsGSTPercent = 18;
private static final int cosmeticsGSTPercent = 28;
```
# Want to add more products to application ?
we can add that too under four categories as in file `GST.java` : -
```
static List foodGrainProducts = new ArrayList() {
{
add("Rice");
add("Wheat");
add("Dal");
}
};
static List furnitureProducts = new ArrayList() {
{
add("Table");
add("Sofa");
add("Chair");
}
};
static List electronicProducts = new ArrayList() {
{
add("Mobile");
add("TV");
add("Tablet");
}
};
static List cosmeticsProducts = new ArrayList() {
{
add("Cream");
add("Perfume");
add("Lotion");
}
};
```
### Tech
GST Calculator is a console application made of :
* Java version 1.8.0_251
### Installation
Open in eclipse project and Run Configuration where pass the input as command line argument