This is a JavaScript program that calculates the grade of a student based on their marks. It prompts the user to input the student's marks (between 0 and 100) and outputs the corresponding grade according to the following criteria:
- A > 79
- B: 60 to 79
- C: 49 to 59
- D: 40 to 49
- E: less than 40
This is a simple JavaScript program that calculates demerit points for speeding violations based on the speed of a car. The program takes the speed of a car as input and determines the demerit points according to the following rules:
- If the speed is less than 70 km/h, it prints "Ok".
- If the speed is 70 km/h or more, for every 5 km/h above the speed limit (70 km/h), it assigns one demerit point.
- If the total demerit points exceed 12, the program prints "License suspended".
This is a JavaScript program to calculate an individual's net salary based on their basic salary and benefits, taking into account tax rates and deductions provided by KRA, NHIF, and NSSF. The program includes functions that:
- Calculates PAYE tax based on provided tax bands and relief.
- Determines NHIF deductions according to the gross salary range.
- Computes NSSF deductions based on the employee contribution rate.
- Provides the net salary after deducting PAYE, NHIF, and NSSF deductions.
You use git clone to be able to download the documents in the GitHub
Git
Git clone https://github.com/cyndimustapha/phase-1-wk1-Code-Challenge.git
https://cyndimustapha.github.io/phase-1-wk1-Code-Challenge/
Javascript
https://github.com/cyndimustapha
The content of this site is licensed under the MIT license Copyright (c) 2018.