Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Code challenge Repository

Date, 2024/03/24

By Arnold

Description

This repository contains implementations of the following programs:

  1. Student Grade Generator 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.

  1. Speed Detector 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”.

  1. Net Salary Calculator 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.

https://www.aren.co.ke/payroll/taxrates.htmLinks to an external site.

https://www.kra.go.ke/en/individual/calculate-tax/calculating-tax/payeLinks to an external site.

Installation

You use git clone to be able to download the documents in the GitHub

Installation Requirements

Git

Installation instruction

git@github.com:atarnold/code-challenge-week1.git

Technologies used

Github Javascript

License

The content of this site is licensed under the MIT license Copyright (c) 2023.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages