Skip to content

Conversation

@murog
Copy link

@murog murog commented Aug 11, 2017

Calculator

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
Describe how you stored user input in your program. Stored user input as a string, and then split the string into an array that could be no longer than 3 elements: number, operation, number.
How did you determine what operation to perform? By comparing the [1] element in the string to the available operations in the calculator method.
How did you make sure your program behaved correctly? By testing all of the possible operations as well as improper input.
Do you feel like you used consistent indentation throughout your code? I think so!
If you had more time, what would you have added to or changed about the program? I would like to make a method that checks if an input is numeric without using regex.

murog added 2 commits August 11, 2017 08:52
Updates
1. Method that checked if input was numeric without using regex
2. Updated if/else statements in methods to use "case" instead
3. Added calculator with limited characters allowed on screen for result
@tildeee
Copy link

tildeee commented Aug 14, 2017

Calculator

What We're Looking For

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

@tildeee
Copy link

tildeee commented Aug 14, 2017

Great use of the case statement

I love your ASCII calculator!

@murog murog changed the title Guillermina Muro -- Carets Guille-- Carets Aug 19, 2020
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