invictus476

Posted on

# Codecademy Intro to IT Project

This is my Project for the Intro to IT course from codecademy.com. No cool background for me, taking a few courses for fun. So... here it is.

# Part 1: Plan and write algorithm#

``````1. Create a variable called βtextβ (text=ββ), enter the value of βtextβ (test=β2022 world cup standingsβ)

Create a variable called βpatternβ (pattern=ββ), enter the value of βpatternβ (pattern=β world cupβ)
Create βmatch_countβ variable, set the value to 0
Has the text value been searched?
β¦ If no, go to step 5
Iterate to the next word in βtextβ
Is the value of βtextβ and βpatternβ equal?
β¦ If yes, go to step 7
If βmatch_countβ is equal to the length of pattern, then pattern found.

``````

# Part 3: Test the Chart

``````1. text = "ERROR: Invalid function arguments"; pattern = "ERROR"

text = "ERROR: Out of memory"; pattern = "network"
text = "ERROR: The file is write-protected"; pattern = "protected"Β Solution:Β I will conduct an analysis inputs to make sure it works as expected.

``````

# Part 4: Produce the Pseudocode#

Define βtextβ (text=β?β)
Define βpatternβ (pattern=β?β)
If entire pattern hasnβt been searched:
Move on to next character of the text
Create βmatch_countβ set to 0
If entire pattern hasnβt been searched:
if this character from the pattern is equal to the character from text:
increment match_count variable by 1
if match_count is equal to the length of the pattern:
pattern found
otherwise:
no pattern found

# Conclusion

This is the end of my first Software Development Concepts project from Codecademy. Honestly, Iβd like to give a shout out to dev.to user Liudmyla, I appreciate the work that was done in this project. It shed a ton of light for me and was as great help. So, thanks to you Liudmyla for your work! Great Job! If anyone sees this and wants to see a better looking project hereβs the link to Liudmylaβs project.