{"id":23693323,"url":"https://github.com/levos-snr/phase-1-code-chalenge-week1","last_synced_at":"2026-04-28T23:37:44.518Z","repository":{"id":264925960,"uuid":"822572168","full_name":"levos-snr/phase-1-code-chalenge-week1","owner":"levos-snr","description":"Week 1 Toy problems","archived":false,"fork":false,"pushed_at":"2024-07-01T23:09:58.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T13:31:59.193Z","etag":null,"topics":["css3","git","github","html5","javascript"],"latest_commit_sha":null,"homepage":"https://levos-snr.github.io/phase-1-code-chalenge-week1/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levos-snr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T11:59:10.000Z","updated_at":"2024-12-25T12:05:23.000Z","dependencies_parsed_at":"2024-11-27T00:01:13.103Z","dependency_job_id":null,"html_url":"https://github.com/levos-snr/phase-1-code-chalenge-week1","commit_stats":null,"previous_names":["levos-snr/phase-1-code-chalenge-week1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levos-snr/phase-1-code-chalenge-week1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levos-snr%2Fphase-1-code-chalenge-week1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levos-snr%2Fphase-1-code-chalenge-week1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levos-snr%2Fphase-1-code-chalenge-week1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levos-snr%2Fphase-1-code-chalenge-week1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levos-snr","download_url":"https://codeload.github.com/levos-snr/phase-1-code-chalenge-week1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levos-snr%2Fphase-1-code-chalenge-week1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275167816,"owners_count":25417048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","git","github","html5","javascript"],"created_at":"2024-12-30T03:51:29.559Z","updated_at":"2026-04-28T23:37:39.500Z","avatar_url":"https://github.com/levos-snr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nThis repository contains three distinct coding challenges designed to test your JavaScript skills:\n\n1. **Student Grade Generator**: A tool to input marks and receive corresponding grades.\n2. **Speed Detector**: An application to check if a given speed is within acceptable limits.\n3. **Net Salary Calculator**: A program to calculate net salary after various deductions.\n\n[Live Demo Link](https://levos-snr.github.io/phase-1-code-chalenge-week1/)\n\n## Installation\n\nTo set up the project on your local machine, follow these steps:\n\n### Prerequisites\n\n- Node.js  16 or higher\n- Git (for cloning the repository)\n- Github account\n- Html and css knowledge\n\n### Steps\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/levos-snr/phase-1-code-chalenge-week1.git\n   cd phase-1-code-chalenge-week1\n\n   ```\n\n### Usage\n\nTo run the application in your browser, you can use Live Server or any other local server tool.\n\n1. Open the project folder in your code editor (e.g., VS Code).\n2. Install the Live Server extension if you haven't already.\n3. Right-click on the index.html file and select \"Open with Live Server\".\n\n#### Using Other Local Servers\n\n1. You can use other local server tools like `http-server` :\n   ```bash\n    npm install -g http-server\n   http-server\n   ```\n2. Open your browser and navigate to the server address (e.g., `http://localhost:8080`).\n\n### Interacting with the Application\nClick the buttons on the main page to interact with the respective challenges:\n\n1. Enter Marks: Click to input marks and get the student's grade.\n2. Enter Speed: Click to input speed and check if it falls within acceptable limits.\n3. Calculate Net Salary: Click to input salary details and calculate the net salary after deductions.\n   \n\n### Features\n- Student Grade Generator :\n        - Enter marks between 0-100 to receive grades:\n                - A: 80-100\n                - B: 60-79\n                - C: 50-59\n                - D: 40-49\n                - E: 0-39\n- Speed Detector:\n        - Enter speed to determine if it is within acceptable limits.\n- Net Salary Calculator :\n        - Calculate net salary considering PAYE, NHIF, NSSF, and other deductions.\n        - Supports both monthly and yearly calculations.\n        - Considers disability exemption, mortgage interest, insurance premium, and home ownership savings plan.\n  \n\n### License\n\nMIT License\n\nCopyright (c) 2024 Lewis Odero\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n---\n\n## Acknowledgments\n- We3schools.\n- Stack Overflow.\n  \u003cbr\u003e\nNB: Use KRA, NHIF, and NSSF values provided in the link below.\n  \u003chr\u003e\n  \n   - [Payroll tax rate](https://www.aren.co.ke/payroll/taxrates.htm)\n   - [Paye](https://www.kra.go.ke/en/individual/calculate-tax/calculating-tax/paye)\n\n\n## Author Info\n\n- Linkedin - [@lewis-odero-developer](https://www.linkedin.com/in/lewis-odero-developer/)\n- Website - [Lewis Odero](https://levos-snr.github.io/lewisodero-website/)\n\n[Back To The Top](#description) :\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevos-snr%2Fphase-1-code-chalenge-week1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevos-snr%2Fphase-1-code-chalenge-week1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevos-snr%2Fphase-1-code-chalenge-week1/lists"}