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 | 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 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
Henry Hawkins uses an accrual-based accounting system. That means they report sales revenues on the income statement in the period the revenues are earned and they report expenses on the income statement in the period the expenses were incurred to earn the revenue.
Based on the following information, calculate the cash received from customers for 2016.
Sales for 2016 (all on account) $1,545,000
Accounts receivable, January 1, 2016 $81,600
Accounts receivable, December 31, 2016 $100,800
Cash received from customers in 2016
Assume that the only thing happening in Accounts Payable is the purchase and payment of inventory. Based on the following information, calculate the cash paid for inventory for 2016:
Cost of goods sold $525,000
Inventory, January 1, 2016 $158,600
Accounts payable, January 1, 2016 $66,700
Inventory, December 31, 2016 $130,400
Accounts payable, December 31, 2016 $82,000
Cash paid for inventory in 2016
In: Accounting
Given a list of positive integers c[0...n − 1], and a positive integer v, decides whether we can use numbers from c[0...n − 1] to make a sum of v, allowing any particular number in the list to be used multiple times. Or, mathematically, this means that there exists non-negative integer coefficients, x0, x1, ..., xn−1, such that v = x0c[0] + x1c[1] + ...xn−1c[n − 1].
For example, given c[0...3] = {2, 4, 6, 10}, and v = 17, the function shall return false, as it’s impossible to use numbers from c to add up to 17.
Given c[0...3] = {2, 4, 6, 10}, and v = 34, the function shall return true, as 34 can be expressed as 17 2’s added up (there are other ways to make value 34 as well).
Based upon the pseudocode given at the end,
(a) implement and test the following C++ function (minimally, you shall test the function with examples given above.
/* Return true if v can be expressed as sums of values from coins (repetition is allowed)
@param coins is a vector of positive int values
@param v is a positive int
@return true if v can be written as a sum of values from coins, return false otherwise
*/
bool CoinChange (vector<int> coins, int v)
(b) In comment of your code, provide a tracing of the function’s execution with input: coins[0...3] = {3, 4, 6, 10}, and v = 14. You should:
• list in order the recursive calls made, with the parameters passed and values returned for each call.
• Comment on when backtracking happens.
Pseudocode
/*
Return true if v can be expressed as sum of values from c[0...n-1]
@param c[0...n-1]: stores n positive integers
@param v: non-negative integers
2
*/
bool CoinChange (c[0...n-1], v) {
if (v==0)
for i=0 to n-1: if (c[i]==v)
//fill in the blank here
//fill in the blank here
else if (c[i]<v)
//Think: if we include c[i] to make change amount of
// v, then we only need to make change amount of _____
if (CoinChange (c, ) == True): //fill in the parameter for the
return true; //function call above
// If we haven’t returned true by now, return false
return false;
}
In: Computer Science
Ascorbic asic (0.0100 M) was added to 10.0 mL of 0.0200 M Fe3+ at pH = 0.30, and the potential was monitored with Pt and saturated Ag/AgCl electrodes.
Dehydroascorbic acid + 2H+ + 2e- --> ascorbic acid + H2O (Eo = 0.390 V)
Using Eo = 0.767 V for the Fe3+/Fe2+ couple, calculate the cell voltage when 5.0, 10.0, and 15.0 mL of ascorbic acid have been added.
Correct answers are: 0.570 V, 0.307 V, and 0.184 V but not sure how to get there
In: Chemistry
Problem 2.3 Suppose that we take the universal set U to be the integers. Let S be the even integers, letT be the integers that can be obtained by tripling any one integer and adding one to it, and let V be the set of numbers that are whole multiples of both two and three.
(i) Write S, T, and V using symbolic notation.
(ii) ComputeS∩T, S∩V andT∩V and give symbolic representations that do not use the symbols S, T, or V on the right-hand side of the equals sign.
In: Math
Some reasons firms internationalize are ___________
I. Narcissistic CEOs
II. Trade barriers
III. Imperfect Labor Markets
IV. Intangible Assets
V. Vertical Integration
VI. Product Life Cycle
VII. Ethnocentrism
Group of answer choices
A)I, II, III, V, VI
B)II, III, IV, V, VI
C)I, II, III, IV, V, VI, VII
D)II, III, IV, V, VI, VII
E)I, II, III, IV only
In: Finance
Consider a particle with initial velocity v? that has magnitude 12.0 m/s and is directed 60.0 degrees above the negative x axis.
A) What is the x component v? x of v? ? (Answer in m/s)
B) What is the y component v? y of v? ? (Answer in m/s)
C) Now, consider this applet. Two balls are simultaneously dropped from a height of 5.0 m.How long tg does it take for the balls to reach the ground? Use 10 m/s2 for the magnitude of the acceleration due to gravity.
In: Physics
Exercise 10.7. On Jul 31, 2016, the payroll register of Reed Wholesale Company showed the following totals for the month: gross earnings, $39,600; social security tax, $2,455.20; Medicare tax, $574.20; income tax, $3,135.16; and net amount due, $33,435.44. Of the total earnings, $31,258.46 was for sales salaries and $8,341.54 was for office salaries. Prepare a general journal entry to record the monthly payroll of the firm on July 31, 2016. Use 20 as the page number for the general journal.
Problem 10.2A. City Place Movie Theaters has four employees and pays them on an hourly basis. During the week beginning June 24 and ending June 30, 2016, these employees worked the hours shown below. Information about hourly rates, marital status, withholding allowances, and cumulative earnings prior to the current pay period also appears below.
|
Employee |
Regular Hours Worked |
Hourly Rate |
Marital Status |
Withholding Allowances |
Cumulative Earnings |
|
Nelda Anderson |
48 |
$12.70 |
M |
1 |
$17,640 |
|
Earl Benson |
48 |
$11.50 |
M |
4 |
$16,975 |
|
Frank Cortez |
40 |
$11.20 |
M |
1 |
$16,080 |
|
Winnie Wu |
50 |
$10.70 |
S |
2 |
$14,660 |
Instructions
Analyze: What are Nelda Anderson’s cumulative earnings on June 30, 2016?
In: Accounting