ScratchData LogoScratchData
Back to JacobAtInnovEd's profile

Getting Unstuck: Day 14 — Taco Cat

JAJacobAtInnovEd•Created July 18, 2018
Getting Unstuck: Day 14 — Taco Cat
8
3
38 views
View on Scratch

Instructions

Tell Scratch Cat a word or phrase and they'll say if it's a palindrome or not. For example, try "taco cat".

Description

Reflection This was a fun little project to do and came together fairly quickly. Once done, and after initially posting, I went back and refactored the code, which is probably where I spent the majority of my time. I happen to like refactoring quite a bit as this is usually where I learn the most about programming. Highly recommend! :) How it works: After the users answers Scratchy, the script processes it by pulling out only the letters of the alphabet while creating variables forward and reverse. This is to prevent spaces and specials characters (ie !@#$%) won't be used in the check. The letters in variables forward and reverse are then checked against one another. If any comparison isn't identical, then it isn't a palindrome.

Project Details

Project ID236692738
CreatedJuly 18, 2018
Last ModifiedJuly 21, 2018
SharedJuly 18, 2018
Visibilityvisible
CommentsAllowed