{"id":19961380,"url":"https://github.com/skylar-lorena/toy-problems","last_synced_at":"2025-09-19T16:32:44.563Z","repository":{"id":181422562,"uuid":"616828016","full_name":"Skylar-Lorena/Toy-Problems","owner":"Skylar-Lorena","description":"JavaScript Toy Problems","archived":false,"fork":false,"pushed_at":"2023-09-25T21:16:23.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T02:07:19.346Z","etag":null,"topics":["beginner-project","functions","html-css-javascript","javascript","javascript-for-beginners","javascript-game","toy-problems"],"latest_commit_sha":null,"homepage":"https://skylar-lorena.github.io/Toy-Problems/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Skylar-Lorena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-21T06:57:29.000Z","updated_at":"2023-04-26T20:38:05.000Z","dependencies_parsed_at":"2023-07-15T15:29:54.737Z","dependency_job_id":null,"html_url":"https://github.com/Skylar-Lorena/Toy-Problems","commit_stats":null,"previous_names":["skylar-lorena/toy-problems"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skylar-Lorena%2FToy-Problems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skylar-Lorena%2FToy-Problems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skylar-Lorena%2FToy-Problems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skylar-Lorena%2FToy-Problems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skylar-Lorena","download_url":"https://codeload.github.com/Skylar-Lorena/Toy-Problems/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233579579,"owners_count":18697327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner-project","functions","html-css-javascript","javascript","javascript-for-beginners","javascript-game","toy-problems"],"created_at":"2024-11-13T02:07:22.749Z","updated_at":"2025-09-19T16:32:39.305Z","avatar_url":"https://github.com/Skylar-Lorena.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy Problems\n\nThis repository contains solutions to three toy problems in JavaScript.\n\n## Author\n\nLorenah M.\n\n## Challenge 1: Student Grade Generator\n\nWrite a program that prompts the user to input student marks. The input should be between 0 and 100. Then output the correct grade:\n\n- A \u003e 79\n- B - 60 to 79\n- C - 59 to 49\n- D - 40 to 49\n- E - less than 40.\n\n## Challenge 2: Speed Detector\n\nWrite 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.\n\nFor 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”.\n\n## Challenge 3: Net Salary Calculator\n\nWrite 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.\n\n**NB:** Use KRA, NHIF, and NSSF values provided in the link below.\n\n- [KRA Tax Rates](https://www.kra.go.ke/en/individual/calculate-tax/calculating-tax/paye)\n- [NHIF and NSSF rates](https://www.aren.co.ke/payroll/taxrates.htm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskylar-lorena%2Ftoy-problems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskylar-lorena%2Ftoy-problems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskylar-lorena%2Ftoy-problems/lists"}