top of page

~Product Programming skills (PseudoCode, Process Flowchart and Class Diagram Homework)~

Writer's picture: ArchieArchie

After having learnt the basics of three listed above, I was assigned to create either a Galleon creation tool, a Cryptid creation tool or a Superhero creation tool. For this task I chose to create a PseudoCode, Process Flowchart and Class Diagram for a Superhero creation tool.


Process Flowchart:

The process flowchart consists of numerous shapes which all mean different things. The rounded rectangles correspond to the start and finish of the Flowchart, the rhombus correspond to input and output (such as the printing of text), the diamonds correspond to decisions in which the option you choose determines the next action to happen within the flowchart, the small circle corresponds to process connectors where numerous outcomes connect and then pass through the next part of the flowchart.


In my Superhero example, you are first asked whether you'd like for your Superhero to have the listed superpower. Saying yes to this continues you onto the next part but continuously saying no to all of the decisions results in you being brought back to the start, triggering an output explaining that you aught to choose one of the options provided.


After having selected a power, an output is triggered, presenting the power you have chosen, then leading onto process connectors due to the fact that any outcome will eventually fall into this area.


A similar thing happens again, however this time you are to select a species and once again failing to chose one will bring you back to the point where you were asked to select one.


Once having selected your desired species, an output is triggered, presenting your choice of species and power together in a sentence (in a fully functional Python program, this would most likely be done with variables).


Class Diagram:

The class diagram consists of both attributes and methods (attributes filling the top section and methods filling the bottom). Each attribute and method has a '+' or '-' sign next to it, this is to determine whether this is private or public (private ones are only accessible within the class, and nowhere else, this is to help ensure these attributes remain unchanged). Each attribute and method also has a data type.


PseudoCode:

PseudoCode is explaining what each part of the code will do without actually programming it.

Although not at all necessary, adding a line or two explaining what the program is supposed to do at the beginning helps.

A simple variable requesting an input. In this case, a name can be anything so what you call it doesn't have to be restricted by 'if' and 'else' statements.

Here you're giving the user a few options concerning power to choose from, choosing anything other then what's listed wont allow you to carry on with the program. Choosing an adequate power will trigger the print message (much like how choosing a certain decision in the Process Flowchart causes the triggering of an output).

The same thing applies to the latter.

Here, each variable is printed to construct a unique statement following the features you gave to your superhero.

8 views0 comments

Recent Posts

See All

Kommentare


bottom of page