https://github.com/kentlouisetonino/bus-calculator
A CLI tool that computes Bus last trip empty seats.
https://github.com/kentlouisetonino/bus-calculator
bash-script cli cpp gnu-cpp-compiler gnu-linux snapcraft
Last synced: 4 months ago
JSON representation
A CLI tool that computes Bus last trip empty seats.
- Host: GitHub
- URL: https://github.com/kentlouisetonino/bus-calculator
- Owner: kentlouisetonino
- License: mit
- Created: 2022-08-14T12:22:33.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-07-15T14:45:10.000Z (10 months ago)
- Last Synced: 2024-11-12T04:26:30.706Z (6 months ago)
- Topics: bash-script, cli, cpp, gnu-cpp-compiler, gnu-linux, snapcraft
- Language: C
- Homepage: https://snapcraft.io/bus-calculator
- Size: 136 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## $\textnormal{BusCalculator}$

> - A CLI tool that will allow you to compute the Bus last trip empty
seats based on the given total number of seats and passengers.> - The technologies are C, GNU C Compiler (GCC), GNU Debugger (GDB), Snapcraft, and GNU/Linux.
> - Snap : https://snapcraft.io/bus-calculator
```bash
# Example 1
Total bus seats = 50
Total passengers = 126
Total last trip empty seats = 24
Explanation: This means at the 3rd trip, there are 24 (50 - 26) remaining seats.# Example 2
Total bus seats = 50
Total passengers = 10
Total last trip empty seats = 40
Explanation: This means at the 1st trip, there are 40 (50 - 10) remaining seats.
```
## $\textnormal{Local \ Development}$
> - Install the GNU C Compiler in your machine.
> - Go to the root directory. Run the following commands.
```bash
# Running the app.
chmod +x run.sh
./run.sh# Running the app with GDB.
chmod +x run-debug.sh
./run-debug.sh
```
## $\textnormal{Installation}$
```bash
# If already installed.
sudo snap refresh bus-calculator# If not yet installed.
sudo snap install bus-calculator# Run the app.
bus-calculator
```