Skip to content

FELIX-MAIN/venom-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WEEK 1 CODE CHALLENGE

Description

  • Create a repository on your GitHub account.

  • Use JavaScript to wire down the solution.

  • Push the solution to the above repository once done.

  • Submit the repository link for grading.

Setup

  • 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 as follows: 

A > 79, B > 60 to 79, C > 59 to 49, 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)

Given the basic salary and benefits of an employee, write a program that would calculate the Payee Tax, NHIF, NSSF Deductions and net salary.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published