Description
Is there anybody willing to game share "the last of us" on psn?

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer

yes it is on psn

Completion Status:
100%

Studypool
4.7
Indeed
4.5

Sitejabber
4.4
24/7 Study Help
Stuck on a study question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content

ALY 6040 Northeastern University Data Mining Applications Report
Please read the Rules below carefully:Rules:Quiz is available in Quiz_ALY6040.pdf1.Each student should submit a report (fo ...
ALY 6040 Northeastern University Data Mining Applications Report
Please read the Rules below carefully:Rules:Quiz is available in Quiz_ALY6040.pdf1.Each student should submit a report (format: word document, PDF version of the Jupyter notebook or R Markdown) along with the code explaining the answers to the questions2.The datasets for Q2 is: Oscar_2000_2018.csv 3.Each report (+code) should be uploaded under Week 5 Quiz on Canvas before the end of the class (8.30PM EST)4.Only if you have trouble uploading the report(+code), you can email it directly to me by the deadline above5.Any report(+code) submitted after 8.35PM EST will be considered late submissions and marks will be deducted

Putting It All Together C Program that Reads Assignment Grades Code
Program Assignment
Write a C++ program that reads assignment grades (integer values between 0 and 100) taken over TWO year ...
Putting It All Together C Program that Reads Assignment Grades Code
Program Assignment
Write a C++ program that reads assignment grades (integer values between 0 and 100) taken over TWO years and then displays statistics about this data in a formatted table.
Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User input is in bold:
Sample Runs (Program Behavior)
Assume the user will only enter grades between 0 and 100.
Assume the user will correctly enter the specified number of grades for a year.
User in put is in bold:
Test 1
> run
Enter # of grades during year 1: 0
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 1: -5
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 1: 1
Enter the 1 grade(s): 85
Enter # of grades during year 2: -5
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 2: 0
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 2: 1
Enter the 1 grade(s): 75
Year Avg Stddev Grades
----------------------------
1 85.0 0.00 { 85 }
No outliers
2 75.0 0.00 { 75 }
No outliers
The first year had the highest grade of 85.
The first year's lowest grade is 85.
The second year's lowest grade is 75.
Test 2
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 62
Enter # of grades during year 2: 1
Enter the 1 grade(s): 100
Year Avg Stddev Grades
----------------------------
1 62.0 0.00 { 62 }
No outliers
2 100.0 0.00 { 100 }
No outliers
The second year had the highest grade of 100.
The first year's lowest grade is 62.
The second year's lowest grade is 100.
Test 3
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 88
Enter # of grades during year 2: 1
Enter the 1 grade(s): 88
Year Avg Stddev Grades
----------------------------
1 88.0 0.00 { 88 }
No outliers
2 88.0 0.00 { 88 }
No outliers
Both years had the highest grade of 88.
The first year's lowest grade is 88.
The second year's lowest grade is 88.
Test 4
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 0 100
Enter # of grades during year 2: 1
Enter the 1 grade(s): 50
Year Avg Stddev Grades
----------------------------
1 50.0 50.00 { 0, 100 }
No outliers
2 50.0 0.00 { 50 }
No outliers
The first year had the highest grade of 100.
The first year's lowest grade is 0.
The second year's lowest grade is 50.
Test 5
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 76 64
Enter # of grades during year 2: 2
Enter the 2 grade(s): 94 83
Year Avg Stddev Grades
----------------------------
1 70.0 6.00 { 76, 64 }
No outliers
2 88.5 5.50 { 94, 83 }
No outliers
The second year had the highest grade of 94.
The first year's lowest grade is 64.
The second year's lowest grade is 83.
Test 6
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 90 67
Enter # of grades during year 2: 2
Enter the 2 grade(s): 68 90
Year Avg Stddev Grades
----------------------------
1 78.5 11.50 { 90, 67 }
No outliers
2 79.0 11.00 { 68, 90 }
No outliers
Both years had the highest grade of 90.
The first year's lowest grade is 67.
The second year's lowest grade is 68.
Test 7
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 65 65
Enter # of grades during year 2: 1
Enter the 1 grade(s): 75
Year Avg Stddev Grades
----------------------------
1 65.0 0.00 { 65, 65 }
No outliers
2 75.0 0.00 { 75 }
No outliers
The second year had the highest grade of 75.
The first year's lowest grade is 65.
The second year's lowest grade is 75.
Test 8
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 45 60
Enter # of grades during year 2: 2
Enter the 2 grade(s): 60 50
Year Avg Stddev Grades
----------------------------
1 52.5 7.50 { 45, 60 }
No outliers
2 55.0 5.00 { 60, 50 }
No outliers
Both years had the highest grade of 60.
The first year's lowest grade is 45.
The second year's lowest grade is 50.
Test 9
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 67
Enter # of grades during year 2: 2
Enter the 2 grade(s): 45 70
Year Avg Stddev Grades
----------------------------
1 67.0 0.00 { 67 }
No outliers
2 57.5 12.50 { 45, 70 }
No outliers
The second year had the highest grade of 70.
The first year's lowest grade is 67.
The second year's lowest grade is 45.
Test 10
> run
Enter # of grades during year 1: 4
Enter the 4 grade(s): 45 46 45 55
Enter # of grades during year 2: 3
Enter the 3 grade(s): 60 47 17
Year Avg Stddev Grades
----------------------------
1 47.8 4.21 { 45, 46, 45, 55 }
Outliers: < 55 >
2 41.3 18.01 { 60, 47, 17 }
Outliers: < 60, 17 >
The second year had the highest grade of 60.
The first year's lowest grade is 45.
The second year's lowest grade is 17.
Test 11
> run
Enter # of grades during year 1: 5
Enter the 5 grade(s): 17 43 30 47 60
Enter # of grades during year 2: 7
Enter the 7 grade(s): 56 75 66 65 66 98 45
Year Avg Stddev Grades
----------------------------
1 39.4 14.73 { 17, 43, 30, 47, 60 }
Outliers: < 17, 60 >
2 67.3 15.29 { 56, 75, 66, 65, 66, 98, 45 }
Outliers: < 98, 45 >
The second year had the highest grade of 98.
The first year's lowest grade is 17.
The second year's lowest grade is 45.
Test 12
> run
Enter # of grades during year 1: 9
Enter the 9 grade(s): 45 46 45 43 40 44 42 65 42
Enter # of grades during year 2: 10
Enter the 10 grade(s): 76 75 60 79 75 74 73 80 90 75
Year Avg Stddev Grades
----------------------------
1 45.8 7.02 { 45, 46, 45, 43, 40, 44, 42, 65, 42 }
Outliers: < 65 >
2 75.7 7.01 { 76, 75, 60, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 60, 90 >
The second year had the highest grade of 90.
The first year's lowest grade is 40.
The second year's lowest grade is 60.
Test 13
> run
Enter # of grades during year 1: 10
Enter the 10 grade(s): 76 75 60 79 75 74 73 80 90 75
Enter # of grades during year 2: 9
Enter the 9 grade(s): 45 46 45 43 40 44 42 65 42
Year Avg Stddev Grades
----------------------------
1 75.7 7.01 { 76, 75, 60, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 60, 90 >
2 45.8 7.02 { 45, 46, 45, 43, 40, 44, 42, 65, 42 }
Outliers: < 65 >
The first year had the highest grade of 90.
The first year's lowest grade is 60.
The second year's lowest grade is 40.
Test 14
> run
Enter # of grades during year 1: 10
Enter the 10 grade(s): 45 46 45 43 40 44 42 65 42 90
Enter # of grades during year 2: 10
Enter the 10 grade(s): 76 75 40 79 75 74 73 80 90 75
Year Avg Stddev Grades
----------------------------
1 50.2 14.84 { 45, 46, 45, 43, 40, 44, 42, 65, 42, 90 }
Outliers: < 90 >
2 73.7 12.17 { 76, 75, 40, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 40, 90 >
Both years had the highest grade of 90.
The first year's lowest grade is 40.
The second year's lowest grade is 40.
Write a C++ program that reads assignment grades taken over TWO years and then displays statistics about this data in a formatted table.
Your solution will be graded based upon program behavior (passing tests). Your solution will not receive full credit (or receives no credit) if you fail to follow these restrictions:
Your program must compile and run. Otherwise it will receive a zero.
Add your solution to the provided code template.
Only use C++ statements presented in the lecture notes and assigned readings.
Only use course material up to passing arrays.
Do not use explicitly defined pointer variables, i.e. using the * notation.
Do not use vectors.
Use descriptive variable names. Avoid too short variable names, especially single letter variable names.
DO NOT start a variable name with a capital letter. Use the name convention for constants given in the lecture notes.
If you define your own function name, make sure it is a descriptive name.
Properly use const, pass-by-value, and pass-by-reference when defining function parameters.
Properly choose between using the while vs the for statement.
DO NOT use the do-while loop.
Avoid repetitive code where possible.
DO NOT use explicit type casting. Instead use coercion (see lecture notes).
DO NOT unnecessarily use parenthesis in an expression, e.g. an equation or formula. Parenthesis should only be used for grouping portions of an expression to change operator precedence order. For example, parenthesis are unnecessary in the expression (a + b + c). Instead use a + b + c. Parenthesis are necessary in the expression (a + b + c) / 3.
Do NOT use the break and continue statements.
Your program must be readable including indenting, spaces, and avoid lines that are too long. Use the the sample programs in the lecture notes as a guide.
Comment your program. Read the document at the "Lecture" link on Carmen under Modules->Commenting Your Program-> Commenting your program. DO NOT comment every line.
Only use C++ statements presented in the course. I.e. statements and notation presented in the lecture notes and assigned readings.
You will implement the main function and a collection of functions. DO NOT delete nor change the code already given to you in the code template. You will add your code to this template to formulate your solution.
TASK 1: Replace "??" with your name, creation date, and a description of the program (synopsis).
TASK 2: Declare a GLOBAL constant to hold the integer 15, which will represent the maximum number of grades the user can record for one year.
TASK 3: Implement the following algorithm in the main function:
i. Declare your variables. Use the global constant (see TASK 2 above) to allocate TWO arrays, where each array holds the grades for a single year. Use fixed memory allocation.
ii. Read the grades for each year (there are two years). Call the function described in TASK 4, step 6. You will call this function twice, i.e. once for each day.
iii. Output an empty line.
iv. Display the headings for the formatted table. Call the procedure in TASK 4, step 7.
v. Display the statistics for each of the two years. Call the procedure in TASK 4, step 8. You will call this function twice, i.e. once for each year.
vi. Display the highest and lowest grades from the grade data in both days. Call the procedure in TASK 4, step 9.
TASK 4: Define the following functions and helper functions. Remember, a procedure is a function with no return value. In order to receive full credit, closely follow the provided instructions below. You must determine when to use const and pass by value vs. pass by reference. If you are not sure, then please study the lecture slides and notes.
Important: You will write eight functions as specified below. Choose descriptive function and variable names.
Place function prototypes BEFORE the main procedure.
Place function definitions AFTER the main procedure.
Each function should have a comment (placed above the function definition) that describes the function's task.
Include in this comment a short description of each input parameter.
Write a function to read from the user the grades for one year. Use the global constant (see TASK 2 above) in this function. The function has two input parameters: 1) an array to hold the grades for this year and 2) the year these grades belong to (either 1 or 2 for year 1 or year 2). The function returns the number of grades entered by the user. Prompt the user for the number of grades to read, say n, which must be at least 1 but no more than 15 (The value of the global constant). If invalid input is entered, then display a warning message and repeatedly ask the user again. See the provided test cases for the exact prompt and warning messages to use. Finally, read the n grades from the user.
Assume the user will enter exactly n grades.
Assume the user will only enter integer grades in the range 0 to 100. I.e., you DO NOT have to check for valid input here.
Write a procedure to display the first two lines of the output table containing the column names and dashed line. Use iomanip functions to attain the correct spacing. This procedure has no input parameters. Remember, a procedure is a function that does not return a value.
Write a procedure that computes the statistics (average, min, max, standard deviation) of a list of grades and then prints these statistics in the formatted table. This procedure has five input parameters: 1) which year (year 1 or year 2), 2) an array of grades, 3) the number of grades in the array, 4) the minimum grade found, and 5) the maximum grade found. Here is a link to a Wikipedia page that defines the standard deviation ( https://en.wikipedia.org/wiki/Standard_deviation ). Examples of how to calculate the standard deviation can be found here ( https://www.mathsisfun.com/data/standard-deviation.html ). Use fixed mode to display decimal values. The average is displayed with one digit after the decimal place. The standard deviation is displayed with two digits after the decimal place. Use iomanip functions to achieve proper spacing (see the provided test case output). This procedure MUST call these four "helper" functions whose descriptions are provided below:
(a) Write a procedure to compute the average (i.e., mean), minimum, and maximum grades. This procedure has five input parameters: 1) an array of grades, 2) the number of grades in the array, 3) the average computed by this procedure, 4) the minimum grade computed by this procedure, and 5) the maximum grade computed by this procedure.
(b) Write a function to compute the standard deviation and the number of (how many) "outliers". An "outlier" is a grade that is more than one standard deviation away from the average grade. The function has four input parameter: 1) an array of grades, 2) the number of grades in the array, 3) the average of the grades, and 4) the number of "outliers" computed by this function. The return value is the standard deviation computed by this function.
(c) Write a procedure to output the sampled grades in a comma separated list delimited by curly braces. This procedure has two input parameters: 1) an array of grades and 2) the number of grades in the array. Use an endl after the closing curly braces.
(d) Write a procedure to output the "outliers" as a comma separated list delimited by angle brackets, i.e. "< … >". If there are no "outliers" then output "No outliers". The procedure has five input parameters: 1) an array of grades, 2) the number of grades in the array, 3) the average of the grades, 4) the standard deviation of the grades, and 5) the number of "outliers". Use an endl at the end of the output.
Write a procedure to output the highest grade across the two years and the lowest grades for both years. The procedure has four input parameters: 1) the lowest grade in year 1, 2) the highest grade on year 1, 3) the lowest grade on year 2, and 4) the highest grade on year 2. Use an endl at the end of the output.
Be sure that there is a comment documenting each variable.
Be sure that your if statements, for and while loops and blocks are properly indented.
Test your solution.
10 pages

Copy Of Etw2001 Assignment 1 Group No .r Colaboratory
Copy of ETW2001 Assignment 1 [Group No].r - Colaboratory 1. Student name (Student ID) - task conducted (eg. visual 1-4) ma ...
Copy Of Etw2001 Assignment 1 Group No .r Colaboratory
Copy of ETW2001 Assignment 1 [Group No].r - Colaboratory 1. Student name (Student ID) - task conducted (eg. visual 1-4) malaysia = ...

Java Question
So here is the basis of my code, I need help with inputting the correct code which will allow me to create a class that wr ...
Java Question
So here is the basis of my code, I need help with inputting the correct code which will allow me to create a class that writes employee payroll records to a file and a class that checks that the records have been written. please help!import java.util.Scanner;public class EmployeePayroll { //STUDENTS INSERT LINE COMMENTS FOR EACH VARIABLE. private String employeeName = ""; private int hoursWorked = 0; private double payRate = 0.0; private double grossPay = 0.0; private double retire401K = 0.0; private double percent401K = 0.0; private double grossPayTotal = 0.0; private double total401K = 0.0; private int firstNmLength = 0; private Scanner input = new Scanner(System.in); /** * STUDENTS ARE TO INSERT COMMENT BOXES FOR EACH METHOD. */ public EmployeePayroll() { }//STUDENTS ARE TO INSERT LINE COMMENTS FOR EACH CLOSE BRACE. public EmployeePayroll(String emplName, int hrsWrkd, double hourlyPay, double retirementPercent) { setEmployeeName(emplName); setHoursWorked(hrsWrkd); setPayRate(hourlyPay); set401K(retirementPercent); } public final void setEmployeeName(String employeeName) { while(!isAlpha(employeeName)) { System.out.printf("%nEnter valid first name: "); employeeName = input.nextLine(); } this.employeeName = employeeName; } public void setEmployeeName(int i) { String first = "", last = ""; System.out.printf("%nEnter the %semployee\'s first name press enter then the last " + "name press enter: ", i == 0 ? "" : "next "); first = input.nextLine(); last = input.nextLine(); while(!isAlpha(first)) { System.out.printf("%nEnter valid first name: "); first = input.nextLine(); } firstNmLength = first.length(); while(!isAlpha(last)) { System.out.printf("%nEnter valid last name: "); last = input.nextLine(); } employeeName = first + " " + last; } public final void setHoursWorked(int hoursWorked) { this.hoursWorked = hoursWorked; } public void setHoursWorked(String first) { System.out.printf("%nEnter the number of hours worked for %s: ", first); while(!input.hasNextInt()) { input.next(); System.out.printf("%nInvalid type! Re-enter the number of " + "hours worked for %s: ", first); } hoursWorked = input.nextInt(); while(hoursWorked > 40 || hoursWorked < 5) { hoursWorked = testHoursWorked(hoursWorked); } } public final void setPayRate(double payRate) { this.payRate = payRate; } public void setPayRate() { System.out.printf("%nEnter the employee\'s hourly pay rate: "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter the hourly pay rate: "); } payRate = input.nextDouble(); while(payRate < 7.25 || payRate > 26.00) { payRate = testPayRate(payRate); } } public void calcGrossPay() { grossPay = hoursWorked * payRate; } public final void set401K(double percent401K) { this.percent401K = percent401K; } public void set401K() { System.out.printf("%nEnter the employee\'s 401K contribution " + "as a percentage of salary (not to exceed 10%%): "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter the 401K contribution " + "not to exceed 10%% of salary: "); } percent401K = input.nextDouble(); while(percent401K > 10.00) { percent401K = test401K(); } } public void calcRetire401K() { retire401K = percent401K/100 * grossPay; } public String getEmployeeName() { return employeeName ; } public int getHoursWorked() { return hoursWorked; } public double getPayRate() { return payRate; } public double get401K() { return percent401K; } public double getGrossPay() { return grossPay; } public double getRetire401K() { return retire401K; } public int testHoursWorked(int hoursWorked) { if(hoursWorked > 40) { System.out.printf("%nHours worked cannot EXCEED 40. Please re-enter: "); } if(hoursWorked < 5) { System.out.printf("%nHours worked cannot be LESS than 5. Please re-enter: "); } while(!input.hasNextInt()) { input.next(); System.out.printf("%nInvalid type! Re-enter the number of hours " + "worked not less than 5 or greater than 40: "); } return input.nextInt(); } public double testPayRate(double payRate) { if(payRate < 7.25) { System.out.printf("%nHourly pay cannot be LESS than $7.25. Please re-enter: "); } if(payRate > 26) { System.out.printf("%nHourly pay cannot EXCEED $26.00. Please re-enter: "); } while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter an hourly pay rate that " + "is not less than $7.25 or greater than $26.00: "); } return input.nextDouble(); } public double test401K() { System.out.printf("%nContribution cannot EXCEED 10%%. Please re-enter: "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter a contribution " + "NOT exceeding 10%% of salary: "); } return input.nextDouble(); } public boolean isAlpha(String name) { return name != null && name.chars().allMatch(Character::isLetter); } }

Oregon State University Black Lives Matter Database of Resources Discussion
Black Lives Matter DatabaseIn 2020, in the wake of the death of George Floyd and Breyona Taylor, and in response to so man ...
Oregon State University Black Lives Matter Database of Resources Discussion
Black Lives Matter DatabaseIn 2020, in the wake of the death of George Floyd and Breyona Taylor, and in response to so many other black deaths at the hands of police, people began to organize protests all over the country (and indeed, all over the world). Karen was a student at UWB during this time, and she watched the protests on the internet, and she read her friends’ posts about the protests on social media. To be honest, she had never really spent much time thinking about these things. She had thought of herself as “not political”. But now, she began to feel some embarrassment about that. She began to realize that this “not political” stance just allowed her to remain ignorant and passive about things that were actually really really important, and it was just an excuse to stand by and do nothing. So she resolved to educate herself about the Black Lives Matter movement and all the connected issues so that she could then take a more active role in trying to make the world a better place for her fellow citizens -- and especially for black and indigenous people and people of color. She began reading books, looking up different organizations on the internet, and watching movies. As she did, she thought it might be nice to compile these different resources she was finding into some easy-to-access database so that other people who wanted to educate themselves could more easily find them.Karen was also a student in CSS 143, and so she decided to put her Java skills to use by building a database of these resources as a part of her project. She called it BLMDB (Black Lives Matter Database). The BLMDB class she built was pretty cool. She called each resource a ‘record’, and there were three different kinds of records: Movies, Books, and Online sources. Her BLMDB could display all the records, or just some of them. It could sort them. You could even choose different criteria to sort them by. It could even sort them based on multiple criteria, like first by year, then by name. You could import records from a text file into the database, or you could manually enter records. You could export the records back to a text file.Your instructor for CSS 143 paired you with Karen to work on your CSS 143 project together and you were excited (and a little bit guilty) because she had already done almost all the work creating this BLMDB, and it was basically done. But then disaster struck. First, Karen’s dog jumped up and tried to eat her laptop. (It’s the modern equivalent of “The dog ate my homework”.) The laptop fell off the table and the hard drive was damaged. Sadly, she hadn’t saved her work in the cloud. (What was she THINKING?) When she restarted it, a bunch of the files were missing, and some of the files that were there were partially erased. Many of the methods in some of the classes she built only had the Javadoc but not the method. It was a mess. And then, to make matters worse, Karen got really sick and had to go to the hospital. She sent you all the java files she had, and now it’s all up to you to restore the project to its former glory. (I suppose it’s only fair since she did all the work up to this point.) Don't erase anything that she has (except maybe the comments like "//[OH NO THIS GOT ERASED!]" ). Just add back the missing parts. Luckily, Karen practiced really good coding style and always wrote good comments (especially Javadoc comments), and that is going to be really helpful for you in figuring out what you need to reconstruct. Just make sure you uphold her high standards for good coding style. Right before Karen went into the hospital, she also asked you one more favor. She was compiling the list of resources for people to learn about racism and race-related issues, and most of what she had found so far is there in a text file. But she felt like the list of resources could be longer. So she asked you if you could do a little research and find at least one more of each of the three kinds of records (a movie, a book, an online source like an article or organization) that you could add to the text file. If you want to find more than one of each, that would be even better. But at least one of each.Here’s what we know about the project so far. (After this, you’ll just have to go through the files and try to figure it out yourself. For example, if you see a method being called, but that method doesn’t exist, you better go create that method.)BLMDB.java. This is the primary class, and it has a main method that is the driver for the whole thing. Luckily, this class seems to be mostly intact. Inside of it, it has an instance variable of the type RecordList. Take a look and see what methods this class calls, and see if you can figure out if it's missing anything. Also in BLMDB there's a runAllTests() method but it seems to be empty. You'll have to fill it up with all the tests you can think of. It's your job to figure out what you need to check for and figure out how to write tests that can make it clear on the console what tests passed and what didn't. I STRONGLY encourage you to write tests as you go along and not just att the very end. If you want to, in the runAllTests() method, you might want to run a bunch of other little test methods that you write.RecordList.java. The RecordList is just an ArrayList of Records. (Thus, it’s top line is “public class RecordList extends ArrayList<Record>”) But it adds some methods that a regular ArrayList doesn’t have. In particular, it adds a method called sortBy(), in which you can tell it what criterion you want to use to sort it by. (For instance, if you want to sort the records by their description, you could call sortBy(“description”). If you want to sort by their identifier (like the name of the book), you could call sortBy(“identifier”). The sort she had was a version of Insertion Sort -- which is good because Insertion Sort is a stable sort, and that’s important if you’re going to be sorting by multiple criteria. Luckily, Karen had found some code online somewhere for the Insertion Sort method, but unfortunately, the code she found was for sorting an array of ints, and you’ll be sorting an ArrayList of Records, so there will be some differences in the code. There are probably some other helper methods you’ll need here too.ArrayList.java. Of course, you can’t use Java’s built-in ArrayList, you need to build your own. (Sadly, Karen's ArrayList was completely erased.) And your ArrayList needs to be generic, so that you can do things like “ArrayList<Record> r = new ArrayList<Record>();” If your ArrayList isn’t generic yet, you might want to start here.You also might want to add some methods to your ArrayList (or else to your RecordList) that help with your sorting method. For example, a common thing to do in a sorting method is to overwrite an element of an array: myArray[10] = newValue. You might need to write a method so that you can do something like myArrayList.overwrite(10, newValue);In general, if there are any methods called in Karen's classes that look like they're methods of ArrayList (or RecordsList), be sure you have them. If you don't have them, create them.The ArrayList you use could be implemented with a Linked List or with a regular array that resizes when needed.Record.java. This one, luckily, looks fully intact. Take a look at it because it will help you understand other parts of the project. This is the parent class for OnlineRec, Book, and Movie. Notice that the Record class implements the CompareToByInterface.OnlineRec.java , Book.java, and Movie.java. These classes are children of the Record class, but they each add a little more information appropriate to the kind of records that they are. For example, the Book record adds an author and publication year. OnlineRec adds websiteURL. Movie adds a director and a year. These all have to implement the compareToBy method since they are all Records and Record implements CompareToByInterface.CompareToByInterface. Luckily this one is pretty intact as well. Check it out so you know how to build this method in the OnlineRec, Book, and Movie classes.BLM_resources.txt. This is the text file that holds the resources Karen found so far. See if you can figure out the format they need to be in, in order to be read by the BLMDB's import-from-file method. You need to add some more sources to this file.Here are Karen's files (or what's left of them): Will be given to accepted tutorWHAT TO TURN INTurn in a zip drive with all these files in it:BLMDB.javaRecordList.javaRecord.java (this one should be unchanged)CompareToByInterface.java (this one should be unchanged)ArrayList.java (the generic one you made. Also include any other files needed by it. For example, if it inherits from your List.java or if it employs the LinkedListException.java class you made include those.)OnlineRec.javaBook.javaMovie.javaBLM_resources.txt -- with your additional (properly formatted) resourcesALSO: When you turn everything in, you must write a small report in the comments box that pops up when you submit. Let me know what parts you got working , what parts don't, or still need work. Let me know if you feel your coding style is top-notch or needs improving.
5 pages

Website Hosting
Bluehost is the best option when it comes to choosing a website hosting company. It offers a range of excellent hosting se ...
Website Hosting
Bluehost is the best option when it comes to choosing a website hosting company. It offers a range of excellent hosting services that satisfy various ...
Similar Content
Benefits of Cloud Computing 225 words
Benefits of Cloud Computing 225 wordsHave you ever worked in an organization that had to shut down the systems periodica...
Northeastern University Wk 7 Website Designs for Inspiration Project
For your design document, add more detail, For example for success, estimate the number of downloads you would like, is it...
Wichita State University Business Conditions and Forecasting Worksheet
Im looking for someone professional at coding.I can will upload the homework the homework i will use Google Drive link . ...
University of California Davis Python Problem
All the requirement will be shown in the file.The first step of this assignment will be to determine the top names for a g...
Columbus State University Implementing Access Controls Paper
Part 1: For the scenarios that follow, identify the data that would need to be protected. Recommend how you would implemen...
ISM 643 Ashford Week 2 Product Backlog Leadership in Business Systems Development Project
SCRUM Project, Part 3: Building a Product BacklogPrior to beginning work on this assignment read Chapter 5 of your textboo...
Online Shopping
...
Malaria Analysis
Malaria is a vector disease caused by Plasmodium parasites, which are spread by infected female Anopheles mosquitoes. It i...
Programming Chapter Questions
1. all of the choices listed are uses of Excel 2. The cell address first lists the row name and then the column name...
Related Tags
Book Guides
The Rhythm Section
by Mark Burnell
The Woman in the Window
by A. J. Finn
Pride and Prejudice
by Jane Austen
Broke Millennial: Stop Scraping by and Get Your Financial Life Together
by Erin Lowry
The Adventures of Huckleberry Finn
by Mark Twain
Daisy Miller
by Henry James
The Goldfinch
by Donna Tartt
A Portrait of the Artist as a Young Man
by James Joyce

Get 24/7
Study help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content

ALY 6040 Northeastern University Data Mining Applications Report
Please read the Rules below carefully:Rules:Quiz is available in Quiz_ALY6040.pdf1.Each student should submit a report (fo ...
ALY 6040 Northeastern University Data Mining Applications Report
Please read the Rules below carefully:Rules:Quiz is available in Quiz_ALY6040.pdf1.Each student should submit a report (format: word document, PDF version of the Jupyter notebook or R Markdown) along with the code explaining the answers to the questions2.The datasets for Q2 is: Oscar_2000_2018.csv 3.Each report (+code) should be uploaded under Week 5 Quiz on Canvas before the end of the class (8.30PM EST)4.Only if you have trouble uploading the report(+code), you can email it directly to me by the deadline above5.Any report(+code) submitted after 8.35PM EST will be considered late submissions and marks will be deducted

Putting It All Together C Program that Reads Assignment Grades Code
Program Assignment
Write a C++ program that reads assignment grades (integer values between 0 and 100) taken over TWO year ...
Putting It All Together C Program that Reads Assignment Grades Code
Program Assignment
Write a C++ program that reads assignment grades (integer values between 0 and 100) taken over TWO years and then displays statistics about this data in a formatted table.
Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User input is in bold:
Sample Runs (Program Behavior)
Assume the user will only enter grades between 0 and 100.
Assume the user will correctly enter the specified number of grades for a year.
User in put is in bold:
Test 1
> run
Enter # of grades during year 1: 0
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 1: -5
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 1: 1
Enter the 1 grade(s): 85
Enter # of grades during year 2: -5
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 2: 0
Enter at least one but no more than 15 grades. Try again.
Enter # of grades during year 2: 1
Enter the 1 grade(s): 75
Year Avg Stddev Grades
----------------------------
1 85.0 0.00 { 85 }
No outliers
2 75.0 0.00 { 75 }
No outliers
The first year had the highest grade of 85.
The first year's lowest grade is 85.
The second year's lowest grade is 75.
Test 2
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 62
Enter # of grades during year 2: 1
Enter the 1 grade(s): 100
Year Avg Stddev Grades
----------------------------
1 62.0 0.00 { 62 }
No outliers
2 100.0 0.00 { 100 }
No outliers
The second year had the highest grade of 100.
The first year's lowest grade is 62.
The second year's lowest grade is 100.
Test 3
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 88
Enter # of grades during year 2: 1
Enter the 1 grade(s): 88
Year Avg Stddev Grades
----------------------------
1 88.0 0.00 { 88 }
No outliers
2 88.0 0.00 { 88 }
No outliers
Both years had the highest grade of 88.
The first year's lowest grade is 88.
The second year's lowest grade is 88.
Test 4
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 0 100
Enter # of grades during year 2: 1
Enter the 1 grade(s): 50
Year Avg Stddev Grades
----------------------------
1 50.0 50.00 { 0, 100 }
No outliers
2 50.0 0.00 { 50 }
No outliers
The first year had the highest grade of 100.
The first year's lowest grade is 0.
The second year's lowest grade is 50.
Test 5
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 76 64
Enter # of grades during year 2: 2
Enter the 2 grade(s): 94 83
Year Avg Stddev Grades
----------------------------
1 70.0 6.00 { 76, 64 }
No outliers
2 88.5 5.50 { 94, 83 }
No outliers
The second year had the highest grade of 94.
The first year's lowest grade is 64.
The second year's lowest grade is 83.
Test 6
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 90 67
Enter # of grades during year 2: 2
Enter the 2 grade(s): 68 90
Year Avg Stddev Grades
----------------------------
1 78.5 11.50 { 90, 67 }
No outliers
2 79.0 11.00 { 68, 90 }
No outliers
Both years had the highest grade of 90.
The first year's lowest grade is 67.
The second year's lowest grade is 68.
Test 7
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 65 65
Enter # of grades during year 2: 1
Enter the 1 grade(s): 75
Year Avg Stddev Grades
----------------------------
1 65.0 0.00 { 65, 65 }
No outliers
2 75.0 0.00 { 75 }
No outliers
The second year had the highest grade of 75.
The first year's lowest grade is 65.
The second year's lowest grade is 75.
Test 8
> run
Enter # of grades during year 1: 2
Enter the 2 grade(s): 45 60
Enter # of grades during year 2: 2
Enter the 2 grade(s): 60 50
Year Avg Stddev Grades
----------------------------
1 52.5 7.50 { 45, 60 }
No outliers
2 55.0 5.00 { 60, 50 }
No outliers
Both years had the highest grade of 60.
The first year's lowest grade is 45.
The second year's lowest grade is 50.
Test 9
> run
Enter # of grades during year 1: 1
Enter the 1 grade(s): 67
Enter # of grades during year 2: 2
Enter the 2 grade(s): 45 70
Year Avg Stddev Grades
----------------------------
1 67.0 0.00 { 67 }
No outliers
2 57.5 12.50 { 45, 70 }
No outliers
The second year had the highest grade of 70.
The first year's lowest grade is 67.
The second year's lowest grade is 45.
Test 10
> run
Enter # of grades during year 1: 4
Enter the 4 grade(s): 45 46 45 55
Enter # of grades during year 2: 3
Enter the 3 grade(s): 60 47 17
Year Avg Stddev Grades
----------------------------
1 47.8 4.21 { 45, 46, 45, 55 }
Outliers: < 55 >
2 41.3 18.01 { 60, 47, 17 }
Outliers: < 60, 17 >
The second year had the highest grade of 60.
The first year's lowest grade is 45.
The second year's lowest grade is 17.
Test 11
> run
Enter # of grades during year 1: 5
Enter the 5 grade(s): 17 43 30 47 60
Enter # of grades during year 2: 7
Enter the 7 grade(s): 56 75 66 65 66 98 45
Year Avg Stddev Grades
----------------------------
1 39.4 14.73 { 17, 43, 30, 47, 60 }
Outliers: < 17, 60 >
2 67.3 15.29 { 56, 75, 66, 65, 66, 98, 45 }
Outliers: < 98, 45 >
The second year had the highest grade of 98.
The first year's lowest grade is 17.
The second year's lowest grade is 45.
Test 12
> run
Enter # of grades during year 1: 9
Enter the 9 grade(s): 45 46 45 43 40 44 42 65 42
Enter # of grades during year 2: 10
Enter the 10 grade(s): 76 75 60 79 75 74 73 80 90 75
Year Avg Stddev Grades
----------------------------
1 45.8 7.02 { 45, 46, 45, 43, 40, 44, 42, 65, 42 }
Outliers: < 65 >
2 75.7 7.01 { 76, 75, 60, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 60, 90 >
The second year had the highest grade of 90.
The first year's lowest grade is 40.
The second year's lowest grade is 60.
Test 13
> run
Enter # of grades during year 1: 10
Enter the 10 grade(s): 76 75 60 79 75 74 73 80 90 75
Enter # of grades during year 2: 9
Enter the 9 grade(s): 45 46 45 43 40 44 42 65 42
Year Avg Stddev Grades
----------------------------
1 75.7 7.01 { 76, 75, 60, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 60, 90 >
2 45.8 7.02 { 45, 46, 45, 43, 40, 44, 42, 65, 42 }
Outliers: < 65 >
The first year had the highest grade of 90.
The first year's lowest grade is 60.
The second year's lowest grade is 40.
Test 14
> run
Enter # of grades during year 1: 10
Enter the 10 grade(s): 45 46 45 43 40 44 42 65 42 90
Enter # of grades during year 2: 10
Enter the 10 grade(s): 76 75 40 79 75 74 73 80 90 75
Year Avg Stddev Grades
----------------------------
1 50.2 14.84 { 45, 46, 45, 43, 40, 44, 42, 65, 42, 90 }
Outliers: < 90 >
2 73.7 12.17 { 76, 75, 40, 79, 75, 74, 73, 80, 90, 75 }
Outliers: < 40, 90 >
Both years had the highest grade of 90.
The first year's lowest grade is 40.
The second year's lowest grade is 40.
Write a C++ program that reads assignment grades taken over TWO years and then displays statistics about this data in a formatted table.
Your solution will be graded based upon program behavior (passing tests). Your solution will not receive full credit (or receives no credit) if you fail to follow these restrictions:
Your program must compile and run. Otherwise it will receive a zero.
Add your solution to the provided code template.
Only use C++ statements presented in the lecture notes and assigned readings.
Only use course material up to passing arrays.
Do not use explicitly defined pointer variables, i.e. using the * notation.
Do not use vectors.
Use descriptive variable names. Avoid too short variable names, especially single letter variable names.
DO NOT start a variable name with a capital letter. Use the name convention for constants given in the lecture notes.
If you define your own function name, make sure it is a descriptive name.
Properly use const, pass-by-value, and pass-by-reference when defining function parameters.
Properly choose between using the while vs the for statement.
DO NOT use the do-while loop.
Avoid repetitive code where possible.
DO NOT use explicit type casting. Instead use coercion (see lecture notes).
DO NOT unnecessarily use parenthesis in an expression, e.g. an equation or formula. Parenthesis should only be used for grouping portions of an expression to change operator precedence order. For example, parenthesis are unnecessary in the expression (a + b + c). Instead use a + b + c. Parenthesis are necessary in the expression (a + b + c) / 3.
Do NOT use the break and continue statements.
Your program must be readable including indenting, spaces, and avoid lines that are too long. Use the the sample programs in the lecture notes as a guide.
Comment your program. Read the document at the "Lecture" link on Carmen under Modules->Commenting Your Program-> Commenting your program. DO NOT comment every line.
Only use C++ statements presented in the course. I.e. statements and notation presented in the lecture notes and assigned readings.
You will implement the main function and a collection of functions. DO NOT delete nor change the code already given to you in the code template. You will add your code to this template to formulate your solution.
TASK 1: Replace "??" with your name, creation date, and a description of the program (synopsis).
TASK 2: Declare a GLOBAL constant to hold the integer 15, which will represent the maximum number of grades the user can record for one year.
TASK 3: Implement the following algorithm in the main function:
i. Declare your variables. Use the global constant (see TASK 2 above) to allocate TWO arrays, where each array holds the grades for a single year. Use fixed memory allocation.
ii. Read the grades for each year (there are two years). Call the function described in TASK 4, step 6. You will call this function twice, i.e. once for each day.
iii. Output an empty line.
iv. Display the headings for the formatted table. Call the procedure in TASK 4, step 7.
v. Display the statistics for each of the two years. Call the procedure in TASK 4, step 8. You will call this function twice, i.e. once for each year.
vi. Display the highest and lowest grades from the grade data in both days. Call the procedure in TASK 4, step 9.
TASK 4: Define the following functions and helper functions. Remember, a procedure is a function with no return value. In order to receive full credit, closely follow the provided instructions below. You must determine when to use const and pass by value vs. pass by reference. If you are not sure, then please study the lecture slides and notes.
Important: You will write eight functions as specified below. Choose descriptive function and variable names.
Place function prototypes BEFORE the main procedure.
Place function definitions AFTER the main procedure.
Each function should have a comment (placed above the function definition) that describes the function's task.
Include in this comment a short description of each input parameter.
Write a function to read from the user the grades for one year. Use the global constant (see TASK 2 above) in this function. The function has two input parameters: 1) an array to hold the grades for this year and 2) the year these grades belong to (either 1 or 2 for year 1 or year 2). The function returns the number of grades entered by the user. Prompt the user for the number of grades to read, say n, which must be at least 1 but no more than 15 (The value of the global constant). If invalid input is entered, then display a warning message and repeatedly ask the user again. See the provided test cases for the exact prompt and warning messages to use. Finally, read the n grades from the user.
Assume the user will enter exactly n grades.
Assume the user will only enter integer grades in the range 0 to 100. I.e., you DO NOT have to check for valid input here.
Write a procedure to display the first two lines of the output table containing the column names and dashed line. Use iomanip functions to attain the correct spacing. This procedure has no input parameters. Remember, a procedure is a function that does not return a value.
Write a procedure that computes the statistics (average, min, max, standard deviation) of a list of grades and then prints these statistics in the formatted table. This procedure has five input parameters: 1) which year (year 1 or year 2), 2) an array of grades, 3) the number of grades in the array, 4) the minimum grade found, and 5) the maximum grade found. Here is a link to a Wikipedia page that defines the standard deviation ( https://en.wikipedia.org/wiki/Standard_deviation ). Examples of how to calculate the standard deviation can be found here ( https://www.mathsisfun.com/data/standard-deviation.html ). Use fixed mode to display decimal values. The average is displayed with one digit after the decimal place. The standard deviation is displayed with two digits after the decimal place. Use iomanip functions to achieve proper spacing (see the provided test case output). This procedure MUST call these four "helper" functions whose descriptions are provided below:
(a) Write a procedure to compute the average (i.e., mean), minimum, and maximum grades. This procedure has five input parameters: 1) an array of grades, 2) the number of grades in the array, 3) the average computed by this procedure, 4) the minimum grade computed by this procedure, and 5) the maximum grade computed by this procedure.
(b) Write a function to compute the standard deviation and the number of (how many) "outliers". An "outlier" is a grade that is more than one standard deviation away from the average grade. The function has four input parameter: 1) an array of grades, 2) the number of grades in the array, 3) the average of the grades, and 4) the number of "outliers" computed by this function. The return value is the standard deviation computed by this function.
(c) Write a procedure to output the sampled grades in a comma separated list delimited by curly braces. This procedure has two input parameters: 1) an array of grades and 2) the number of grades in the array. Use an endl after the closing curly braces.
(d) Write a procedure to output the "outliers" as a comma separated list delimited by angle brackets, i.e. "< … >". If there are no "outliers" then output "No outliers". The procedure has five input parameters: 1) an array of grades, 2) the number of grades in the array, 3) the average of the grades, 4) the standard deviation of the grades, and 5) the number of "outliers". Use an endl at the end of the output.
Write a procedure to output the highest grade across the two years and the lowest grades for both years. The procedure has four input parameters: 1) the lowest grade in year 1, 2) the highest grade on year 1, 3) the lowest grade on year 2, and 4) the highest grade on year 2. Use an endl at the end of the output.
Be sure that there is a comment documenting each variable.
Be sure that your if statements, for and while loops and blocks are properly indented.
Test your solution.
10 pages

Copy Of Etw2001 Assignment 1 Group No .r Colaboratory
Copy of ETW2001 Assignment 1 [Group No].r - Colaboratory 1. Student name (Student ID) - task conducted (eg. visual 1-4) ma ...
Copy Of Etw2001 Assignment 1 Group No .r Colaboratory
Copy of ETW2001 Assignment 1 [Group No].r - Colaboratory 1. Student name (Student ID) - task conducted (eg. visual 1-4) malaysia = ...

Java Question
So here is the basis of my code, I need help with inputting the correct code which will allow me to create a class that wr ...
Java Question
So here is the basis of my code, I need help with inputting the correct code which will allow me to create a class that writes employee payroll records to a file and a class that checks that the records have been written. please help!import java.util.Scanner;public class EmployeePayroll { //STUDENTS INSERT LINE COMMENTS FOR EACH VARIABLE. private String employeeName = ""; private int hoursWorked = 0; private double payRate = 0.0; private double grossPay = 0.0; private double retire401K = 0.0; private double percent401K = 0.0; private double grossPayTotal = 0.0; private double total401K = 0.0; private int firstNmLength = 0; private Scanner input = new Scanner(System.in); /** * STUDENTS ARE TO INSERT COMMENT BOXES FOR EACH METHOD. */ public EmployeePayroll() { }//STUDENTS ARE TO INSERT LINE COMMENTS FOR EACH CLOSE BRACE. public EmployeePayroll(String emplName, int hrsWrkd, double hourlyPay, double retirementPercent) { setEmployeeName(emplName); setHoursWorked(hrsWrkd); setPayRate(hourlyPay); set401K(retirementPercent); } public final void setEmployeeName(String employeeName) { while(!isAlpha(employeeName)) { System.out.printf("%nEnter valid first name: "); employeeName = input.nextLine(); } this.employeeName = employeeName; } public void setEmployeeName(int i) { String first = "", last = ""; System.out.printf("%nEnter the %semployee\'s first name press enter then the last " + "name press enter: ", i == 0 ? "" : "next "); first = input.nextLine(); last = input.nextLine(); while(!isAlpha(first)) { System.out.printf("%nEnter valid first name: "); first = input.nextLine(); } firstNmLength = first.length(); while(!isAlpha(last)) { System.out.printf("%nEnter valid last name: "); last = input.nextLine(); } employeeName = first + " " + last; } public final void setHoursWorked(int hoursWorked) { this.hoursWorked = hoursWorked; } public void setHoursWorked(String first) { System.out.printf("%nEnter the number of hours worked for %s: ", first); while(!input.hasNextInt()) { input.next(); System.out.printf("%nInvalid type! Re-enter the number of " + "hours worked for %s: ", first); } hoursWorked = input.nextInt(); while(hoursWorked > 40 || hoursWorked < 5) { hoursWorked = testHoursWorked(hoursWorked); } } public final void setPayRate(double payRate) { this.payRate = payRate; } public void setPayRate() { System.out.printf("%nEnter the employee\'s hourly pay rate: "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter the hourly pay rate: "); } payRate = input.nextDouble(); while(payRate < 7.25 || payRate > 26.00) { payRate = testPayRate(payRate); } } public void calcGrossPay() { grossPay = hoursWorked * payRate; } public final void set401K(double percent401K) { this.percent401K = percent401K; } public void set401K() { System.out.printf("%nEnter the employee\'s 401K contribution " + "as a percentage of salary (not to exceed 10%%): "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter the 401K contribution " + "not to exceed 10%% of salary: "); } percent401K = input.nextDouble(); while(percent401K > 10.00) { percent401K = test401K(); } } public void calcRetire401K() { retire401K = percent401K/100 * grossPay; } public String getEmployeeName() { return employeeName ; } public int getHoursWorked() { return hoursWorked; } public double getPayRate() { return payRate; } public double get401K() { return percent401K; } public double getGrossPay() { return grossPay; } public double getRetire401K() { return retire401K; } public int testHoursWorked(int hoursWorked) { if(hoursWorked > 40) { System.out.printf("%nHours worked cannot EXCEED 40. Please re-enter: "); } if(hoursWorked < 5) { System.out.printf("%nHours worked cannot be LESS than 5. Please re-enter: "); } while(!input.hasNextInt()) { input.next(); System.out.printf("%nInvalid type! Re-enter the number of hours " + "worked not less than 5 or greater than 40: "); } return input.nextInt(); } public double testPayRate(double payRate) { if(payRate < 7.25) { System.out.printf("%nHourly pay cannot be LESS than $7.25. Please re-enter: "); } if(payRate > 26) { System.out.printf("%nHourly pay cannot EXCEED $26.00. Please re-enter: "); } while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter an hourly pay rate that " + "is not less than $7.25 or greater than $26.00: "); } return input.nextDouble(); } public double test401K() { System.out.printf("%nContribution cannot EXCEED 10%%. Please re-enter: "); while(!input.hasNextDouble()) { input.next(); System.out.printf("%nInvalid type! Re-enter a contribution " + "NOT exceeding 10%% of salary: "); } return input.nextDouble(); } public boolean isAlpha(String name) { return name != null && name.chars().allMatch(Character::isLetter); } }

Oregon State University Black Lives Matter Database of Resources Discussion
Black Lives Matter DatabaseIn 2020, in the wake of the death of George Floyd and Breyona Taylor, and in response to so man ...
Oregon State University Black Lives Matter Database of Resources Discussion
Black Lives Matter DatabaseIn 2020, in the wake of the death of George Floyd and Breyona Taylor, and in response to so many other black deaths at the hands of police, people began to organize protests all over the country (and indeed, all over the world). Karen was a student at UWB during this time, and she watched the protests on the internet, and she read her friends’ posts about the protests on social media. To be honest, she had never really spent much time thinking about these things. She had thought of herself as “not political”. But now, she began to feel some embarrassment about that. She began to realize that this “not political” stance just allowed her to remain ignorant and passive about things that were actually really really important, and it was just an excuse to stand by and do nothing. So she resolved to educate herself about the Black Lives Matter movement and all the connected issues so that she could then take a more active role in trying to make the world a better place for her fellow citizens -- and especially for black and indigenous people and people of color. She began reading books, looking up different organizations on the internet, and watching movies. As she did, she thought it might be nice to compile these different resources she was finding into some easy-to-access database so that other people who wanted to educate themselves could more easily find them.Karen was also a student in CSS 143, and so she decided to put her Java skills to use by building a database of these resources as a part of her project. She called it BLMDB (Black Lives Matter Database). The BLMDB class she built was pretty cool. She called each resource a ‘record’, and there were three different kinds of records: Movies, Books, and Online sources. Her BLMDB could display all the records, or just some of them. It could sort them. You could even choose different criteria to sort them by. It could even sort them based on multiple criteria, like first by year, then by name. You could import records from a text file into the database, or you could manually enter records. You could export the records back to a text file.Your instructor for CSS 143 paired you with Karen to work on your CSS 143 project together and you were excited (and a little bit guilty) because she had already done almost all the work creating this BLMDB, and it was basically done. But then disaster struck. First, Karen’s dog jumped up and tried to eat her laptop. (It’s the modern equivalent of “The dog ate my homework”.) The laptop fell off the table and the hard drive was damaged. Sadly, she hadn’t saved her work in the cloud. (What was she THINKING?) When she restarted it, a bunch of the files were missing, and some of the files that were there were partially erased. Many of the methods in some of the classes she built only had the Javadoc but not the method. It was a mess. And then, to make matters worse, Karen got really sick and had to go to the hospital. She sent you all the java files she had, and now it’s all up to you to restore the project to its former glory. (I suppose it’s only fair since she did all the work up to this point.) Don't erase anything that she has (except maybe the comments like "//[OH NO THIS GOT ERASED!]" ). Just add back the missing parts. Luckily, Karen practiced really good coding style and always wrote good comments (especially Javadoc comments), and that is going to be really helpful for you in figuring out what you need to reconstruct. Just make sure you uphold her high standards for good coding style. Right before Karen went into the hospital, she also asked you one more favor. She was compiling the list of resources for people to learn about racism and race-related issues, and most of what she had found so far is there in a text file. But she felt like the list of resources could be longer. So she asked you if you could do a little research and find at least one more of each of the three kinds of records (a movie, a book, an online source like an article or organization) that you could add to the text file. If you want to find more than one of each, that would be even better. But at least one of each.Here’s what we know about the project so far. (After this, you’ll just have to go through the files and try to figure it out yourself. For example, if you see a method being called, but that method doesn’t exist, you better go create that method.)BLMDB.java. This is the primary class, and it has a main method that is the driver for the whole thing. Luckily, this class seems to be mostly intact. Inside of it, it has an instance variable of the type RecordList. Take a look and see what methods this class calls, and see if you can figure out if it's missing anything. Also in BLMDB there's a runAllTests() method but it seems to be empty. You'll have to fill it up with all the tests you can think of. It's your job to figure out what you need to check for and figure out how to write tests that can make it clear on the console what tests passed and what didn't. I STRONGLY encourage you to write tests as you go along and not just att the very end. If you want to, in the runAllTests() method, you might want to run a bunch of other little test methods that you write.RecordList.java. The RecordList is just an ArrayList of Records. (Thus, it’s top line is “public class RecordList extends ArrayList<Record>”) But it adds some methods that a regular ArrayList doesn’t have. In particular, it adds a method called sortBy(), in which you can tell it what criterion you want to use to sort it by. (For instance, if you want to sort the records by their description, you could call sortBy(“description”). If you want to sort by their identifier (like the name of the book), you could call sortBy(“identifier”). The sort she had was a version of Insertion Sort -- which is good because Insertion Sort is a stable sort, and that’s important if you’re going to be sorting by multiple criteria. Luckily, Karen had found some code online somewhere for the Insertion Sort method, but unfortunately, the code she found was for sorting an array of ints, and you’ll be sorting an ArrayList of Records, so there will be some differences in the code. There are probably some other helper methods you’ll need here too.ArrayList.java. Of course, you can’t use Java’s built-in ArrayList, you need to build your own. (Sadly, Karen's ArrayList was completely erased.) And your ArrayList needs to be generic, so that you can do things like “ArrayList<Record> r = new ArrayList<Record>();” If your ArrayList isn’t generic yet, you might want to start here.You also might want to add some methods to your ArrayList (or else to your RecordList) that help with your sorting method. For example, a common thing to do in a sorting method is to overwrite an element of an array: myArray[10] = newValue. You might need to write a method so that you can do something like myArrayList.overwrite(10, newValue);In general, if there are any methods called in Karen's classes that look like they're methods of ArrayList (or RecordsList), be sure you have them. If you don't have them, create them.The ArrayList you use could be implemented with a Linked List or with a regular array that resizes when needed.Record.java. This one, luckily, looks fully intact. Take a look at it because it will help you understand other parts of the project. This is the parent class for OnlineRec, Book, and Movie. Notice that the Record class implements the CompareToByInterface.OnlineRec.java , Book.java, and Movie.java. These classes are children of the Record class, but they each add a little more information appropriate to the kind of records that they are. For example, the Book record adds an author and publication year. OnlineRec adds websiteURL. Movie adds a director and a year. These all have to implement the compareToBy method since they are all Records and Record implements CompareToByInterface.CompareToByInterface. Luckily this one is pretty intact as well. Check it out so you know how to build this method in the OnlineRec, Book, and Movie classes.BLM_resources.txt. This is the text file that holds the resources Karen found so far. See if you can figure out the format they need to be in, in order to be read by the BLMDB's import-from-file method. You need to add some more sources to this file.Here are Karen's files (or what's left of them): Will be given to accepted tutorWHAT TO TURN INTurn in a zip drive with all these files in it:BLMDB.javaRecordList.javaRecord.java (this one should be unchanged)CompareToByInterface.java (this one should be unchanged)ArrayList.java (the generic one you made. Also include any other files needed by it. For example, if it inherits from your List.java or if it employs the LinkedListException.java class you made include those.)OnlineRec.javaBook.javaMovie.javaBLM_resources.txt -- with your additional (properly formatted) resourcesALSO: When you turn everything in, you must write a small report in the comments box that pops up when you submit. Let me know what parts you got working , what parts don't, or still need work. Let me know if you feel your coding style is top-notch or needs improving.
5 pages

Website Hosting
Bluehost is the best option when it comes to choosing a website hosting company. It offers a range of excellent hosting se ...
Website Hosting
Bluehost is the best option when it comes to choosing a website hosting company. It offers a range of excellent hosting services that satisfy various ...
Earn money selling
your Study Documents