subject

The data file occupations. txt in the canvas files for Week 1 is a plain text file containing information about employment in specific occupations in the United States from the US Dept. of Labor in May of 2018. This is real data compiled from wage and employment surveys. Each data set has four lines of information: • • • COS - The 6-digit Standard Occupational Classification (SOC) code for each occupation title - the title of the occupation employment - the number of people in the US employed on this occupation salary - the average salary for all people employed in the US in this occupation. Here is data from the middle of the file: 15-1132 Software Developers, Applications 903,160 108,080 15-1133 Software Developers, Systems Software 405,330 114,000 15-1134 Web Developers 127,300 75,580 15-1141 Database Administrators 110,090 92,030 Each set of data has one data item per line over four lines, starting with the line that has the COS code. For example, 15-1133 is the code for Software Developers, System; 405,330 people were employed in this occupation in the US at the time the data was collected; and they had an average annual salary of $144,000. The salaries are the average for all employees throughout the United States in each category. Starting salaries for recent graduates tend to be lower. Salaries for more experienced people in each category tend to be higher. Salaries can also vary throughout the country by location. Your task is to create a software package as a Java project that contains three classes: • an executable class for the project itself. This class should contain your main() method, with an instance of the OccupationList object in the main() method, but no array should be declared in the main() method, nor anywhere in the project class. • an Occupation class with the properties Cos, title, employment, and salary. This class should contain methods to manipulate properties of an Occupation, such as getting and setting the properties, along with a toString() method that will return a String with a line of information about an occupation. • an Occupation List class for a list of occupations as an array, with an Occupation array and the number of occupations in the list as properties. This class should contain the methods to manipulate the array of occupations, such as reading data into the array form a datafile, allowing the user to search the array, and printing the array (to the screen). The purpose of this assignment is to make sure you can work with data files, work with arrays, and create software with multiple classes. Your executable class (with the same name as the package) should contain a main() method, should instantiate an instance of the OccupationList class, and should call methods from other classes as needed to: . load the data from the data file into the array of occupations. • including the four properties for each occupation, with one occupation's print the list of occupations dtaa on each line. • a method that asks the user for a COS code, then either displays the data for that code, or says the code list. If you would like, you can create a method that does this by title. Only one of these search functions us needed, but you could have more than one. Remember -- there should be no array in the project class or the Occupation class. The Occupation List class should contain the array of Occupation objects and the methods to manipulate the array. The main() method should call methods from the other classes as needed. You may either ask the user for the name of the data file or hard code it into the project. Either is acceptable. Your method to read data into the file should work independently of the exact number of data items in the file, so you should use a while loop that counts how many items it reads in as it loads the array. An Occupation array of 1,000 should be sufficient. This will let your software work with any list that has up to 1,000 items. The next page has an example from a different project of one way to set up the read loop: count = 0; while (infile. hasNextLine()) { // read data from the file into temporary variables // read Strings directly; parse integers inName = infile. nextLine(); in Type = infile. nextLine(); inPrice = Integer. parseInt( infile. nextLine()); InRent = Integer. parseInt( infile. nextLine()); InColor = infile. nextLine(); // initialize an element in the square array using the BoardSquare class constructor square[i] = new BoardSquare(inName, inType, in Price, in Rent, inColor); // increment the number of squares in the array count++; } // end while // the method returns count as an integer. Each class should be in its own file, within the same package in the same project. You should submit the finished Intelli project folder for this assignment. Please contact me if you have any questions or run into any trouble. Canvas messaging is the best way to contact me.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removedproblems 1.1 write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removed 20 power system relaying from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0+j0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the stub-end fault í• figure 1.16 problem 1.1 system data for figure 1.16 from to positive sequence 0.0+j0.1 0.05j0.15 0.04 j0.2 0.01 jo.i 0.015 + j0.15 0.01 j0.19 0.01 +j0.19 0.03+j0.1 0.0+j0.08 6 6 6 from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0 + j 0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b1, and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the “stub-end” fault.
Answers: 2
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
The data file occupations. txt in the canvas files for Week 1 is a plain text file containing inform...
Questions
question
Mathematics, 05.05.2020 07:43
Questions on the website: 13722361