In this code challenge, we are provided with three problem statements that we need to implement their solutions.
The 3 challenges include:
-
In this challenge, we need to write a program that requests user to input student marks. The input should be between 0 and 100. Then output the correct grade:
A > 79, B - 60 to 79, C - 59 to 49, D - 40 to 49, E - less 40.
-
Here we need to write a program that takes as input the speed of a car e.g 80. If the speed is less than 70, it should print
Ok
. Otherwise, for every 5 km/s above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points.For example, if the speed is 80, it should print: “Points: 2”. If the driver gets more than 12 points, the function should print: “License suspended”.
-
Write a program whose major task is to calculate an individual’s Net Salary by getting the inputs of basic salary and benefits. Calculate the payee (i.e. Tax), NHIFDeductions, NSSFDeductions, gross salary, and net salary.
NB: Use KRA, NHIF, and NSSF values provided in the link below.
For building and running the application you need:
- Web browser e.g
Google Chrome
- IDE Application e.g
VSCode
To start using this project use the following commands:
git clone https://github.com/john-maluki/phase-1-wk1-code-challenge.git
cd phase-1-wk1-code-challenge
- If you are using vs code, use command (
code .
). Or use IDE of your choice.
Use the following web url: - https://john-maluki.github.io/phase-1-wk1-code-challenge/
Released under the MIT License. See the LICENSE file.