Software Development Concepts project! - Codecademy Project

jaimegpereira

Jaime Pereira

Posted on February 28, 2024

Software Development Concepts project! - Codecademy Project

Hi! I started studying IT to improve my knowledge and to become a professional in this field. I started with the IT introduction course on the "Codecademy" website, where I was asked to create a software concept. Therefore, this article is dedicated to that project!

Plan and write the algorithm

1 - Create a string variable "text" and input the value of the text that we plan to search through
2 - Create a string variable named "pattern" and input the value of the pattern thet we are looking for in text
3 - Create a "match_count" variable and set it to 0
4 - Decision: Have we finished searching the text value?
*If no, continue to step 5
*If yes, continue to step 7
5 - Iterate to the next word in "text" variable
6 - Compare value of "text" to the value of "pattern". Decision: Are they equal?
*If yes, go to 7
*If no, go back to step 5
7 - If "match_count" is equals to the lenght of the patern: pattern found! otherwise: pattern not found!

Draw a Flowchart

Image description

Test the Chart

I will conduct an analysis to make sure it works as expected.

Produce Pseudocode

define text
define pattern
create a match_count variable and set it to 0
if the entire text hasn't been searched:
iterate to the next character of the text
if the entire pattern hasn't been searched:
if this character from the pattern is equal to the character from text:
increment the match_count variable
if match_count is equal to the length of the pattern:
pattern found!
otherwise:
pattern not found!

With the pseudocode done, I conclude this article!
Thank you for giving me some of your time and for reading my article to the end!
This is my first project, so I found it to be a bit chalanging but at the same time very interesting!
I would apreciate sugestions and comments that would help to improve this project!

💖 💪 🙅 🚩
jaimegpereira
Jaime Pereira

Posted on February 28, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related