Introduction to Flow Charts
Flow charts can be used to showcase algorithms in abstract methods, and can be good for things like showcasing the different steps of an algorithm. They are good for things like project management, and can help you basically understand the entire workflow of how things work together.
They are comprised of boxes and arrows connecting them, the flow of these arrows and boxes are the steps and orders of how each step is done, with each given box’s shape determining different things about said box.
This is a flow chart for something like going into a light and then turning on a light switch.
The oval box is basically the start/end of your flowchart, it is where your action beings, and can be one of the ways your actions end as well.
The parallelogram are basically I/O actions and these do things like gather or display data, they are useful for describing the information that you might need from an outside source or an outside application, which you can then basically use for making that action
The diamond are the things like that represent decisions these are usually binary, so yes or no, and this is generally where things branch off in your given flowchart based on the outcome of a decision
The square is the the actual basic action, it is a thing that you perform after a decision has been made, and then you obviously move on after doing that given action
The below is the description of the algorithm that was mentioned for how to calculate the square root of a number to a given number of decimals, see week 1 for the notes of this:
The Birthday Party Problem
Organize a birthday party for your younger sibling, you have been given 48 toys, and 42 sweets, you have to give away all of the toys and sweets to the guests at the party, what is the highest number of guests such that each guest gets the same amount of sweets and toys.
In part 2:
You are a system admin for a company, you are tasked with creating clusters of computers which may be in separate buildings. Each cluster has a number of Pcs and printers, you are tasked with creating as many clusters as possible from x = # of computers y = # of prints where x and y can change from month to month depending on the companies resources, your boss wants you to use all hardware otherwise upper management will be upset, and they want you to use as many parts as possible. Give a general algorithm and a general flow chart for it to solve this problem

