Skip to content

Code for refactoring#113

Open
amai83 wants to merge 4 commits intoVyProductions:masterfrom
amai83:amy_chatgpt
Open

Code for refactoring#113
amai83 wants to merge 4 commits intoVyProductions:masterfrom
amai83:amy_chatgpt

Conversation

@amai83
Copy link
Collaborator

@amai83 amai83 commented Aug 1, 2024

This program performs a series of calculations based on user input. It outputs the slope, Manhattan distance, and Euclidian distance between two points. The code asks for user input and error checks it for each calculation, making it extremely redundant. This pull request resolves #112.

This program performs a series of calculations based on user input.
@amai83 amai83 requested a review from VyProductions as a code owner August 1, 2024 04:16
Requested chatgpt to reduce redundancy in code by creating functions to manage repeated actions
@amai83
Copy link
Collaborator Author

amai83 commented Aug 1, 2024

Created separate functions for each calculation that uses a 2D array that stored user input.
https://chatgpt.com/share/337d073f-e6e8-4365-a791-ac49f771a191

amai83 added 2 commits August 1, 2024 11:23
Adding code that needs improvement in documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task 2.1 Code Refactoring

1 participant