Skip to content

hwangswan/tuition-fee-calc

Repository files navigation

tuition-fee-calc

Build Status

Calculate my tuition fee in a semester, doing under OOP Java.

what it will do

Calculate semester tuition fee in a .csv file.

how to

Important notice

  • Make sure you have at least Java JDK 8.
  • This program use command-line arguments, takes .csv input and output format.

install

git clone

input format

The .csv input file should looks like this:

class name class credit lab credit
Object Oriented Programming 3 1
Java Programming 3 1
Calculus 1 3 0
Calculus 1 (Lab) 0 1
... ... ...

Credit cost configuration

  • Rename tuition-fee-calc.config.example to tuition-fee-calc.config:

    cp tuition-fee-calc.config.example tuition-fee-calc.config
  • Edit tuition-fee-calc.config:

    tuition-fee-calc.class=COST_OF_ONE_CLASS_CREDIT
    tuition-fee-calc.lab=COST_OF_ONE_LAB_CREDIT
    

    Replace COST_OF_ONE_CLASS_CREDIT with cost of class credit, COST_OF_ONE_LAB_CREDIT with cost of lab credit.

Command-line

java src/Main.java <INPUT_FILE.csv> <OUTPUT_FILE.csv>

Shell scripts

  • Rename run.sh.example:

    cp run.sh.example run.sh
    
  • Grant permissions:

    chmod 0700 run.sh
  • Edit run.sh

  • Run:

    ./run.sh
  • Testing:

    cp test.sh.example test.sh
    sudo chmod 0700 test.sh
    ./test.sh

About

Tuition Fee Calculator, in OOP Java

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published