-
Notifications
You must be signed in to change notification settings - Fork 49
Space - Cathy #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Space - Cathy #40
Conversation
CalculatorMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
SummaryNice work, you hit all the learning goals here. Well done. |
| # method defining which operator user chooses | ||
| def operatorchoice(operator) | ||
| case operator | ||
| when "add", "+", "addition", "adding", "add(+)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should indent the when blocks over case.
| ans1 = gets.chomp | ||
| num1 = ans1.to_f | ||
| until ans1.to_i.to_s == ans1 || ans1.to_f.to_s == ans1 | ||
| puts "Please re-enter number 1: " | ||
| ans1 = gets.chomp | ||
| num1 = ans1.to_f | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this indented?
| @@ -0,0 +1,66 @@ | |||
| # method defining which operator user chooses | |||
| def operatorchoice(operator) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested rename
| def operatorchoice(operator) | |
| def operator_choice(operator) |
Assignment Submission: Calculator
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions:
Reflection