JAVA
Write a method that removes the duplicate elements from an array list of integers using the following header:
public static void removeDuplicate(ArrayList list)
Write a test program that prompts the user to enter 10 integers to a list and displays the distinct integers separated by exactly one space.
Here is a sample run:
Enter ten integers: 10 20 30 20 20 30 50 60 100 9
The distinct integers are: [10, 20, 30, 50, 60, 100, 9]
In: Computer Science
Write a Java method that removes any duplicate elements from an ArrayList of integers. The method has the following header(signature):
public static void removeDuplicate(ArrayList<Integer> list)
Write a test program (with main method) that prompts the user to enter 10 integers to a list and displays the distinct integers separated by exactly one space. Here is what the input and output should look like:
Enter ten integers: 28 4 2 4 9 8 27 1 1 9
The distinct integers are 28 4 2 9 8 27 1
In: Computer Science
1. The active site of an enzyme usually consists of a pocket on the enzyme surface lined with the amino acid side chains necessary to bind the substrate and catalyze its chemical transformation. Carboxypeptidase, which sequentially removes the carboxyl-terminal amino acid residues from its peptide substrates, consists of a single chain of 307 amino acids. The two essential catalytic groups in the active site are furnished by Arg145 and Glu270 .
a. How many amino acid residues apart are these two amino acids?
b. Explain how it is that these two amino acids, so distantly separated in the sequence, can catalyze a reaction occurring in the space of a few tenth of a nanometer?
c. If only these two catalytic groups are involved in the mechanism of hydrolysis, why is it necessary for the enzyme to contain such a large number of aa residues?
2. What level of protein structure would be disrupted by the following below
a. heat
b. strong acid
c. saturated salt solution
d. organic solvents such as alcohol and chloroform
In: Biology
This is a C++ based question that involves Data Structures and Algorithms.
Q.
Application: Linked List of Bus Transit and Passengers
You are to implement a C++ program for City Bus Transit using linked list data structure to maintain record of passengers. Specifically, you are to implement the following methods/functions:
For Passenger:
o A function which can create a new node of the linked list using new for each newpassenger
o A function that prints the time of single passenger in the bus
o A function that prints time in the bus of every passenger in the linked list
o A function that increments time of each passenger in the bus by 1 minute
o A function that returns the total number of passengers in the linked list
o A function that returns the average time a passenger spends in the bus
o A function that can remove kth passenger from the linked list
o A function that removes all the passengers of the linked list
Please write a detailed code with comments because I am very new to C++
In: Computer Science
Waleed decided to construct a probability distribution of tossing five coins. He considers his random variable ?, to be the number of Tails on all five coins.
a. List the sample space for the experiment.
b. What are the possible values for ??
c. Construct a probability distribution for his experiment.
d. Find ?(−4?+16).
e. Find ?(−6?).
In: Statistics and Probability
Assume that 40% of UAE residents prefer to buy organic eggs. Assume that you took a sample of 20 residents who consume eggs.
What is the probability that at least 12 residents will buy organic eggs?
What is the expected number of the residents who buy eggs?
What is the probability that 10 residents will buy organic eggs?
In: Statistics and Probability
In: Statistics and Probability
The mean weight of 1-year-old girls is 80 pounds, and the standard deviation is 6 pounds. If a sample of 31 girls is selected, what is the probability that their sample mean is between 76.5 and 81.5 pounds? Use your graphing calculator to determine this probability. Enter this answer as a number rounded to four digits after the decimal point.
In: Statistics and Probability
22% of US adults use Twitter. A random sample of 15 US adults is selected. a) Find the probability that the sample contains exactly 4 Twitter users. b) Find the probability that at least one US adult in the sample uses Twitter. c) Find the mean and standard deviation for the number of US adults using Twitter.
In: Statistics and Probability
Waleed decided to construct a probability distribution of tossing five coins. He considers his random variable ?, to be the number of Tails on all five coins.
a. List the sample space for the experiment.
b. What are the possible values for ??
c. Construct a probability distribution for his experiment.
d. Find ?(−4? + 16).
e. Find ?(−6?).
In: Statistics and Probability