Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Create 3 classes A. A driver class 1. This will be the class that contains th

ID: 3561845 • Letter: 2

Question

2. Create 3 classes

A. A driver class

1. This will be the class that contains the public static void main(String[] args) method

2. This class has the following responsibilities

a. Create a String array with 15 elements

b. Read the state search data from the data file and store each item into the array

c. Create an object instance of the StateCollection class

d. Read each state record from the data file

e. Create an object instance of the State class for each state record

f. Add the State objects to the state collection object

g. Perform the following operations using the collection object after adding all the states

1. Display the state data

a. Include a header

b. Display one state record per line

c. Display the state data using the appropriate format (see Example Output)

2. Sort the array using the Bubble Sort algorithm

a. Sort the array by the State Name field

b. Track the number of

Explanation / Answer

#include #include #include using namespace std; typedef vector CommandLineStringArgs; int main(int argc, char *argv[]) { CommandLineStringArgs cmdlineStringArgs(&argv[0], &argv[0 + argc]); for (int i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote