Question: Question 3 (50 points) Using your responses to Questions 1-2, write the entire program described below. You may submit either a Java OR pseudo-code program.

Question 3 (50 points)

Using your responses to Questions 1-2, write the entire program described below. You may submit either a Java OR pseudo-code program. Also submit a hierarchy chart for your program.

Your program should consist of the following two modules:

  • Module main(). The main module should
    • Declare all necessary variables/constants.
    • Call the module countResults created in Question 2. Be sure to pass all necessary variables.
  • Module countResults(). Created in Question 2.

Question 1:

Pseudo Code :

main function{

Declare the maximum candidates in MAX_CANDIDATES

Create three parallel arrays of size MAX_CANDIDATES

Arrays candidateName and partyCode is of type String

Array totalNumberOfVotes is of type int

Initialize the array with election details

Print the details in the array

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!