{"id":24374578,"url":"https://github.com/haimonmon/cpp-practice-hub","last_synced_at":"2025-03-12T11:41:29.378Z","repository":{"id":272440131,"uuid":"916580030","full_name":"Haimonmon/cpp-practice-hub","owner":"Haimonmon","description":"learning C++ with short simple exercises","archived":false,"fork":false,"pushed_at":"2025-01-27T12:55:52.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T13:50:13.149Z","etag":null,"topics":["cpp","learn-to-code","learning-exercise","practice-programming","programming-language"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Haimonmon.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":"2025-01-14T11:27:42.000Z","updated_at":"2025-01-27T12:55:56.000Z","dependencies_parsed_at":"2025-01-14T13:24:34.390Z","dependency_job_id":"cd2fdd75-5acf-46b7-9ae8-c576b4896e1a","html_url":"https://github.com/Haimonmon/cpp-practice-hub","commit_stats":null,"previous_names":["haimonmon/cpp-practice-hub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haimonmon%2Fcpp-practice-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haimonmon%2Fcpp-practice-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haimonmon%2Fcpp-practice-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haimonmon%2Fcpp-practice-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Haimonmon","download_url":"https://codeload.github.com/Haimonmon/cpp-practice-hub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213850,"owners_count":20254879,"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":["cpp","learn-to-code","learning-exercise","practice-programming","programming-language"],"created_at":"2025-01-19T05:40:47.574Z","updated_at":"2025-03-12T11:41:29.372Z","avatar_url":"https://github.com/Haimonmon.png","language":"C++","readme":"\u003ca id=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003ch1\u003e\u003c/h1\u003e\n\u003ch1 align=\"center\"\u003e C++ Practice Hub \u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://github.com/user-attachments/assets/19e2ad7a-048e-4e53-b391-50dc638013a0\" alt=\"Written on C plus plus badge\" height=28px \u003e\n\n\n\u003ch4\u003e\nThis repository presents a collection of small exercises to help me become familiar with C++ programming.\n\u003c/h4\u003e\n\u003cbr\u003e\n\n\u003c/div\u003e\n\n\u003chr\u003e\n\n## Contents\n* [ Water Consumption Calculator ](#water-consumption-calculator)\n* [ Basic Arithmetic Calculator ](#basic-arithmetic-calculator)\n* [ Palindrome ](#palindrome)\n* [ Piggy Bank ](#piggy-bank)\n* [ First Three Multiple ](#first-three-multiple)\n* [ Tenth Power ](#tenth-power)\n* [ Dog Years ](#dog-years)\n* [ Quadratic Formula ](#quadratic-formula)\n\n\n\n## Water Consumption Calculator \n\n\u003cbr\u003e\n\n## Basic Arithmetic Calculator\n\n\u003cbr\u003e\n\n## Palindrome\nDefine a function is_palindrome() that takes:\n\nAn std::string parameter text.\nThe function should return:\n\ntrue if text is a palindrome.\n\nfalse if text is not a palindrome.\n\n(A palindrome is any text that has the same characters backwards as it does forwards. For example, “hannah” and “racecar” are palindromes, while “menu” and “aardvark” are not.)\n\nWe will not test for edge cases such as capitalization or spaces.\n\n### Example Output\n```cpp\n\nint main() \n{\n  \n  std::cout \u003c\u003c is_palindrome(\"madam\") \u003c\u003c \"\\n\"; // 1\n  std::cout \u003c\u003c is_palindrome(\"ada\") \u003c\u003c \"\\n\"; // 1\n  std::cout \u003c\u003c is_palindrome(\"lovelace\") \u003c\u003c \"\\n\"; // 0  \n  \n}\n\n```\n##\n\n\u003cbr\u003e\n\n## Piggy Bank\n\n\u003cbr\u003e\n\n## First Three Multiple\nWrite a function named first_three_multiples() that has:\n\nAn int parameter named num.\nThe function should return an std::vector of the first three multiples of num in ascending order.\n\n### Example Output\n```cpp\n\n\nint main() \n{  \n  for (int num: first_three_multiples(7))\n  {\n    std::cout \u003c\u003c num \u003c\u003c std::endl; // 7, 14, 21 \n  }\n}\n\n```\n##\n\n\u003cbr\u003e\n\n## Tenth Power\nWrite a function named tenth_power() that has:\n\nAn int parameter named num.\n\nThe function should return num raised to the 10th power.\n\n### Example Output\n```cpp\n\nint main() \n{\n  std::cout \u003c\u003c tenth_power(0) \u003c\u003c \"\\n\"; // 0 \n  std::cout \u003c\u003c tenth_power(1) \u003c\u003c \"\\n\"; // 1\n  std::cout \u003c\u003c tenth_power(2) \u003c\u003c \"\\n\"; // 32\n}\n\n```\n\u003cbr\u003e\n\n## Dog Years\n\n\u003cbr\u003e\n\n## Quadratic Formula \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaimonmon%2Fcpp-practice-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaimonmon%2Fcpp-practice-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaimonmon%2Fcpp-practice-hub/lists"}