{"id":19427930,"url":"https://github.com/gappeah/polygon-area-calculator","last_synced_at":"2025-02-25T05:22:48.180Z","repository":{"id":191433540,"uuid":"684658342","full_name":"gappeah/polygon-area-calculator","owner":"gappeah","description":"As part of my five projects for freeCodeCamp Scientific Computing with Python","archived":false,"fork":false,"pushed_at":"2023-08-29T15:37:59.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T19:44:39.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/gappeah.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-08-29T15:35:22.000Z","updated_at":"2024-09-12T11:00:36.000Z","dependencies_parsed_at":"2023-08-29T23:13:07.317Z","dependency_job_id":null,"html_url":"https://github.com/gappeah/polygon-area-calculator","commit_stats":null,"previous_names":["gappeah/polygon-area-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gappeah%2Fpolygon-area-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gappeah%2Fpolygon-area-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gappeah%2Fpolygon-area-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gappeah%2Fpolygon-area-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gappeah","download_url":"https://codeload.github.com/gappeah/polygon-area-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240607636,"owners_count":19828272,"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-10T14:13:17.803Z","updated_at":"2025-02-25T05:22:48.157Z","avatar_url":"https://github.com/gappeah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"I used object-oriented programming to create a Rectangle class and a Square class. The Square class is a subclass of Rectangle and inherits methods and attributes from the Rectangle class.\n\nThe Rectangle class has the following methods:\n\n* `set_width()`\n* `set_height()`\n* `get_area()`\n* `get_perimeter()`\n* `get_diagonal()`\n* `get_picture()`\n* `get_amount_inside()`\n\nThe Square class has the following methods:\n\n* `set_side()`\n\nWhen an instance of a Rectangle is represented as a string, it should look like: `Rectangle(width=5, height=10)`\n\nWhen an instance of a Square is represented as a string, it should look like: `Square(side=9)`\n\nI created a usage example that shows how to use the Rectangle and Square classes. The code returns the following:\n\n```\n50\n26\nRectangle(width=10, height=3)\n**********\n**********\n**********\n81\n5.656854249492381\nSquare(side=4)\n****\n****\n****\n****\n8\n```\n\nThe unit tests for this project are in `test_module.py`. I wrote my code in `shape_calculator.py`. For development, I used `main.py` to test my `shape_calculator()` function. Click the \"run\" button and `main.py` will run.\n\nThe tests are imported from `test_module.py` to `main.py` for convenience. The tests will run automatically whenever I hit the \"run\" button.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgappeah%2Fpolygon-area-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgappeah%2Fpolygon-area-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgappeah%2Fpolygon-area-calculator/lists"}