Challenge 1: Student Grade Generator (Toy Problem) Write a program that prompts the 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 - 49 to 59, D - 40 to 49, E - less 40.
Challenge 2: Speed Detector (Toy Problem) 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”.
Challenge 3: Net Salary Calculator (Toy Problem) 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.
- Download a zip in the code button to the desired folder
- Extract the files
- Open the extracted folder with VSCode
- And you are all done
- You can view the web live on https://github.com/fay-ui/code-challange-1
The application works perfectly well, no bugs. @@ -24,6 +24,6 @@ email :: faith.njau@student.moringaschool.com
*LIcenced under the [MT-licence] https://github.com/fay-ui/code-challange-1/blob/main/licence.md
Copyright (c) 2024 faith njau