Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of International Auditing And Assurance

Authors: Rick Hayes, Philip Wallage, Peter Eimers

4th Edition

9463720065, 978-9463720069

More Books

Students also viewed these Accounting questions

Question

e. What difficulties did they encounter?

Answered: 1 week ago