Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Any help with this assignment? All the coding has to be done on java. All information is provided in the screenshots with an introduction of

Any help with this assignment? All the coding has to be done on java. All information is provided in the screenshots with an introduction of what the exercises are about.

Please the format of the classes that are needed to be created in the assignment by following what they ask in each exercise.

Take as much time as you need, more than 2 hours is fine!

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Introduction For this assignment you will create classes and files to produce a list of candidates that can be interviewed for a potential job. Employment agencies receive hundreds of job applications every day. In order to identify suitable candidates, a computer-aided software approach can be used. Instead of making use of people to examine these CVs, it would be far more efficient and faster to provide an application that can read a file containing all of the CVs; so that the potential candidates can be identified (based on certain criteria) for the interview process. One way of achieving this can be to make use of a 'dirty' file that contains all potential CVs, and then produce a 'clean' file one in which the potential candidates are listed in a particular structure. The reason for creating the clean' file is to put the CV data into a format that can easily be manipulated. Once you have the 'clean' file, the next step would be to look at each candidate in the 'clean' file and identify (based on certain criteria) whether a candidate is suitable for an interview or not. For example, a suitable candidate may be a computer programmer with 5 years' experience. Additionally, an application could create a file only with very experienced candidates. For example, this may be candidates with 7+ years' experience as a computer programmer. The file can also be converted into a .csv file so that it can easily be opened and used as a spreadsheet. Looking at an example, the following file is the 'dirty' file, aptly names dirtycv.txt and it contains 5 potential candidates. Each CV starts with a CV # (# is replaced with 1 or End 2 or 3. etc). Each CV ends with the word End (every 2nd CV is highlighted to split the CVs up-for ease of reading for this document reading only). dirtyev.txt Surname : Ngoni CV 1 FirstName: Mary Address: Whatever Street Surname : Smith First Name: John Qualification Degree in Computer Science Address: 1 Whatever Street Position: Programmer Experience: 10 Qualification: Degree in Computer Science Position: Data Analyst eMail: ngomin@gmail.com Find Experience: 5 CV 5 Surname:Chen Position: Computer programmer Experience: 2 : eMail: smith@gmail.com First Name: Chris End Address: 4 Whatever Street CV 2 Qualification: Masters in Computer Science Position: Programmer Surname: Harrison First Nama Jane Experience: 7 Qualification: None eMail:chen mail.com End cMail: harrisonj@gmail.com End CV 3 Surname:Jones This file is GIVEN to you. When your application is tested, we will make use of a different data set, i.e. a different dirtycv.txt file. The first step is for you to create a class with methods and produce a 'clean' CV file, named cleancv.txt - The cleancv.txt should display all of the CVs in the following way (take note that the fields' are separated with commas): First Name: Richard Address : 2 Whatever Street Qualification: Masters in Computer Science cleancv.txt Position: Operator Basi LhODO, DE in Corpulu Seiuncw, Data Analyst, 5. Corpulu PEDE, 2, ni Lhmail.com, Experience: 10 Harrison 0002, Nene, harrison nail.com, JonesOD03, Masters in Computer Science, Operator, 10. Computer programer, 2.3onesramail.com, Position: Computer programmer Experience: 2 Nyoni0004 Degree in Computer Science, Program, 10. ngamineail.com, Chen0005. Masters in Computer Science, Programmer, 7, chencegmail.con, eMail: jonesr@gmail.com The package declaration for this assignment is: package com.bham.pij.assignments.candidates; Do not copy and paste this package declaration from this pdf! You will get unexpected characters in your files that will render them untestable. Type it in. Once the cleancv.txt has been created, the next step is for the application to produce a list of potential candidates to be interviewed (based on criteria as stipulated below in the instructions). Given the example above, we would like to choose the candidates that have either a Degree in Computer Science or a Masters in Computer Science. Other criteria relate to the types of positions they hold, i.e. an operator, as well as the number of years' experience they have. This means that the cleancv.txt file should provide a list of candidates placed in a new file called the to-interview.txt file and again, given the above example, it would look as follows: to-interview.txt Your package declaration must be on the very first line of your file. Do not put anything above the package declaration, not even comments. Do not forget to add the semicolon at the end of the package declaration. All characters in a package name should be lower case. Anitho1 Degree in Computer Science Data Analyst 5 Computer programeter 2 snithail.com In each of these questions, you are not restricted to only creating the required methods, but you must create at least the required methods. Please abide by the rules of the question. All of the required methods must be public. Jonec0003 Masters in Computer Science Operator 10 computer progranner 2 Jonesrgnail.com Ngom: 0004 Degree in Computer Science Programmer 10 ngoninegail.com Chen0005 Masters in Computer Science Programmer 1 chenenati.com Only candidates 1, 3, 4 and 5 have been chosen, according to certain criteria. Additionally, it would be standard practice for this file to be a .csv file as part of the assignment you will be expected to produce a .csv file. This allows people to open the file easily using a spreadsheet. The .csv file is to be called to-interview-table- format.csv None of the required methods should be declared as static. Do not use non-ASCII characters anywhere in your files, even as comments. All strings can be treated as case insensitive unless otherwise stated. Introduction The last step is to produce a list of experienced candidates. In this instance, if you were only looking for candidates that have 7 or more years of experience then Jones0003 and Ngomi0004 makes the cut with their 10 years of experience to-interview-experience.txt For this assignment you will create classes and methods that will be used to develop an application for an employment agency. The end goal is to identify potential candidate interviewees for a job. Jones0003 10 Each question involves the creation of a .txt file as output. You need to create all of the classes yourself as well as most of the .txt files. Ngm: 00 0 4 14 Submission instructions Submit your work by the deadline above as a zip archive. Submit only.java source files as well as .txt and .csv files in your archive unless told otherwise. Make absolutely sure you are not submitting .class files instead of .java files. Each Java file must have a package declaration at the topic of it (these declarations must be on the very first line of the file). The final part of this declaration varies according to the assignment and exercise. Please do NOT specify any path names. For example, you would make use of the following relative path when creating/using a file: Path fileIn = Paths.get ("dirtyev.txt"); The only validation that is required is stated in the exercises below. As you do each question, you are strongly recommended to check that the functionality you added in the previous exercise still works. This is called regression testing. Creating an application to produce a file that lists potential candidates for a job interview. As discussed, employment agencies find it difficult to examine hundreds of CVs to determine who needs to be interviewed. It is therefore very difficult for agencies to properly extract information from CVs, and potentially good candidates may not be highlighted. You have been tasked with writing a Java application to produce an automated list of potential candidates to be interviewed, stored in a series of files. Each question produces a file. It is important that a file is produced as this is what will be marked. Once this CV is cleaned up it should appear as follows in the cleancv.txt file: Smith0001 Degree in Computer Science, Data Analyst, 5, Computer programmet, 2.snithj@sil.com, Take note that there are 5 CVs in the dirtycv.txt file and that means there needs to be 5 lines (records) in the cleancv.txt file (see above for the complete example). The dirtycv.txt file needs to be cleaned up so that each line is formatted accordingly: Identifier qualification, position, experience,position, experience, eMail, Identifier - Smith0001 - Qualification - Degree in Computer Science Question 1: [30] Position - Data Analyst Experience - 5 (this would be 5 years) Position - Computer programmer Write a Java class called Cleaning up with methods that will take an existing file (the dirtycv.txt that has been given to you) and clean the file up. The cleaned-up version must be written to a new file called cleancv.txt file. a . For question 1 create a method public void cleanUpFile(). You have been given the dirtycv.txt file (to be used as input/read). The method must re-structure the dirtycv.txt file so that each candidate can be viewed as a record, taking up exactly 1 line in the new file (the cleancy.txt). For example, CV 1 is John Smith in the dirtycv.txt file and appears as follows: Experience - 2 eMail-smithi@gmail.com Remember that this is an example illustrating what the output could look like. This is not to say that it will always be John Smith. Take note of the following: CV 1 Surname : Smith First Name: John The identifier needs to be generated, i.e. Smith0001 (it is mandatory that there is a 000 placed in front of the 1. So, CV 1 correlates to Smith0001; . This is a comma separated file; There are no spaces between commas; . The last character in the line is a comma; a ; . There are variations between CVs in the dirtycv.txt file, for example CV 2 has no address Address: 1 Whatever Street Qualification: Degree in Computer Science Position: Data Analyst Experience: 5 Position: Computer programmer Experience: 2 Create a main() method in its own class (Job Candidates Main) and test the program before continuing To summarise, at the end of this question you should produce a file called the cleancv.txt file. The contents of the file should appear as follows: eMail: smithj@gmail.com End Smith0001, Degree in Computer Science, Data Analyst,5,Computer programer, 2, anith@gmail.com, Hazion02, None, ionil.com, Jones0003, basteca in Computer Science, Operato, 10. Computer progea, 2. jones@gmail.com, Ngon 0004, Degree in Computer Science, Programter, 10, ngenisnail.com, Chen005, Masters in Computer Science, Programmer, 7, chencall.com, Question 2: [40] You will need to make use of the cleancv.txt file that you created in Question 1. to 1, complete Question 2. Now that you have a clean file: the next step is to extract only those candidates that the agency would like to interview. In other words, the outout of this question should produce a new file that only holds the candidates to be interviewed. This file should be called to interview.txt For this class, the program must determine whether a candidate in the cleancv.txt file should be chosen to be interviewed. If so, the candidate details are to be written to the to-interview.txt file based on the keywords as described above. The end result for this example is as follows: to-interview.txt Smith000 Degree in Computer Science Data Analyst 5 Computer programet 2 smithjensil.com Jerex0003 Mesters in Computer Science Operator 10 Computer programe 2 oreil.com Nyoni0004 Degree in Computer Science Program 10 mgonimail.com Chendos Masters in Casputer Science Program: 7 chunchail.com The following form part of each line in the to-interview.txt file: Create a class called CandidatesToInterview and ensure that you have relative path names for the files: The criteria for the candidates to become potential interviewees are as follows: There is a space between each field (a field being Smith0001 or Degree in Computer Science, etc) The following data is captured as part of the record o identifier O Qualification o Position (most current) 0 Years of experience (most current) o Position o Years of experience The potential candidates are going to be candidates that have suitable qualifications - experience Create a method called public void find Candidates() and make use of the following arrays as keywords to determine which candidates get chosen for interviews. String [1 keywords Degree - "Degree in Computer Science", "Masters in Computer Science"); Take note that Harrison did not make the list as they do not have a qualification. Although Ngomi0004 and Chen0005 have the experience related to being a programmer only, they still qualify. Smith0001 and Jones0003 qualify as they have experience related to 2 roles. All the qualifiers have either a Degree in Computer Science or a Masters in Computer Science. a . To summarise, at the end of this question you should produce a file called the to-interview.txt file. String [keywords Experience = "Data Analyst", "Programmer", "Computer programmer", "Operator"); For this assignment, these are the keywords used for the degrees as well as the years of experience. In the real world this would not be so. To clarify, the keywords array keywords Degree means that the candidates must either have a Degree in Computer Science or a Masters in Computer Science. Similarly, the keywords array keywords Experience are candidates that must have experience as either data analysts or Programmer or Computer programmer or Operator Go to class JobCandidates Main and test the program before continuing Question 3: [10] Following on from question 2 and staying within the class CandidatesTolnterview, create another method public void candidatesWithExperience() that will produce a file only showing candidates that have more than 5 years of experience in their current role. The current role is the first role listed, such as data analyst for Smith0001, operator for Jones0002, programmer for Ngomi0004 and programmer for Chen0005. the to-interview.txt file to ensure that the candidates to be interviewed are placed into a to-interview-table-format.csv file. You will need to do some research around how to create a .csv file. You will make use of the to-interview.txt file that you created in question 2, to read in the candidates. Extract only those candidates that qualify, placing them in a new file, the to-interview-experience.txt file. to-interview-experience.txt Hint: You can make use of the multi-dimensional array created earlier, An example of what your .csv file should look like is shown here. Take note of the following: . the table has a heading in the first row of the spreadsheet; the eMail address is positioned correctly when there a candidate has only one current position and experience. to-interview-table-format.csv Jones0003 10 Ngami 03 04 l Hint: The use of a multi-dimensional array (or any other data structure) to store potential candidates (in question 2) may make it easier to extract the data from the to-interview.txt file so that you get the to-interview-experience.txt file (only those with more than 5 years' experience). 5 To summarise, at the end of this question you should produce a file called the to-interview-experience.txt file. . Go to class JobCandidates Main and test the program before continuing. At the end of question 3 you should have the following files as output: to-interview-table-format Identifier Qualification Position Experience Position Smith0001 Degree in Computer Science Data Analys 5 Computer programmer Jonesoos Masters in Computer Science Operator 10 Computer programmer Ngomi0004 Degree in Computer Science Programmer 10 Chen0006 Masters in Computer Science Programmer 7 7 Experience2 Mall 2 amimi.com 2 gal.com gommgmail.com chenc@gmail.com Make another method (just for fun and for marks of course) called public void createReport() that reads the records from the to-interview-table- format.csv file and prints the contents to the console in the following format: From Question 1 . cleancv.txt -> all CVs arranged in a particular format read from dirtycv.txt Identifier Smith6891 Jones003 Ngoni 0904 Chen 2005 Qualification Degree in Computer Science Masters in Computer Science Degree in Computer Science Masters in Computer Science Position Experience Data Analyst 5 Operator 18 Programmer 10 Programmer 7 eMail sni thj@gmail.com jonesr@gmail.com ngonimegmail.com chencligmail.com From Question 2 . to-interview.txt -> only the candidates that have qualified From Question 3 3 . to-interview-experience.txt -> only the candidates that have more than 5 - years, experience Question 4: [2 x 10, write to .csv file and read from .csv file] The last step is to place all the candidates to be interviewed (use the to-interview.txt file) into a .csv file so that the employment agency within the organisation can make use of the file in a spreadsheet. Make another method in the CandidatesTolnterview class called public void createCSVFile() and read from Take note that for this report only the current role is outputted. This is just a report that is sent to the console and is not related to a file. This means that you need to take a screenshot of the output and place it into a text editor file such as Word or TextEdit. The file is to be called screenshot-candidates Go to class JobCandidates Main and test the program before submitting. The following files are to be handed in as part of your submission: .java source file(s) cleancv.txt to-interview.txt . to-interview-experience.txt to-interview-table-format.csv screenshot-candidates (a text doc) Introduction For this assignment you will create classes and files to produce a list of candidates that can be interviewed for a potential job. Employment agencies receive hundreds of job applications every day. In order to identify suitable candidates, a computer-aided software approach can be used. Instead of making use of people to examine these CVs, it would be far more efficient and faster to provide an application that can read a file containing all of the CVs; so that the potential candidates can be identified (based on certain criteria) for the interview process. One way of achieving this can be to make use of a 'dirty' file that contains all potential CVs, and then produce a 'clean' file one in which the potential candidates are listed in a particular structure. The reason for creating the clean' file is to put the CV data into a format that can easily be manipulated. Once you have the 'clean' file, the next step would be to look at each candidate in the 'clean' file and identify (based on certain criteria) whether a candidate is suitable for an interview or not. For example, a suitable candidate may be a computer programmer with 5 years' experience. Additionally, an application could create a file only with very experienced candidates. For example, this may be candidates with 7+ years' experience as a computer programmer. The file can also be converted into a .csv file so that it can easily be opened and used as a spreadsheet. Looking at an example, the following file is the 'dirty' file, aptly names dirtycv.txt and it contains 5 potential candidates. Each CV starts with a CV # (# is replaced with 1 or End 2 or 3. etc). Each CV ends with the word End (every 2nd CV is highlighted to split the CVs up-for ease of reading for this document reading only). dirtyev.txt Surname : Ngoni CV 1 FirstName: Mary Address: Whatever Street Surname : Smith First Name: John Qualification Degree in Computer Science Address: 1 Whatever Street Position: Programmer Experience: 10 Qualification: Degree in Computer Science Position: Data Analyst eMail: ngomin@gmail.com Find Experience: 5 CV 5 Surname:Chen Position: Computer programmer Experience: 2 : eMail: smith@gmail.com First Name: Chris End Address: 4 Whatever Street CV 2 Qualification: Masters in Computer Science Position: Programmer Surname: Harrison First Nama Jane Experience: 7 Qualification: None eMail:chen mail.com End cMail: harrisonj@gmail.com End CV 3 Surname:Jones This file is GIVEN to you. When your application is tested, we will make use of a different data set, i.e. a different dirtycv.txt file. The first step is for you to create a class with methods and produce a 'clean' CV file, named cleancv.txt - The cleancv.txt should display all of the CVs in the following way (take note that the fields' are separated with commas): First Name: Richard Address : 2 Whatever Street Qualification: Masters in Computer Science cleancv.txt Position: Operator Basi LhODO, DE in Corpulu Seiuncw, Data Analyst, 5. Corpulu PEDE, 2, ni Lhmail.com, Experience: 10 Harrison 0002, Nene, harrison nail.com, JonesOD03, Masters in Computer Science, Operator, 10. Computer programer, 2.3onesramail.com, Position: Computer programmer Experience: 2 Nyoni0004 Degree in Computer Science, Program, 10. ngamineail.com, Chen0005. Masters in Computer Science, Programmer, 7, chencegmail.con, eMail: jonesr@gmail.com The package declaration for this assignment is: package com.bham.pij.assignments.candidates; Do not copy and paste this package declaration from this pdf! You will get unexpected characters in your files that will render them untestable. Type it in. Once the cleancv.txt has been created, the next step is for the application to produce a list of potential candidates to be interviewed (based on criteria as stipulated below in the instructions). Given the example above, we would like to choose the candidates that have either a Degree in Computer Science or a Masters in Computer Science. Other criteria relate to the types of positions they hold, i.e. an operator, as well as the number of years' experience they have. This means that the cleancv.txt file should provide a list of candidates placed in a new file called the to-interview.txt file and again, given the above example, it would look as follows: to-interview.txt Your package declaration must be on the very first line of your file. Do not put anything above the package declaration, not even comments. Do not forget to add the semicolon at the end of the package declaration. All characters in a package name should be lower case. Anitho1 Degree in Computer Science Data Analyst 5 Computer programeter 2 snithail.com In each of these questions, you are not restricted to only creating the required methods, but you must create at least the required methods. Please abide by the rules of the question. All of the required methods must be public. Jonec0003 Masters in Computer Science Operator 10 computer progranner 2 Jonesrgnail.com Ngom: 0004 Degree in Computer Science Programmer 10 ngoninegail.com Chen0005 Masters in Computer Science Programmer 1 chenenati.com Only candidates 1, 3, 4 and 5 have been chosen, according to certain criteria. Additionally, it would be standard practice for this file to be a .csv file as part of the assignment you will be expected to produce a .csv file. This allows people to open the file easily using a spreadsheet. The .csv file is to be called to-interview-table- format.csv None of the required methods should be declared as static. Do not use non-ASCII characters anywhere in your files, even as comments. All strings can be treated as case insensitive unless otherwise stated. Introduction The last step is to produce a list of experienced candidates. In this instance, if you were only looking for candidates that have 7 or more years of experience then Jones0003 and Ngomi0004 makes the cut with their 10 years of experience to-interview-experience.txt For this assignment you will create classes and methods that will be used to develop an application for an employment agency. The end goal is to identify potential candidate interviewees for a job. Jones0003 10 Each question involves the creation of a .txt file as output. You need to create all of the classes yourself as well as most of the .txt files. Ngm: 00 0 4 14 Submission instructions Submit your work by the deadline above as a zip archive. Submit only.java source files as well as .txt and .csv files in your archive unless told otherwise. Make absolutely sure you are not submitting .class files instead of .java files. Each Java file must have a package declaration at the topic of it (these declarations must be on the very first line of the file). The final part of this declaration varies according to the assignment and exercise. Please do NOT specify any path names. For example, you would make use of the following relative path when creating/using a file: Path fileIn = Paths.get ("dirtyev.txt"); The only validation that is required is stated in the exercises below. As you do each question, you are strongly recommended to check that the functionality you added in the previous exercise still works. This is called regression testing. Creating an application to produce a file that lists potential candidates for a job interview. As discussed, employment agencies find it difficult to examine hundreds of CVs to determine who needs to be interviewed. It is therefore very difficult for agencies to properly extract information from CVs, and potentially good candidates may not be highlighted. You have been tasked with writing a Java application to produce an automated list of potential candidates to be interviewed, stored in a series of files. Each question produces a file. It is important that a file is produced as this is what will be marked. Once this CV is cleaned up it should appear as follows in the cleancv.txt file: Smith0001 Degree in Computer Science, Data Analyst, 5, Computer programmet, 2.snithj@sil.com, Take note that there are 5 CVs in the dirtycv.txt file and that means there needs to be 5 lines (records) in the cleancv.txt file (see above for the complete example). The dirtycv.txt file needs to be cleaned up so that each line is formatted accordingly: Identifier qualification, position, experience,position, experience, eMail, Identifier - Smith0001 - Qualification - Degree in Computer Science Question 1: [30] Position - Data Analyst Experience - 5 (this would be 5 years) Position - Computer programmer Write a Java class called Cleaning up with methods that will take an existing file (the dirtycv.txt that has been given to you) and clean the file up. The cleaned-up version must be written to a new file called cleancv.txt file. a . For question 1 create a method public void cleanUpFile(). You have been given the dirtycv.txt file (to be used as input/read). The method must re-structure the dirtycv.txt file so that each candidate can be viewed as a record, taking up exactly 1 line in the new file (the cleancy.txt). For example, CV 1 is John Smith in the dirtycv.txt file and appears as follows: Experience - 2 eMail-smithi@gmail.com Remember that this is an example illustrating what the output could look like. This is not to say that it will always be John Smith. Take note of the following: CV 1 Surname : Smith First Name: John The identifier needs to be generated, i.e. Smith0001 (it is mandatory that there is a 000 placed in front of the 1. So, CV 1 correlates to Smith0001; . This is a comma separated file; There are no spaces between commas; . The last character in the line is a comma; a ; . There are variations between CVs in the dirtycv.txt file, for example CV 2 has no address Address: 1 Whatever Street Qualification: Degree in Computer Science Position: Data Analyst Experience: 5 Position: Computer programmer Experience: 2 Create a main() method in its own class (Job Candidates Main) and test the program before continuing To summarise, at the end of this question you should produce a file called the cleancv.txt file. The contents of the file should appear as follows: eMail: smithj@gmail.com End Smith0001, Degree in Computer Science, Data Analyst,5,Computer programer, 2, anith@gmail.com, Hazion02, None, ionil.com, Jones0003, basteca in Computer Science, Operato, 10. Computer progea, 2. jones@gmail.com, Ngon 0004, Degree in Computer Science, Programter, 10, ngenisnail.com, Chen005, Masters in Computer Science, Programmer, 7, chencall.com, Question 2: [40] You will need to make use of the cleancv.txt file that you created in Question 1. to 1, complete Question 2. Now that you have a clean file: the next step is to extract only those candidates that the agency would like to interview. In other words, the outout of this question should produce a new file that only holds the candidates to be interviewed. This file should be called to interview.txt For this class, the program must determine whether a candidate in the cleancv.txt file should be chosen to be interviewed. If so, the candidate details are to be written to the to-interview.txt file based on the keywords as described above. The end result for this example is as follows: to-interview.txt Smith000 Degree in Computer Science Data Analyst 5 Computer programet 2 smithjensil.com Jerex0003 Mesters in Computer Science Operator 10 Computer programe 2 oreil.com Nyoni0004 Degree in Computer Science Program 10 mgonimail.com Chendos Masters in Casputer Science Program: 7 chunchail.com The following form part of each line in the to-interview.txt file: Create a class called CandidatesToInterview and ensure that you have relative path names for the files: The criteria for the candidates to become potential interviewees are as follows: There is a space between each field (a field being Smith0001 or Degree in Computer Science, etc) The following data is captured as part of the record o identifier O Qualification o Position (most current) 0 Years of experience (most current) o Position o Years of experience The potential candidates are going to be candidates that have suitable qualifications - experience Create a method called public void find Candidates() and make use of the following arrays as keywords to determine which candidates get chosen for interviews. String [1 keywords Degree - "Degree in Computer Science", "Masters in Computer Science"); Take note that Harrison did not make the list as they do not have a qualification. Although Ngomi0004 and Chen0005 have the experience related to being a programmer only, they still qualify. Smith0001 and Jones0003 qualify as they have experience related to 2 roles. All the qualifiers have either a Degree in Computer Science or a Masters in Computer Science. a . To summarise, at the end of this question you should produce a file called the to-interview.txt file. String [keywords Experience = "Data Analyst", "Programmer", "Computer programmer", "Operator"); For this assignment, these are the keywords used for the degrees as well as the years of experience. In the real world this would not be so. To clarify, the keywords array keywords Degree means that the candidates must either have a Degree in Computer Science or a Masters in Computer Science. Similarly, the keywords array keywords Experience are candidates that must have experience as either data analysts or Programmer or Computer programmer or Operator Go to class JobCandidates Main and test the program before continuing Question 3: [10] Following on from question 2 and staying within the class CandidatesTolnterview, create another method public void candidatesWithExperience() that will produce a file only showing candidates that have more than 5 years of experience in their current role. The current role is the first role listed, such as data analyst for Smith0001, operator for Jones0002, programmer for Ngomi0004 and programmer for Chen0005. the to-interview.txt file to ensure that the candidates to be interviewed are placed into a to-interview-table-format.csv file. You will need to do some research around how to create a .csv file. You will make use of the to-interview.txt file that you created in question 2, to read in the candidates. Extract only those candidates that qualify, placing them in a new file, the to-interview-experience.txt file. to-interview-experience.txt Hint: You can make use of the multi-dimensional array created earlier, An example of what your .csv file should look like is shown here. Take note of the following: . the table has a heading in the first row of the spreadsheet; the eMail address is positioned correctly when there a candidate has only one current position and experience. to-interview-table-format.csv Jones0003 10 Ngami 03 04 l Hint: The use of a multi-dimensional array (or any other data structure) to store potential candidates (in question 2) may make it easier to extract the data from the to-interview.txt file so that you get the to-interview-experience.txt file (only those with more than 5 years' experience). 5 To summarise, at the end of this question you should produce a file called the to-interview-experience.txt file. . Go to class JobCandidates Main and test the program before continuing. At the end of question 3 you should have the following files as output: to-interview-table-format Identifier Qualification Position Experience Position Smith0001 Degree in Computer Science Data Analys 5 Computer programmer Jonesoos Masters in Computer Science Operator 10 Computer programmer Ngomi0004 Degree in Computer Science Programmer 10 Chen0006 Masters in Computer Science Programmer 7 7 Experience2 Mall 2 amimi.com 2 gal.com gommgmail.com chenc@gmail.com Make another method (just for fun and for marks of course) called public void createReport() that reads the records from the to-interview-table- format.csv file and prints the contents to the console in the following format: From Question 1 . cleancv.txt -> all CVs arranged in a particular format read from dirtycv.txt Identifier Smith6891 Jones003 Ngoni 0904 Chen 2005 Qualification Degree in Computer Science Masters in Computer Science Degree in Computer Science Masters in Computer Science Position Experience Data Analyst 5 Operator 18 Programmer 10 Programmer 7 eMail sni thj@gmail.com jonesr@gmail.com ngonimegmail.com chencligmail.com From Question 2 . to-interview.txt -> only the candidates that have qualified From Question 3 3 . to-interview-experience.txt -> only the candidates that have more than 5 - years, experience Question 4: [2 x 10, write to .csv file and read from .csv file] The last step is to place all the candidates to be interviewed (use the to-interview.txt file) into a .csv file so that the employment agency within the organisation can make use of the file in a spreadsheet. Make another method in the CandidatesTolnterview class called public void createCSVFile() and read from Take note that for this report only the current role is outputted. This is just a report that is sent to the console and is not related to a file. This means that you need to take a screenshot of the output and place it into a text editor file such as Word or TextEdit. The file is to be called screenshot-candidates Go to class JobCandidates Main and test the program before submitting. The following files are to be handed in as part of your submission: .java source file(s) cleancv.txt to-interview.txt . to-interview-experience.txt to-interview-table-format.csv screenshot-candidates (a text doc)

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

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago