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
data totalPeople as whole number
output "Enter number of people (between 2 and 20 inclusive)”
input totalPeople
loop until (totalPeople is greater or equal to 2) AND (totalPeople is less than or equal to 20)
- output "Number of people must be between 2 and 20 inclusive"
- input totalPeople
next loop
data name as string
- data c as whole number
data namesArray as array (totalPeople) of string
loop while c is less than sizeof (namesArray)
- output "Enter name"
- input name
- loop until name is not equal to “ “
- output "Name cannot be left empty. Re-enter name"
- input name
- next loop
- namesArray[c] = name; c=c+1
end loop
data address as string
- data i as whole number
data addressesArray as array (totalPeople) of string
loop while i is less than sizeof (addressesArray)
- output "Enter address"
- input address
- loop until address is not “ “
- output "Address cannot be left empty. Re-enter address"
- input address
- next loop
- addressesArray[i] = address; i=i+1
end loop
data totalParagraphs as whole number
output "Enter number of paragraphs (between 3 and 8 inclusive)”
input totalParagraphs
loop until (totalParagraphs is greater or equal to 3) AND (totalParagraphs is less than or equal to 8)
- output "Number of paragrahs must be between 3 and 8 inclusive"
- input totalParagraphs
next loop
data paragraph as string
- data x as whole number
data paragraphsArray as array (totalParagraphs) of string
loop while x is less than size of (paragraphsArray)
- output "Enter paragraph”
- input paragraph
- loop until paragraph is not “ “
- output "Paragraph cannot be left empty. Re-enter paragraph"
- input paragraph
- next loop
- paragraphsArray[x] = paragraph; x=x+1
end loop
data joinedParagraphs as string
joinedParagraphs = Join(“, “ , paragraphsArray)
data p as whole number
output “List of complete letters:”
- loop while p is less than sizeof (totalPeople)
- output addressesArray[p] + ", " + namesArray[p] + ", " + joinedParagraphs
- end loop