Skip to content
Sign UpLog In
Profile icon

James Chang

@zhaoren
GitHub
Repls
Community
zhaoren
zhaoren
published a Repl
9 months ago
1
20220510 Ruby homework
20220510 Ruby homework1) Write code to reproduce the behavior of the .capitalize String method without using it. Hint: You can still use .upcase (otherwise it’s much trickier) I tries to do this but, all I could think was to capitalize everything... 2) :warning: ADVANCED (for the hungry ones only) Build a simple calculator that lets the user input two numbers and an operator, and gives the result. I ran into problems until I saw Olga's IF and ELSIF commands.