An open API service indexing awesome lists of open source software.

https://github.com/levos-snr/phase-1-code-chalenge-week1

Week 1 Toy problems
https://github.com/levos-snr/phase-1-code-chalenge-week1

css3 git github html5 javascript

Last synced: 2 months ago
JSON representation

Week 1 Toy problems

Awesome Lists containing this project

README

          

## Description

This repository contains three distinct coding challenges designed to test your JavaScript skills:

1. **Student Grade Generator**: A tool to input marks and receive corresponding grades.
2. **Speed Detector**: An application to check if a given speed is within acceptable limits.
3. **Net Salary Calculator**: A program to calculate net salary after various deductions.

[Live Demo Link](https://levos-snr.github.io/phase-1-code-chalenge-week1/)

## Installation

To set up the project on your local machine, follow these steps:

### Prerequisites

- Node.js 16 or higher
- Git (for cloning the repository)
- Github account
- Html and css knowledge

### Steps

1. Clone the repository:

```bash
git clone https://github.com/levos-snr/phase-1-code-chalenge-week1.git
cd phase-1-code-chalenge-week1

```

### Usage

To run the application in your browser, you can use Live Server or any other local server tool.

1. Open the project folder in your code editor (e.g., VS Code).
2. Install the Live Server extension if you haven't already.
3. Right-click on the index.html file and select "Open with Live Server".

#### Using Other Local Servers

1. You can use other local server tools like `http-server` :
```bash
npm install -g http-server
http-server
```
2. Open your browser and navigate to the server address (e.g., `http://localhost:8080`).

### Interacting with the Application
Click the buttons on the main page to interact with the respective challenges:

1. Enter Marks: Click to input marks and get the student's grade.
2. Enter Speed: Click to input speed and check if it falls within acceptable limits.
3. Calculate Net Salary: Click to input salary details and calculate the net salary after deductions.

### Features
- Student Grade Generator :
- Enter marks between 0-100 to receive grades:
- A: 80-100
- B: 60-79
- C: 50-59
- D: 40-49
- E: 0-39
- Speed Detector:
- Enter speed to determine if it is within acceptable limits.
- Net Salary Calculator :
- Calculate net salary considering PAYE, NHIF, NSSF, and other deductions.
- Supports both monthly and yearly calculations.
- Considers disability exemption, mortgage interest, insurance premium, and home ownership savings plan.

### License

MIT License

Copyright (c) 2024 Lewis Odero

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---

## Acknowledgments
- We3schools.
- Stack Overflow.


NB: Use KRA, NHIF, and NSSF values provided in the link below.




- [Payroll tax rate](https://www.aren.co.ke/payroll/taxrates.htm)
- [Paye](https://www.kra.go.ke/en/individual/calculate-tax/calculating-tax/paye)

## Author Info

- Linkedin - [@lewis-odero-developer](https://www.linkedin.com/in/lewis-odero-developer/)
- Website - [Lewis Odero](https://levos-snr.github.io/lewisodero-website/)

[Back To The Top](#description) :