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 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
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, 08.10.2019 14:20
question
Mathematics, 08.10.2019 14:20
question
Social Studies, 08.10.2019 14:20
Questions on the website: 13722362