You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes/no, and optionally any details/lines of code to reference
Correctly uses conditionals (if/else/elsif)
✔️
Correctly uses loops (while/until)
⚠ Take a look at my inline comments. Your loops to ensure things are integers don't work.
Correctly uses gets.chomp
✔️
Correctly uses variables
✔️
Correctly creates and uses custom methods
✔️
Functional Requirements
Functional Requirement
yes/no
User can input two numbers and an operator and perform addition
✔️
User can input in two numbers and an operator and can perform subtraction
✔️
User gets feedback from the CLI when attempting to divide by zero, and the program does not give an error
✔️
Overall Feedback
Overall Feedback
Criteria
yes/no
Green (Meets/Exceeds Standards)
3+ in Code Review && 2+ in Functional Requirements
✔️
Code Style Bonus Awards
Was the code particularly impressive in code style for any of these reasons (or more...?)
Quality
Yes?
Perfect Indentation
⚠ You have indentation issues here. See my inline comments.
Descriptive/Readable
✅
Concise
✅
Logical/Organized
✅
Summary
Overall there's some good work here. You hit the learning goals. This makes a good start at Ada.
One thing I strongly suggest is that you run the code and test things a few times before submission. You would have caught your errors in the input validation then.
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
puts"wrong input! Please enter an Integer .. try again!"
puts"wrong input! Please enter an Integer .. try again!"
b=gets.chomp.to_i
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Assignment Submission: Calculator
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions:
Reflection