Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Advanced Java #4 150 points - Part One (Part Two will build upon this code) Due date for Part One March 12 (nothing accepted late)

Advanced Java #4 150 points - Part One (Part Two will build upon this code)

Due date for Part One March 12 (nothing accepted late)

Solution posted at 12:01am March 13

You must read in at least 8 to 10 sets of voter data using dialog boxes.

The data is to be read into a linked list. The data to read in is:

  • The registration of the voter (Democrat, Republican or other)
  • The gender of the voter
  • Who did you vote for? (Trump or Biden)
  • How important was the economy to you in making your decision of who to vote for? (Not important, some what important, very important)
  • How important was the civil unrest to you in making your decision of who to vote for? (Not important, some what important, very important)
  • How important was the management of the pandemic to you in making your decision of who to vote for? (Not important, some what important, very important)

Design specifications:

You are to create a new used defined class with the following members:

  • Linked list containing all voter data that has been read in
  • All needed stats data, such as count of females, count males, etc
  • Method called read_voters to read in all data and populate the linked list
  • Method called count_voters - this is a stub, specifications to be determined in the second part of this assignment
  • Method called voter_stats - this is a stub, specifications to be determined in the second part of this assignment
  • Method called print_stats to print everything read in the method read_voters

The order of the calls to these methods is:

  1. read_voters
  2. count_voters
  3. voter_stats
  4. print_stats

  • You are to copy your source code and a screen print of the final program output to Word and upload the Word document to Blackboard

Please note that programs not structured in this exact way will have significant points taken off.

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

Step: 3

blur-text-image

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago