Questions
Let u and v be two integers and let us assume u^2 + uv +v^2 is...

Let u and v be two integers and let us assume u^2 + uv +v^2 is divisible by 9. Show that then u and v are divisible by 3. (please do this by contrapositive).

In: Advanced Math

*Please show work and explain* Prove that a vector space V over a field F is...

*Please show work and explain*

Prove that a vector space V over a field F is isomorphic to the vector space L(F,V) of all linear maps from F to V.

In: Advanced Math

Why does multiple slit experiment have unequal fringes? What is the effect of adding more slits?...

Why does multiple slit experiment have unequal fringes?

What is the effect of adding more slits?

What is the effect of increasing the width of the slit in a double slit experiment?

In: Physics

8. Design an experiment to determine the optimal temperature for enzyme function, complete with controls. Where...

8. Design an experiment to determine the optimal temperature for enzyme function, complete with controls. Where would you find the enzymes for this experiment? What substrate would you use?

In: Biology

Describe how the Hershey-Chase experiment demonstrated that DNA is the genetic material, not protein as previously...

Describe how the Hershey-Chase experiment demonstrated that DNA is the genetic material, not protein as previously thought. Explain how they used radioactive isotopes and bacteriophages in their experiment and summarize their conclusions.

In: Biology

Design an experiment to determine the changes in the transcriptome (global gene expression) of human cells...

Design an experiment to determine the changes in the transcriptome (global gene expression) of human cells in response to infection with the influenza virus. The experiment must be explained in detailed and have an appropriate control.

In: Biology

Decide whether the experiment is a binomial experiment. If it is not, explain why. You observe...

Decide whether the experiment is a binomial experiment. If it is not, explain why. You observe the gender of the next 50 babies born at a local hospital. The random variable represents the number of girls.

In: Statistics and Probability

In 1997 Joseph DeRisi, Vishwanath Iyer, and Patrick Brown conducted an experiment on Saccharomyces cerevisiae using...

In 1997 Joseph DeRisi, Vishwanath Iyer, and Patrick Brown conducted an experiment on Saccharomyces cerevisiae using DNA microarrays. Describe their experiment, their hypothesis and their general findings from their study.

In: Biology

can you please do the following? (8) Step 8: type the following command: sort /etc/passwd |...

can you please do the following?

(8) Step 8: type the following command:

sort /etc/passwd | head -5
What is the output?

Notice that this pipe can be simplified

cat /etc/passwd | head -5
What is the output for this?

You could accomplish the same thing more efficiently with either of the two commands:

head -5 /etc/passwd
head -5 < /etc/passwd

(9) Step 9:

The command displays all the files in the current directory sorted by file size

ls -al | sort -n -r +4
What is the output? What are the outputs sorting according to? Which column is this?

The command ls -al writes the file size in the fifth column, which is why we skip the first four columns using +4.

The options -n and -r request a numeric sort (which is different than the normal alphabetic sort) in reverse order

awk

Topics covered: processing columnar data

Utilities covered: awk

The awk utility is used for processing columns of data

(10) Step 10:

The following example shows how to extract column 5 (the file size) from the output of ls -l

ls -l | awk '{print $5}'
What is the output?

Cut and paste this line into a Bourne shell and you should see a column of file sizes, one per file in your current directory.

(11) Step 11:

The following example shows how to sum the file sizes and print the result at the end of the awk run

ls -al | awk '{sum = sum + $5} END {print sum}'

In this example you should see printed just one number, which is the sum of the file sizes in the current directory.

Shell Scripts

Topics covered: storing commands in a file and executing the file

Utilities covered: date, cal, last (shows who has logged in recently)

(12) Step 12:

Store the following in a file named simple.sh and execute it

#!/bin/sh
# Show some useful info at the start of the day
date
echo Good morning $USER
cal
last | head -6

What is the result after you execute it?(Shows current date, calendar, and a six of previous logins Notice that the commands themselves are not displayed, only the results )

last command - display login and logout information about users and

     terminals

(13) Step 13:

To display the commands verbatim as they run, execute with

sh -v simple.sh

Another way to display the commands as they run is with -x

sh -x simple.sh

What is the difference between -v and -x? Notice that with -v you see '$USER' but with -x you see your login name

Run the command 'echo $USER' at your terminal prompt and see that the variable $USER stores your login name

With -v or -x (or both) you can easily relate any error message that may appear to the command that generated it

(14) Step 14:

When an error occurs in a script, the script continues executing at the next command

Verify this by changing 'cal' to 'caal' to cause an error, and then run the script again

Run the 'caal' script with 'sh -v simple.sh' and with 'sh -x simple.sh' and verify the error message comes from cal

Other standard variable names include: $HOME, $PATH, $PRINTER. Use echo to examine the values of these variables

In: Computer Science

public class Person { private String name; public Person() { name = "No name yet"; }...

public class Person {

private String name;

public Person()

{

name = "No name yet";

}

public Person(String initialName)

{

name = initialName;

}

public void setName(String newName)

{

name = newName;

}

public String getName()

{

return name;

}

public void writeOutput()

{

System.out.println("Name: " + name);

}

public boolean hasSameName(Person otherPerson)

{

return this.name.equalsIgnoreCase(otherPerson.name);

}

}

2- Write a Program Patient. Java

Class that extends Person to include

 Social security

Gender

 Appropriate construtors, accessors, and mutators.

WriteOutput method

 an equals method to test if all parameters for two patients are equal.

 a program to test patient

In: Computer Science