{"id":21236156,"url":"https://github.com/codeupjewell/ruby-array","last_synced_at":"2025-03-15T03:13:07.943Z","repository":{"id":149927846,"uuid":"612005333","full_name":"CodeUpJewell/Ruby-Array","owner":"CodeUpJewell","description":"Showcasing Array in Ruby","archived":false,"fork":false,"pushed_at":"2023-03-10T02:31:31.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T18:49:22.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/CodeUpJewell.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-10T01:52:14.000Z","updated_at":"2023-03-10T02:29:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2b6e267-71c6-4fd7-ab9e-cde4f30163b8","html_url":"https://github.com/CodeUpJewell/Ruby-Array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeUpJewell%2FRuby-Array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeUpJewell%2FRuby-Array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeUpJewell%2FRuby-Array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeUpJewell%2FRuby-Array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeUpJewell","download_url":"https://codeload.github.com/CodeUpJewell/Ruby-Array/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676776,"owners_count":20329434,"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":[],"created_at":"2024-11-21T00:07:19.483Z","updated_at":"2025-03-15T03:13:07.926Z","avatar_url":"https://github.com/CodeUpJewell.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Practice\n\nRun your Ruby file by typing `ruby ` and then the name of the file you want to run in the Terminal.\n\nIf we want to run `array_count.rb`, we can write the command:\n\n```bash\nruby array_count.rb\n```\n\nTo re-run this command, you can use the UP and DOWN arrow keys to look at the history of commands you've run in a Terminal.\n\n## Array\n\n### array_element_square.rb\nPrint the square of the second-to-last number that the user enters.\n\nThe expected output will be something like:\n```\n\"Enter at least 2 numbers, separated by spaces:\"\n9.0\n```\n### array_count.rb\nCreate an Array and use the count method to print how many elements are in that Array.\n\nExpected output:\n```\n\"Enter at least 2 numbers, separated by spaces:\"\n2\n```\n### array_reverse.rb\nCreate an Array and use the reverse method to return the array in reverse order.\n\nExpected output: \n```\n\"Enter at least 2 values, separated by spaces:\"\n[\"second\", \"first\", 0]\n```\n\n### array_min_max_difference.rb\nCreate an Array of numbers and output the number with the lowest value in the array, the number with the highest value in the array, and the difference between the highest value and the lowest value.\n```\nlowest_number\nhighest_number\ndifference\n```\n\n### array_sum_elements.rb\nOutput the sum value of all the elements in the array.\n\n## Specs\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see names of each test\u003c/summary\u003e\n\narray_count.rb should output '2' given the input '2 9' \n\narray_count.rb should output '9' given the input '9 12 8 25 16 78 64 0 27' \n\narray_count.rb should output '5' given the input '9 80 17 28 36' \n\narray_element_square.rb should output '4.0' given the input '9 2 7' \n\narray_element_square.rb should output '9.0' given the input '6 4 6 6 6 3 2' \n\narray_element_square.rb should output '18.49' given the input '3.2 -1.1 -4.3 8.4' \n\narray_min_max_difference.rb should output '6', '73', and '67' on separate lines \n\narray_reverse.rb should output '['hello', 'zebra', '35', 'banana']' given the input 'banana 35 zebra hello'. \n\narray_reverse.rb should output '[4, 3, 2, 1]' given the input '1 2 3 4'. \n\narray_sum_elements.rb should output '151' \n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeupjewell%2Fruby-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeupjewell%2Fruby-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeupjewell%2Fruby-array/lists"}