I. General Description In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, sort them, and write them to an output file. This assignment is a follow up of assignment 5. Like assignment 5, your program will read from an input file and write to an output file. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. Unlike assignment 5, the Student objects are sorted before they are written to the output file.
• The program must implement a main class, three student classes (Student, UndergradStudent, GradStudent), and a Comparator class called StudentIDComparator.
• The StudentIDComparator class must implement the java.util.Comparator interface, and override the compare() method. Since the Comparator interface is a generic interface, you must specify Student as the concrete type. The signature of the compare method should be public int compare(Student s1, Student s2). The compare() method returns a negative, 0, or positive value if s1 is less than, equals, or is greater than s2, respectively. • To sort the ArrayList, you need to create a StudentIDComparator object and use it in the Collections’ sort method: StudentIDComparator idSorter = new StudentIDComparator(); Collections.sort(students, idSorter); //students is an arrayList of Students
heres students.txt
James Bond,200304,3.2,undergraduate,true Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia Nancy Drew,244833,2.9,graduate,Case Western Lady Gaga,230940,3.1,undergraduate,false Sam Jackson,215443,3.9,graduate,Ohio State University
In: Computer Science
Suppose SFU has figured out a way to deliver the lectures all around the world in a way that creates a demand for their lectures because in some way they're better than the lectures that you could get from other universities. They evaluate the demand in Korea and demand in Germany. The demands are as follows:
PK = 5,000 – 0.5QK
PG = 3,000 – 0.5QG
where PK and PG are the prices per course (per student) in Korea and Germany, respectively, and QK and QG are the number of students in Korea and Germany willing to enroll at those prices, respectively.
The cost of online delivery is C = 1,800Q, where Q is the total number of students enrolled (i.e., Q = QK + QG).
But the university probably would get the idea that it's not that difficult to distinguish students in Germany from students in Korea by checking, for instance, their citizenship documents when they register for the course and/or checking the location of their ISP (i.e., the university could solve the identification problem on the group level, i.e., tell whether a student is in Germany or in Korea and the university does not really face an arbitrage problem).
SFU decides to practice the 3rd degree (linear) price discrimination.
6. What price would SFU charge in Germany?
7. What price would SFU charge in Korea?
8. What would be their online enrollment in Korea?
9. What would be their online enrollment in Germany?
10. What would be their total online enrollment?
11. What would be the combined surplus in all the markets? I.e., what is the sum of the consumer surplus in Korea, consumer surplus in Germany, and SFU’s producer surplus from selling the instruction in both countries?
In: Economics
I. General Description In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, sort them, and write them to an output file. This assignment is a follow up of assignment 5. Like assignment 5, your program will read from an input file and write to an output file. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. Unlike assignment 5, the Student objects are sorted before they are written to the output file.
• The program must implement a main class, three student classes (Student, UndergradStudent, GradStudent), and a Comparator class called StudentIDComparator.
• The StudentIDComparator class must implement the java.util.Comparator interface, and override the compare() method. Since the Comparator interface is a generic interface, you must specify Student as the concrete type. The signature of the compare method should be public int compare(Student s1, Student s2). The compare() method returns a negative, 0, or positive value if s1 is less than, equals, or is greater than s2, respectively.
• To sort the ArrayList, you need to create a StudentIDComparator object and use it in the Collections’ sort method: StudentIDComparator idSorter = new StudentIDComparator(); Collections.sort(students, idSorter); //students is an arrayList of Students
Heres student.txt
James Bond,200304,3.2,undergraduate,true Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia Nancy Drew,244833,2.9,graduate,Case Western Lady Gaga,230940,3.1,undergraduate,false Sam Jackson,215443,3.9,graduate,Ohio State University
He said you would need aorund 5 classes
In: Computer Science
An SAT prep course claims to improve the test score of students. The table below shows the scores for seven students the first two times they took the verbal SAT. Before taking the SAT for the second time, each student took a course to try to improve his or her verbal SAT scores. Do these results support the claim that the SAT prep course improves the students' verbal SAT scores?
Let d=(verbal SAT scores prior to taking the prep course)−(verbal SAT scores after taking the prep course)d=(verbal SAT scores prior to taking the prep course)−(verbal SAT scores after taking the prep course). Use a significance level of α=0.1 for the test. Assume that the verbal SAT scores are normally distributed for the population of students both before and after taking the SAT prep course.
| Student | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Score on first SAT | 400 | 420 | 510 | 530 | 380 | 440 | 460 |
| Score on second SAT | 440 | 490 | 560 | 560 | 410 | 510 | 500 |
Step 1 of 5: State the null and alternative hypotheses for the test.
Step 2 of 5: Find the value of the standard deviation of the paired differences. Round your answer to one decimal place.
Step 3 of 5: Compute the value of the test statistic. Round your answer to three decimal places.
Step 4 of 5: Determine the decision rule for rejecting the null hypothesis H 0 . Round the numerical portion of your answer to three decimal places.
Step 5 of 5: Make the decision for the hypothesis test.
In: Math
Implement a version with the outer loop, with a while loop, and the inner loop with a do / while loop.
Modify this program as he ask ↑↑↑ C++
// This program averages test scores. It asks the user for
the
2 // number of students and the number of test scores per
student.
3 #include <iostream>
4 #include <iomanip>
5 using namespace std;
6
7 int main()
8 {
9 int numStudents, // Number of students
10 numTests; // Number of tests per student
11 double total, // Accumulator for total scores
12 average; // Average test score
13
14 // Set up numeric output formatting.
15 cout << fixed << showpoint <<
setprecision(1);
16
17 // Get the number of students.
18 cout << "This program averages test scores.\n";
19 cout << "For how many students do you have scores?
";
20 cin >> numStudents;
21
22 // Get the number of test scores per student.
23 cout << "How many test scores does each student have?
";
24 cin >> numTests;
25
26 // Determine each student's average score.
27 for (int student = 1; student <= numStudents;
student++)
28 {
29 total = 0; // Initialize the accumulator.
30 for (int test = 1; test <= numTests; test++)
31 {
32 double score;
33 cout << "Enter score " << test << " for
";
34 cout << "student " << student << ": ";
35 cin >> score;
36 total += score;
37 }
38 average = total / numTests;
39 cout << "The average score for student " <<
student;
40 cout << " is " << average << ".\n\n";
41 }
42 return 0;
43 }
In: Computer Science
b) Give 2 reasons why increasing state aid to property-poor districts may not necessarily lead to improved student academic performance in those districts.
c) In school finance, Housing Price Capitalization refers to the concept that increased funding for schools may lead to increased school quality, which in turn may lead to higher property values for homes that are served by the improved schools. What might be a potential downside to housing price capitalization?
a) What is the difference between “teacher qualifications” and “teacher effectiveness”?
b) In general terms, describe how value-added measures are typically calculated
c) How would you recommend schools measure teacher effectiveness? Provide reasoning for why you think your solution is a good one.
d, Researchers often think of education as a production process. I.e. schools invest in inputs to the education process that they in turn hope will produce educational outputs. In this context: 1. List at least four inputs that commonly factor into the educational production process.
2. List at least four educational outputs that emerge from the educational production process.
b) Imagine you are a school superintendent of a low-performing urban school district who has to choose how to invest a newly received grant of $10 million. How would you spend the money? What outcomes would you hope to improve? Are there potential downsides to spending the money the way you chose?
Use the following diagram to answer the following questions W1
a) At wage W1 is there a teacher labor shortage or surplus? Illustrate on the diagram.
b) Given the market is not in equilibrium, describe the market forces that bring the market into equilibrium. Illustrate on the diagram.
Use the diagram of a teacher labor market below to answer the following question.
c) The state passes a law requiring all class sizes be 25 students or less. How does this affect the equilibrium wage and labor quantity of teachers in the state? Demonstrate using the figure. Full credit answers will demonstrate the initial equilibrium wage and quantity, any changes due to the scenario, and the final equilibrium wage and quantity.
In: Economics
In: Nursing
Create a Python program that:
Reads the content of a file (Vehlist.txt)
The file contains matching pairs of vehicle models and their
respective makes
Separate out the individual make and model on each line of the
file
Add the vehicle make to one list, and the vehicle model to another
list; such that they are in the same relative position in each
list
Prompt the user to enter a vehicle model
Search the list containing the vehicle models for a match
If a match is found, display the vehicle make by accessing the
vehicle make list entry in the same relative position the match was
found
If no match is found, display a message saying so to the user
Allow the user to enter name for the file
The program should:
Use variables with meaningful names
Display easily understood prompts when collecting user input
Have appropriate comments indicating what each part of the program
is doing
Have a comment area at the beginning of the program identifying the
author of the program and the class it was created for
Save the program as a Python module, and submit the program through
this assignment
In: Computer Science
A psychologist would like to examine how the rate of presentation affects people’s ability to memorize a list of words. A list of 20 words is prepared. For one group of participants the list is presented at the rate of one word every ½ second. The next group gets one word every second. The third group has one word every 2 seconds, and the fourth group has one word every 3 seconds. After the list is presented, the psychologist asks each person to recall the entire list. The dependent variable is the number of errors in recall. The data from this experiment are as follows:
|
½ Second |
1 Second |
2 Seconds |
3 Seconds |
|
4 |
0 |
3 |
0 |
|
6 |
2 |
1 |
2 |
|
2 |
2 |
2 |
1 |
|
4 |
0 |
2 |
1 |
Step by step on SPSS
a. Can the psychologist conclude that the rate of presentation has a significant effect on memory? Test at the .05 level.
b. Use the Tukey HSD test to determine which rates of presentation are statistically different and which are not.
In: Math
In Python Create a function called ℎ?????. The function has as arguments a list called ?????? and a list call center. • List ?????? contains lists that represent points. o For example, if ?????? = [[4,2], [3,2], [6,1]], the list [4,2] represents the point with coordinate ? at 4 and y coordinate at 2, and so on for the other lists. Assume that all lists within points contain two numbers (that is, they have x, y coordinates). • List ?????? contains two numbers that also represent a point. o For example, ?????? = [3,3] represents the point with coordinate ? at 3 and with coordinate y at 3. • The function must return the point in points closest to center according to the distance calculated using the formula: ???????e = | ?2 - ?1| + | ?2 - ?1| o For example, if ?????? = [[4,2], [3,2], [6,1]] and ?????? = [3,3], then the function must return [3,2] (note that according to the formula the distance between the points is:
▪ |4 − 3| + |2 − 3| = 2
▪ |3 − 3| + |3 − 3| = 1
▪ |6 − 3| + |1 − 3| = 5
In: Computer Science