Explain in detail why public housing was established and who was known as the “Father of Public Housing.” Explain the positives AND the negatives associated with public housing.
In: Operations Management
In: Economics
please answer all questions and explain in detail and do not give the definition.
Explain the importance of "environmental scanning" when making marketing plans
In: Finance
Answer the following questions based on the C code provided.
typedef int simple_spinlock_t;
int simple_spin_init(simple_spinlock_t* lock) { // The next line
sets the compile time memory fence
__asm__ __volatile__("" ::: "memory");
// here we set the flag to zero. Apparently “unlocked” is zero
Exciting, right?
*lock = 0; return 0;
}
int simple_spin_lock(simple_spinlock_t* lock)
{
int i;
while (1)
{
for (i=0; i < 5000; i++)
if (__sync_bool_compare_and_swap(lock, 0, 1)
return 0;
sched_yield();
}
}
int simple_spin_unlock(simple_spinlock_t *lock)
{
__asm__ __volatile__("" ::: "memory");
*lock = 0; return 0;
}
int c = 0;
simple_spinlock_t lock; // declare the lock variable as a global
void* fnC() {
int i;
for (i = 0; i < 10; i++)
{
simple_spin_lock(&lock); // Lock the critical section
c++; printf(" %d", c);
simple_spin_unlock(&lock); // Unlock the critical section
}
}
int main() {
int rt1, rt2; pthread_t t1, t2; int trial_count = 0;
simple_spin_init(&lock); // Initialize the lock flag
for (trial_count = 0; trial_count < 50; trial_count++)
{
c = 0;
/* Create two threads */
if ((rt1 = pthread_create(&t1, NULL, &fnC, NULL)))
printf("Thread creation failed: %d\n", rt1);
if ((rt2 = pthread_create(&t2, NULL, &fnC, NULL)))
printf("Thread creation failed: %d\n", rt2);
pthread_join(t1, NULL);
pthread_join(t2, NULL);
printf("\n");
}
return 0;
}
In: Computer Science
17. Why should you avoid contrasting red and green as colors on a graph for presentations?
18. Why would you use a semilogarithmic scale line graph instead of an arithmetic scale line graph?
19. Construct a pie chart using your computer. Word works very well for doing this. Use any information you like but it must contain at least 5 sections. It must be original! Do not use the example within Word (i.e. Sales) or from a website. Attach or copy and paste below.
In: Math
Using an arduino, breadboard, ultrasonic sensor, buzzer, lcd and red led display distance in centimeters,
If needed, use a rotary potentiometer, male to male cable (m-m) female to male cable (f-m) or any resistor provided in the kit.
display distance in centimeters to lcd. If the object is in distance, turn on Active buzzer(play sound)
and turn on red led. If the object is not in range, display out of range or "Object now close'. on the lcd, make sure the buzzer is off and red led is off.
Provide code and schematic
Provide code and schematic
In: Electrical Engineering
1. How does bacteria reproduce? Know the phases of bacterial growth with what happens in each phase.
2. What is CFU?
3. Know in detail about the factors affecting bacterial growth including physical factors (pH, temperature, water, oxygen, osmotic pressure) and nutritional factors.
4. How does bacteria interact with each other?
5. What is sporulation and germination?
In: Biology
Think about the writing you do as a professional, a volunteer, a citizen, or a friend. Respond to the following questions and, if it's relevant, include your own personal experience:
Which two patterns of writing do you most frequently use? Describe how you use them. Which two do you least frequently use? Explain why you don't use them. Which pattern(s) would most help you achieve your goals? Identify ways these patterns could benefit you.
In: Psychology
Refer to the section “The Prevalence of Oligopoly” and review the formula for Herfindahl-Hirschman Index of HHI.
Assume an industry consists of six firms with the following market share:
Firm Market Share (%)
A 12
B 24
C 14
D 22
E 20
F 8
Calculate HHI. How would this industry be characterized by the Justice Department guidelines?
For each of the following situations, decide whether advertising is directly informative about the product or simply an indirect signal of its quality. Explain your reasoning.
In: Economics
1. Imelda has a large collection of shoes. She has 20 pairs of sneakers of which: 9 pairs are canvas and 11 are leather; 8 pairs are white, 7 are black, and 5 are red; 5 pairs are white and canvas, 1 pair is black and canvas, and 2 pairs are red and leather. Suppose Imelda selects a pair of sneakers at random from this collection of 20 pairs.
a) What is the probability that she selects a red canvas pair?
b) Given that the pair she selected is canvas, what is the probability that they are red?
c) Given that the pair she selected is red, what is the probability that they are canvas?
d) What is the probability that she selects a white leather pair?
e) Given that the pair she selected is white, what is the probability that they are leather?
f) Given that the pair she selected is leather, what is the probability that they are white?
In: Statistics and Probability