Skip to content

Commit e5a137f

Browse files
Added project files
0 parents  commit e5a137f

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
We as contributors and maintainers pledge to make participation in our project a harassment-free experience for everyone.
5+
6+
## Our Standards
7+
- Use welcoming and inclusive language
8+
- Be respectful of differing viewpoints
9+
- Gracefully accept constructive criticism
10+
- Show empathy towards other community members
11+
12+
## Enforcement
13+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the repository maintainers.

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Contributing Guidelines
2+
3+
Thank you for your interest in contributing to this project!
4+
5+
## How to Contribute
6+
1. Fork the repository.
7+
2. Create a new branch for your changes.
8+
3. Make your changes and commit them with a meaningful message.
9+
4. Push the branch and create a Pull Request.
10+
11+
## Code Style
12+
- Follow standard shell scripting practices.
13+
- Keep code simple and readable.
14+
15+
## Reporting Issues
16+
If you find a bug or have a feature request, please open an issue in the repository.

LICENSE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
---
3+
4+
## 📄 2. `LICENSE`
5+
When you create it on GitHub, **choose Apache License 2.0 template**.
6+
If you want raw text, here’s the header (GitHub will auto-fill the rest):
7+
```text
8+
Apache License
9+
Version 2.0, January 2004
10+
http://www.apache.org/licenses/

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Final Project - Simple Interest Calculator
2+
3+
This repository is created as part of the hands-on labs for the GitHub & Git CLI final project.
4+
5+
## Contents
6+
- `simple-interest.sh`: A shell script that calculates simple interest.
7+
- `LICENSE`: Apache 2.0 License file.
8+
- `README.md`: Project documentation.
9+
- `CODE_OF_CONDUCT.md`: Contributor Code of Conduct.
10+
- `CONTRIBUTING.md`: Guidelines for contributions.
11+
12+
## How to Run the Script
13+
```bash
14+
bash simple-interest.sh

simple-interest.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
# Simple Interest Calculator
3+
# Formula: SI = (P * T * R) / 100
4+
5+
echo "Enter Principal:"
6+
read P
7+
echo "Enter Time:"
8+
read T
9+
echo "Enter Rate:"
10+
read R
11+
12+
SI=$((P * T * R / 100))
13+
echo "Simple Interest = $SI"

0 commit comments

Comments
 (0)