Skip to content

Maddie - Edges - Calculator#26

Open
madaleines wants to merge 5 commits intoAda-C10:masterfrom
madaleines:master
Open

Maddie - Edges - Calculator#26
madaleines wants to merge 5 commits intoAda-C10:masterfrom
madaleines:master

Conversation

@madaleines
Copy link

Calculator

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
Describe how you stored user input in your program? user input was assigned to a variable based on what was being asked for, options, num_1, num_2, etc.
How did you determine what operation to perform? I used a case statement, so depending on the option selected it would call upon that option in the case statement and perform the defined method
Do you feel like you used consistent indentation throughout your code? I believe so, thanks to auto-indent
If you had more time, what would you have added to or changed about the program? checking the validity of the user input being an int or float, working on changing that atm, some refactoring and will re-submit.

@droberts-sea
Copy link

Calculator

What We're Looking For

Feature Feedback
Takes in two numbers and an operator and performs the mathematical operation. yes
Readable code with consistent indentation. yes

Great job overall! This program works well, and I really appreciate the way you've used methods and whitespace to break up your code. Keep up the hard work!


if num_2 == 0
puts "Does Not Exist"
else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you've included the division-specific error handling code in this method.

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.

2 participants