- Program pseudocode
- Program flowchart
- Program hierarchy chart
- Test data and expected results
- Problem statement: You have been asked todesign a modular program (using a flowchart and pseudocode) whichsummarizes election results for a fictional mayoral race with amaximum of 10 candidates. The program uses arrays to store thefollowing information for each candidate:
- name
- party code (e.g. “R” for republican, “D” for democrat, “N” forno party affiliation)
- total number of votes
Design a function to load thecandidate data which accepts the candidate names array and partycodes array as parameters and returns the number of candidatesloaded. The function loads the arrays with the following candidatedata:
Name
Party Code
Smith
D
Jones
R
Roberts
N
After the program
OR
OR