Need Help Pseudocode Actual Code Write Little Man Program Accepts Three Values Input Outpu Q34751516


Need help with the pseudocode and the actual code

Write a Little Man program that accepts three values as inputand outputs them in order of size, largest to smallest

Expert Answer

Pseudocode for Little Man Program:

  1. Take size of each person as input, say size1, size2, size3
  2. Assign first size to the largest
  3. largest = size1
  4. Assign second size to the smallest
  5. smallest = size2
  6. Now check for the largest of three values
  7. if size1 > size2, then check
    1. if size1 > size3, if true
      1. Do nothing as

Leave a Comment