{"id":20168338,"url":"https://github.com/sainingo/turnkey-assessment","last_synced_at":"2026-05-11T11:31:43.958Z","repository":{"id":184158137,"uuid":"671359052","full_name":"sainingo/turnkey-assessment","owner":"sainingo","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-27T08:40:40.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T04:48:04.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/sainingo.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-07-27T06:27:07.000Z","updated_at":"2023-07-27T07:56:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac11aeba-dea4-4772-89c2-3b07528415f8","html_url":"https://github.com/sainingo/turnkey-assessment","commit_stats":null,"previous_names":["sainingo/turnkey-assessment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sainingo/turnkey-assessment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainingo%2Fturnkey-assessment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainingo%2Fturnkey-assessment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainingo%2Fturnkey-assessment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainingo%2Fturnkey-assessment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sainingo","download_url":"https://codeload.github.com/sainingo/turnkey-assessment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainingo%2Fturnkey-assessment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32893114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-14T01:07:20.992Z","updated_at":"2026-05-11T11:31:43.944Z","avatar_url":"https://github.com/sainingo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- TURNKEY ASSESSMENT  --\u003e\n\n**TURNKEY ASSESSMENT**\n\nThis README file provides a detailed explanation of the task\n\n---\n\n### Question 1: Fibonacci Sequence\n\nThe task is to implement a program that allows a user to ask for an input number and then print the Fibonacci sequence up to that number.\n\nThe program allows the user to input a positive integer and prints the Fibonacci sequence up to that number. The code is modular, includes error handling, and follows best practices for logging.\n\n### Question 2: Largest Difference\n\nTask is to implement a Java function that takes a list of integers as input and returns the largest difference between any two numbers in the list.\n\nThe function uses a straightforward iterative approach to find the largest difference between any two numbers in the input list. It includes error handling and efficiently calculates the largest difference with a time complexity of O(n).\n\n### Question 3: SQL Query for Employee Selection\n\nThe task is to write an SQL query to select all employees whose age is above 30 and salary is above $50,000. The requirements include writing the SQL query that satisfies the given conditions, optimizing the query for performance, ensuring clarity and readability, and demonstrating a good understanding of SQL syntax and concepts.\n\nThe query uses the `SELECT` statement with a `WHERE` clause to filter employees based on age and salary conditions.\n\n### Question 4: Data Type Conversion\n\nThe code is intended to calculate the average of a list of numbers. However, there is an issue related to data type conversion, leading to an unexpected output.\n\nThe `total` variable is of type `int`, and the division with `numbers.length` also being an `int` truncates the result. To fix the code, explicitly converting the `total` variable to `double` before performing the division to retain the decimal part of the result.\n\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainingo%2Fturnkey-assessment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsainingo%2Fturnkey-assessment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainingo%2Fturnkey-assessment/lists"}