Structure and Algorithm methods
Arithmetic design can be something as simple as adding 2 numbers or strings together with a +, all the
way to implicating a while loop that allows you to perform certain mathematical equations until a
certain expectation is met. In the same way data structures can be implemented to organize and
categorize data being received in. For example, someone could write a while loop that allows the
code to ask the user to submit information, that information can be added to an empty array to be
stored and used for later, kind of like an employee database. There are multiple different ways to
come to the same end, that is the beauty of software design, it's a form of art. In my opinion, there
are some techniques better than others. Recursion is great for sifting through multiple bits of data,
but can become very confusing if not mastered, while loops are clean and easier to read and can do
the same as the recursion method. With a class that I took prior we had to develop an employee
database system that allowed the user to input employee information, edit information, display,
and even save information to an outbound file. All of this was accessed by a main menu that
displayed the options the user could choose from. In this project I became very familiar with lists,
appending new information and changing that information, I was also familiarized with while loops and IF
statements. If it were me having to utilize arithmetic design and different data structures, I would use
While loops and IF statements in succession with mathematical equations.
Comments
Post a Comment