Find a recent list of countries with per capita GDP. Look at the list. Get an idea of which are the rich countries, and which are the poor. What patterns do you see with the rich and poor countries? Which source did you use? How does it vary from other lists? Write one page (single-spaced) summary of what trends you see on this list.
Make sure you reference your source.
In: Economics
1. List the top five companies in the beef market by percentage
ownership.
2. List the top four firms that own most of the hog industry.
Include percentage ownership.
3. Name the top four firms that own most of the broiler chicken
industry. List their percentages.
4. What is the risk to consumers when four or five firms control
most of the production and distribution of animal protein? What are
the consequences of lack of competition?
In: Economics
List all the people and organizations affected (the stakeholders)
• List risks, issues, problems, and consequences
• List benefits. Identify who gets each benefit
• In cases where there is no simple yes or no decision, but rather one has to choose some action, list possible actions
Identify responsibilities of the decision maker
• Identify rights of stakeholders
• Consider the impact of the options on the stakeholders (consequences, risks, benefits, harms, costs)
• Categorize each potential action as ethically obligatory, prohibited, or acceptable
Scenario 4: Schedule Pressures – Safety-critical
Your team is working on a computer-controlled device for treating cancerous tumors. The computer controls direction, intensity, and timing of a beam that destroys the tumor. Various delays have put the project behind schedule, and the deadline is approaching. There will not be time to complete all the planned testing. The system has been functioning properly in the routine treatment scenarios tested so far. You are the project manager, and you are considering whether to deliver the system on time, while continuing testing and making patches if the team finds bugs.
In: Finance
Please list the sources of contamination in animal
cell culture, and list the precautions you would take to prevent
any
In: Biology
In: Anatomy and Physiology
You are given a List L of generic type <T> , and another List P, which contains integers sorted in ascending order. The operation printLots(L,P) will print the elements in L that are in positions specified by P. For instance, if P = [1,3,4,6], the elements in positions 1,3,4, and 6 in L are printed. Write the procedure printLots(L,P). The code you provide should be the Java method itself (not pseudocode), the containing class is not necessary. You may use only use public Collection method that is inherited by Lists L and P, with the exception of the toArray() method. You may assume that the any integer in P is greater than or equal to 0 and less than L.size(). Both L and P can be empty. (Note: this is an iterator question, your solution must use iterators on L and P.)
In: Computer Science
What is the difference between afferent and efferent neurons?
List the 6 glial cells and list at least one function for each.
Name two functions of Cerebrospinal Fluid (CSF).
The modified blood vessels that are lined with ependymal cells and produce CSF are called ______.
The spaces/chambers within the brain that allow CSF to flow internally are called ________.
What are the differences between White matter and Gray matter?
Which lobe of the cerebral cortex is responsible for voluntary motor functions and “higher” thought processes?
Which part of the brainstem controls heart rate, respiratory rates and blood pressure?
Which part of the brainstem controls most homeostatic mechanisms of the body including metabolism and body temperature.
The gray matter found inside of the cerebrum that is involved with “primitive” functions such as emotions, mood and memory is called the ___________.
In: Anatomy and Physiology
Create an unsorted LIST class. Each list should be able to store 100 names.
In: Computer Science
Please use C++ and linked list to solve this problem
Linked list 1 -> 2 -> 3 -> 4 -> 5-> 6 ->7
replaceNode( 5 , 6) // Replace 5 with 6
result 1 -> 2 -> 3 -> 4 -> 6 -> 6 ->7
Base code
#include <iostream>
using namespace std;
class Node {
public:
int data;
Node *next;
Node(int da = 0, Node *p = NULL) {
this->data =
da;
this->next = p;
}
};
class LinkedList {
private:
Node *head, *tail;
int position;
public:
LinkedList() { head = tail = NULL; };
~LinkedList() {
delete head;
delete tail;
};
void print();
void Insert(int da = 0);
}
void LinkedList::Insert(int da) {
if (head == NULL) {
head = tail = new
Node(da);
head->next =
NULL;
tail->next =
NULL;
} else {
Node *p = new
Node(da);
tail->next = p;
tail = p;
tail->next =
NULL;
}
}
int main() {
cout << "Hello World!" <<
endl;
LinkedList l1;
l1.Insert(1);
l1.Insert(2;
l1.Insert(3);
l1.Insert(4);
l1.Insert(5);
l1.Insert(6);
l1.Insert(7);
l1.print();
l1.replaceNode( 5 , 6)
l1.print();
cout << "The End!" << endl;
return 0;
}
}
}
In: Computer Science
Java
The List ADT has an interface and a linked list implementation whose source code is given at the bottom of this programming lab description. You are to modify the List ADT's source code by adding the method corresponding to the following UML:
+hasRepeats() : boolean
hasRepeats() returns true if the list has a value that occurs more than once in the list
hasRepeats() returns false if no value in the list occurs more than once in the list
For example, if a List ADT object is created and has the following values inserted into it:
1, 1, 3, 4, 5
hasRepeats() would return true because the value 1 occurs more than once in the list
but if a List ADT object is created and has the following values inserted into it:
1, 2, 3, 4, 5
hasRepeats() would return false because no value in the list occurs more than once in the list.
The List ADT has methods that may be useful in writing hasRepeats(). You may call any existing methods of the List ADT inside hasRepeats().
Once you have modified the List ADT to have the hasRepeats() method, write a Java Client program that makes a List ADT object, takes integers as input from a user, stores the integers in the List ADT object, and uses the hasRepeats() method to display whether the List ADT object contains repeated values.
The Client program will have a main() method and is the program that is run at the command line. You may give your Client program any name you like. The Client program should perform a loop, ask for input, and display output in the following way.
Input a list of integers: 1 1 3 4 5 The list has repeated values. Do you want to continue (y/n): y Input a list of integers: 1 2 10 20 100 200 The list does not have repeated values. Do you want to continue (y/n): y Input a list of integers: The list does not have repeated values. Do you want to continue (y/n): y Input a list of integers: 2 The list does not have repeated values. Do you want to continue (y/n):
public interface ListInterface
{
public void add(T newEntry);
public void add(int newPosition, T newEntry);
public T remove(int givenPosition);
public void clear();
public T replace(int givenPosition, T newEntry);
public T getEntry(int givenPosition);
public T[] toArray();
public boolean contains(T anEntry);
public int getLength();
public boolean isEmpty();
}
public class LList implements ListInterface
{
private Node firstNode; // reference to the first node
of chain
private int numberOfEntries;
public LList ()
{
initializeDataFields();
}// end default constructor
public void clear()
{
initializeDataFields();
}//end clear
public void add(T newEntry) // outOfMemoryError
possible
{
Node newNode = new
Node(newEntry);
if (isEmpty())
firstNode =
newNode;
else
// add to end of nonempty link list
{
Node lastNode =
getNodeAt(numberOfEntries);
lastNode.setNextNode(newNode); // Make last node
reference new node
}// end if
numberOfEntries++;
}// end add
public void add(int givenPosition, T newEntry) //
outOfMemoryError possible
{
if ((givenPosition >= 1)
&& (givenPosition <= numberOfEntries +1))
{
Node newNode =
new Node(newEntry);
if(givenPosition
== 1) // case 1
{
newNode.setNextNode(firstNode);
firstNode = newNode;
}
else
// case
2
{
// and
givenPosition > 1
Node nodeBefore = getNodeAt(givenPosition
-1);
Node nodeAfter = nodeBefore.getNextNode();
newNode.setNextNode(nodeAfter);
nodeBefore.setNextNode(newNode);
}// end if
numberOfEntries
++;
}
else
throw new
IndexOutOfBoundsException("illegal position given to add
operation");
}// end add
public T remove(int givenPosition)
{
T result = null;
//return value
if ((givenPosition >= 1)
&& (givenPosition <= numberOfEntries))
{ // assertion:
!isEmpty
if(givenPosition
== 1)
{
result = firstNode.getData();
firstNode = firstNode.getNextNode();
}
else
{
Node nodeBefore = getNodeAt(givenPosition
-1);
Node nodeToRemove =
nodeBefore.getNextNode();
result = nodeToRemove.getData();
Node nodeAfter =
nodeToRemove.getNextNode();
nodeBefore.setNextNode(nodeAfter);
}
numberOfEntries--;
return
result;
}
else
throw new
IndexOutOfBoundsException("illegal position given to remove
operation.");
}
public T replace(int givenPosition, T newEntry)
{
if ((givenPosition >= 1)
&& (givenPosition <= numberOfEntries)) {
Node desiredNode
= getNodeAt(givenPosition);
T originalEntry
= desiredNode.getData();
desiredNode.setData(newEntry);
return
originalEntry;
}
else
throw new
IndexOutOfBoundsException("illegal position given to replace
operation.");
}
public T getEntry(int givenPosition)
{
if ((givenPosition >= 1)
&& (givenPosition <= numberOfEntries)) {
return
getNodeAt(givenPosition).getData();
}
else
throw new
IndexOutOfBoundsException("illegal position given to getEntry
operation.");
}
public T[] toArray()
{
T[] result = (T[])new
Object[numberOfEntries];
int index = 0;
Node currentNode = firstNode;
while ((index < numberOfEntries)
&& (currentNode != null)) {
result[index] =
currentNode.getData();
currentNode =
currentNode.getNextNode();
index ++;
}
return result;
}
public boolean contain(T anEntry)
{
boolean found = false;
Node currentNode = firstNode;
while (!found &&
(currentNode != null)) {
if
(anEntry.equals(currentNode.getData()))
found = true;
else
currentNode = currentNode.getNextNode();
}
return found;
}
public int getLength() {
return numberOfEntries;
}
public boolean isEmpty()
{
boolean result;
if (numberOfEntries == 0) // Or
getLength() == 0
{
// Assertion:
firstNode == null
result =
true;
}
else
{
// Assertion:
firstNode != null
result =
false;
}
return result;
}
private void initializeDataFields()
{
firstNode = null;
numberOfEntries = 0;
}
private Node getNodeAt(int givenPosition)
{
Node currentNode = firstNode;
for (int counter =1; counter <
givenPosition; counter++)
currentNode =
currentNode.getNextNode();
return currentNode;
}
private class Node
{
private T data;
private Node next;
private Node(T dataPortion) {
data =
dataPortion;
next =
null;
}
private Node(T dataPortion, Node
nextNode) {
data =
dataPortion;
next =
nextNode;
}
private T getData() {
return
data;
}
private void setData(T newData)
{
data =
newData;
}
private Node getNextNode()
{
return
next;
}
private void setNextNode(Node
nextNode) {
next =
nextNode;
}
}
}
In: Computer Science