Explore BrainMass
Share

Explore BrainMass

    Top Down, Stepwise refinement

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Using top-down, stepwise refinement, create an algorithm for making toast, frying eggs, baking a cake, or ordering pizza. How might algorithms be beneficial in your future profession?

    © BrainMass Inc. brainmass.com October 9, 2019, 8:21 pm ad1c9bdddf
    https://brainmass.com/computer-science/algorithms/top-down-stepwise-refinement-147952

    Solution Preview

    Algorithms are absolutely vital for computer support because the variety of problems a customer can encounter is vast, and therefore the diagnostics must be done in a systematic way by a top-down, stepwise refinement.
    A technician starts from identifying a most general area of the problem and then asks more and more specific questions to incrementally localize the problem to maximal possible certainly and only then proposes a remedy.

    There are various customs for writing algorithms.
    One of the most frequent ones is the pseudo-code and so I use it here, in a 3-level scheme

    Pseudo-code:

    Level 0 (Top)
    Come home from work/studies.

    Am I hungry?
    No --> Check health
    Yes --> See what food is available and decide what I want

    End of Level 0

    Level 1
    See what food is available and ...

    Solution Summary

    Top Down, Stepwise refinement is depicted.

    $2.19