Question: * * * , model the following programs logic using either pseudocode or a flowchart ( or both! ) . Because this program uses functions
model the following programs logic using either pseudocode or a flowchart or both! Because this program uses functions to modularize the code, you should create SEPARATE flowchartspseudocode for EACH function. Do NOT try to create a single flowchartpseudocode that captures the logic in all the functions. Pseudocode may be typed into a Word document or a text file. Flowcharts may be created using drawing shapes in a program such as Word or PowerPoint. They may also be created using an online tool such as Draw.IO
#Definition of the checkvowel which returns the value based on the vowel conditions...
def checkvowelword:
val
for ch in word:
if ch in aeiouAEIOU:
val
return val
#Definition of the checkconsonant which returns the value based on the given consonants conditions...
def checkconsonantword:
val
for ch in word.lower:
if ch in rstln:
val
return val
#Definition of the checknumeric which returns the value based on the numeric values conditions...
def checknumericword:
val
for ch in word:
if ch in :
val
return val
#Definition of the computevalue which takes list of words...
def computevaluewordlist:
#Set the totalValue to
totalValue
#Call all functions and find the value...
for word in wordlist:
val
val checkvowelword
val checkconsonantword
val checknumericword
#Update the totalValue...
totalValue val
#Print the results...
print
The value of the entire list is totalValue
printThe Average per word is :fformattotalValue lenwordlist
#Definition of the main function...
def main:
#Declare an empty list wordlist...
wordlist
#Ask user for inputs...
while True:
word inputEnter a word to stop:
if word :
wordlist.appendword
else:
break
#Call the computevalue function...
computevaluewordlist
#Call the main function...
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
