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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started