The document provides an algorithm and flowchart for baking a chocolate cake. The algorithm involves preparing the cake, putting it in the oven, checking it every 5 minutes, and removing it once cooked. The flowchart visually shows the process, with a start and end point, preparing the cake, checking every 5 minutes, and removing from the oven once cooked after 5 minutes.