CASE-STUDY
Jessica Silliman
Rachel Bailey was quickly hired out of Santa Clara University during the dot-com boom to a company of 100 employees that ran an innovative social networking website in Silicon Valley. She was immediately put in charge of email communication to customers-both existing and potential.
The Internet was quite new to everyone and online communication (via email) had little corporate regulation or set social protocol. Privacy policies were yet to be established. With thousands of individuals discovering the Internet everyday, business was booming for the small Silicon Valley firm.
Rachel handled all online contact with existing users and was asked to market to these existing online community members via email. But she struggled with finding a balance of the right amount of marketing. With Internet competition growing everyday within the social networking websites, these users had plenty of alternatives. And flooding their email inboxes, she thought, wasn't the best way to attract them.
Unfortunately, Rachel's boss had a different approach. The Vice President of Marketing wanted results-he wanted existing customers to upgrade their networking packages and follow through on advertisements. He told Rachel to be as aggressive as possible with her email campaigns. But at the same time, Rachel spoke with coworkers who didn't want to work for a company known for its email spam. They prided themselves on working at an organization that respected its users and didn't abuse the ease of email communication-even within the competitive market.
Rachel found subtle alternatives to the mass emails. She developed links on the company website to advertisements, but she wasn' t getting the results her boss demanded.
One day when Rachel arrived at the office, her boss said he had a brilliant idea. He said that everybody knew someone named Cindy Anderson, so they could send emails to their users from that name to trick them into opening the email, which would display a link to their website.
Rachel was incensed with her boss's idea. "A lot of people are very casual with the truth," she said.
Rachel felt very uncomfortable with the thought of implementing what she considered to be her boss's deceptive idea.
"People trust you with their email addresses," said Rachel. "You have to be responsible and not take advantage of that access."
She worried that existing customers would begin to resent the company and unsubscribe. But she also had a commitment to drawing in as many new customers as she could-and her more subtle tactics weren't working.
Rachel made the decision to stand up to her boss. The following week she told him that his idea was deceitful and would cause customers to lose trust and faith in the company. In the end, it wouldn't be a financially viable solution to their problem.
Rachel proved to be convincing. Her boss took her advice and began to realize that it was a bad idea.
"In the end, we had happy customers and our company gained more value in the highly competitive market," said Rachel.
Discussion Questions:
Jessica Silliman was a 2006-07 Hackworth Fellow at The Markkula Center for Applied Ethics.
In: Economics
A real estate expert wanted to find the relationship between the sale price of houses and various characteristics of the houses. He collected data on five variables, recorded in the table, for 12 houses that were sold recently. The five variables arePrice: Sale price of a house in thousands of dollars. Lot Size: Size of the lot in acres. Living Area: Living area in square feet. Age: Age of a house in years. Type of house: town house (T) or Villa (V) Price Lot Size Living Area Age Type of house
Price 255 178 263 127 305 164 245 146 287 189 211 123
Lot Size1.4 0.9 1.8 0.7 2.6 1.2 2.1 1.1 2.8 1.6 1.7 0.5
Living area 2500 2250 2900 1800 3200 2400 2700 2050 2850 2600 2300 1700
Age 8 12 5 24 10 18 9 28 13 9 8 11
Type of the house T T T T T T T V V V V V
Find the regression equation for the town house e) Find the regression equation for the Villa f) What is the price of a town house with a lot size of 1.3, living area of 1800, and is 7 years old?
In: Statistics and Probability
Checking Input File for correct line format.
So for my C++ assignment, my professor says we need to validate the Input File, if there are white lines and spaces, in which it will ignore them, separated by a comma, and that all data items are there. This will be used in a program where i will store these into an Array, and display them in First name, Last name, and Number of Votes.
This is a sample of the txt file. My question is, What do i use to be able to take only the names and number and place them into an array. Please explain what each line is doing, even it is not completely obvious. I am a complete beginner.
F=Michael,L=John,V=3342
F=Danny,L=Red,V=2003
F=Hillary,L=Clinton, V=1588
F=Albert,L=Lee,V=5332
F=Steven,L=JohnV=4429
Correct line for the reference: F=John,L=Smith,V=3342
The line errors that your program needs to detect, are as follows:
incorrect token / separator, example in line 5: F=Steven,L=JohnV=4429
(comma missing) – lines with this error need to be ignored
space in token, example in line 3: F=Hillary,X=Clinton, V=1622
lines with this error need to be read, error fixed, data included in your dataset
empty line, example in line 6 – empty lines need to be ignored
In: Computer Science
Java Language
Add a method (deleteGreater ()) to the LinkedList class to delete the node with the higher value data.
Code:
class Node {
int value;
Node nextNode;
Node(int v, Node n)
{
value = v;
nextNode = n;
}
Node (int v)
{
this(v,null);
}
}
class LinkedList
{
Node head; //head = null;
LinkedList()
{
}
int length()
{
Node tempPtr;
int result = 0;
tempPtr = head;
while (tempPtr != null)
{
tempPtr = tempPtr.nextNode;
result = result + 1;
}
return(result);
}
void insertAt(int v, int position)
{
Node newNode = new Node(v,null);
Node tempPtr;
int tempPosition = 0;
if((head == null) || (position ==0))
{
newNode.nextNode = head;
head = newNode;
}
else {
tempPtr = head;
while((tempPtr.nextNode != null)&&(tempPosition < position -1))
{
tempPtr = tempPtr.nextNode;
tempPosition = tempPosition + 1;
}
if (tempPosition == (position - 1))
{
newNode.nextNode = tempPtr.nextNode;
tempPtr.nextNode = newNode;
}
}
}
public String toString()
{
Node tempPtr;
tempPtr = head;
String result = "";
while(tempPtr != null)
{
result = result + "[" + tempPtr.value + "| ]-->";
tempPtr = tempPtr.nextNode;
}
result = result + "null";
return result;
}
}
public class LinkedListDemoInsDel
{
public static void main(String[] args)
{
LinkedList aLinkedList = new LinkedList();
aLinkedList.insertAt(1,0);
aLinkedList.insertAt(9,1);
aLinkedList.insertAt(13,2);
aLinkedList.insertAt(8,1);
aLinkedList.insertAt(3,2);
System.out.println(aLinkedList);
System.out.println("Largo de lista: " + aLinkedList.length());
}
}
In: Computer Science
Complete the program used on the instructions given in the comments:
C++ lang
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
using namespace std;
vector<float>GetTheVector();
void main()
{
vector<int> V;
V = GetTheVector(); //reads some lost numbers from the file “data.txt" and places it in //the Vector V
Vector<int>W = getAverageOfEveryTwo(V);
int printTheNumberOfValues(W) //This should print the number of divisible values by 7 //but not divisible by 3.
PrintIntoFile(W); //This prints the values of vector W into an output file “output.txt”
}
As you see in the main program, there are four functions. The first function is called “GetVector()” that reads a set of integer, place them into the vector V, and returns the vector to the main program.
The second function is called “GetAverageOfEveryTwoNumber() that takes a vector “V” and finds the average of every two consecutive numbers, place the values into another vector called “W” and returns it to the main program. For example if the Vector is:
10 20 30 40 50 60 70 80 90 100
Then vector “W” should be:
15 25 35 45 55 65 75 85 95
Because (10+20) divided by 2 is 15, and so on.
The next function takes the vector “W” and count how many of the values are divisible by “7” but not divisible by “3”
Finally the last function prints the vector “W” into an output file called “output.txt”
In: Computer Science
In: Statistics and Probability
A study is conducted to look at the time students exercise in average. In a random sample of 115 students, a researcher finds that the mean time students exercise is 11.3hrs/month with a standard deviation of 6.43hrs/month. Using the Critical Value Methodand a 5% significance level, can a researcher conclude that in average students exercise less than 15 hours per month?
In: Statistics and Probability
In: Statistics and Probability
A small university knows the average amount that its students spend on lunch each day. The amount spent on lunches for the population of 500 students is not highly skewed and has a mean of $8 and a standard deviation of $2. Suppose simple random sample of 49 students is taken, what is the probability that the sample mean for the sample of 49 students will be between $7.50 and $8.50?
In: Statistics and Probability
8. Seventy-five percent of the students graduating from high school in a small town in Oklahoma attend college. For a random sample of 50 students from the town, what is the probability that
a. at least 80% of the surveyed students will attend college?
b. between 80% and 85% (inclusive) of the surveyed students will attend college?
please explain thought process and step by step
In: Math