Olivia R.
asked 06/18/22Please give a brief but concise answer to this "highest to lowest" Flowcharting Activity
Create a flowchart that will arrange the values of variables F = 38, S = 13, U= 592 ,W 134, V=757 from highest to lowest order
More
1 Expert Answer
Vasily S. answered 3d
Tutor
New to Wyzant
Top 1% Teacher, Targeted Strategies for 20+ Point Gains—Book Now
Steps to get you started:
- START (Ellipse)
- This is the "Start" or "Begin" terminal shape.
- INITIALIZE DATA (Rectangle)
- This is a process step. Write the initial state of your variables inside:
- "Set
UnsortedList= [F=38, S=13, U=592, W=134, V=757]" - "Set
SortedList= []" - CHECK IF DONE (Diamond)
- This is a decision. The question inside is:
- "Is
UnsortedListempty?" - This diamond has two exit paths: YES and NO.
- Path: NO
- If the list is not empty, follow this path to a series of process steps.
-
FIND HIGHEST (Rectangle): "Find
MaxValueinUnsortedList" -
ADD TO SORTED (Rectangle): "Add
MaxValuetoSortedList" -
REMOVE FROM UNSORTED (Rectangle): "Remove
MaxValuefromUnsortedList" - From this last step, draw an arrow looping back up to the "CHECK IF DONE" diamond (Step 3).
- Path: YES
- If the list is empty, the loop is finished. Follow this path.
- DISPLAY RESULT (Parallelogram): This is an Input/Output shape.
- "Display
SortedList" - END (Ellipse)
- This is the "End" or "Stop" terminal shape.
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Shoumik R.
Is there any specific algorithm that you need to answer this?06/26/22