subject

In this assignment, you will practice using Data Structures and Object-Oriented concepts in Java. Your implementation should target the most efficient algorithms and data structures. You will be graded based on the efficiency of your implementation. You will not be awarded any points if you use simple nested loops to implement the below tasks Question 1:
Using the same Data. users array. You are asked to perform the following tasks: 1. Your implementation for this question should be included in MainPart2.java file. 2. The goal is to count the number of users living each state. Print out the list of State, Count order in ascending order by count.
Question 2:
In this question you will use the Data. users and Data. otherUsers arrays that include a list of users. You are asked to perform the following tasks: 1. Your implementation for this question should be included in MainPart3.java. 2. The goal is to print out the users that are exist in both the Data. users and Data. otherUsers. Two users are equal if all their attributes are equal. 3. Print out the list of users which exist in both Data. users and Data. otherUsers. The printed list of users should be sorted by state in descending order.
MainPart1.java
public class MainPart1 {
public static void main(String[] args) {
//example on how to access the Data. users array.
for (String str : Data. users) {
System. out. println(str);
}
}
}
Data. java
*/
It will in an png file because there is a long list of names from "users" and "otherUsers"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
You know the right answer?
In this assignment, you will practice using Data Structures and Object-Oriented concepts in Java. Yo...
Questions
question
Mathematics, 11.05.2021 23:10
question
Chemistry, 11.05.2021 23:10
question
English, 11.05.2021 23:10