Program Pseudocode Program Flowchart Program Hierarchy Chart Test Data Expected Results Pr Q37146389

  1. Program pseudocode
  2. Program flowchart
  3. Program hierarchy chart
  4. 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.