audebono 0 Newbie Poster

Hi i need help with pseudocode functions asap! I need someone very kind to provide functions for the following main program code.

The pseudocode assignment is to create a mail merge program. Managed to do the code for the main program. Is there anyone that can provide the functions for the following code? HELP IS VERY VERY VERY APPRICIATED

Mail Program in Pseudocode

  1. data totalPeople as whole number

  2. output "Enter number of people (between 2 and 20 inclusive)”

  3. input totalPeople

  4. loop until (totalPeople is greater or equal to 2) AND (totalPeople is less than or equal to 20)

  5. output "Number of people must be between 2 and 20 inclusive"
  6. input totalPeople
  7. next loop

  8. data name as string

  9. data c as whole number
  10. data namesArray as array (totalPeople) of string

  11. loop while c is less than sizeof (namesArray)

  12. output "Enter name"
  13. input name
  14. loop until name is not equal to “ “
  15. output "Name cannot be left empty. Re-enter name"
  16. input name
  17. next loop
  18. namesArray[c] = name; c=c+1
  19. end loop

  20. data address as string

  21. data i as whole number
  22. data addressesArray as array (totalPeople) of string

  23. loop while i is less than sizeof (addressesArray)

  24. output "Enter address"
  25. input address
  26. loop until address is not “ “
  27. output "Address cannot be left empty. Re-enter address"
  28. input address
  29. next loop
  30. addressesArray[i] = address; i=i+1
  31. end loop

  32. data totalParagraphs as whole number

  33. output "Enter number of paragraphs (between 3 and 8 inclusive)”

  34. input totalParagraphs

  35. loop until (totalParagraphs is greater or equal to 3) AND (totalParagraphs is less than or equal to 8)

  36. output "Number of paragrahs must be between 3 and 8 inclusive"
  37. input totalParagraphs
  38. next loop

  39. data paragraph as string

  40. data x as whole number
  41. data paragraphsArray as array (totalParagraphs) of string

  42. loop while x is less than size of (paragraphsArray)

  43. output "Enter paragraph”
  44. input paragraph
  45. loop until paragraph is not “ “
  46. output "Paragraph cannot be left empty. Re-enter paragraph"
  47. input paragraph
  48. next loop
  49. paragraphsArray[x] = paragraph; x=x+1
  50. end loop

  51. data joinedParagraphs as string

  52. joinedParagraphs = Join(“, “ , paragraphsArray)

  53. data p as whole number

  54. output “List of complete letters:”

  55. loop while p is less than sizeof (totalPeople)
  56. output addressesArray[p] + ", " + namesArray[p] + ", " + joinedParagraphs
  57. end loop