How can I return in a list all possible paths from a grid if I can only go right and down?
For example consider the following table:
A B C
D E F
If I go right I need to insert in my list 'H' if I go down I need to insert in my list 'V'.
For example the path A - > B -> C -> F would be H - H - V
The path A -> D -> E -> F would be V - H - H
How would be the code for that? Please preference write in JAVA.
Thank you,
In: Computer Science
Given the following information
Ag+(aq) + e- ↔ Ag(s) Eºred = 0.799 V
Ag2CrO4(s) + 2e- ↔ 2Ag(s) + CrO42-(aq) Eºred = 0.450 V
Determine the equilibrium constant at 25 °C for the reaction below:
Ag2CrO4(s) ↔ 2Ag+(aq) + CrO42-(aq)
| 1. |
9 × 10-18 |
|
| 2. |
1.6 × 10-12 |
|
| 3. |
1.2 × 10-6 |
|
| 4. |
1.6 × 1015 |
|
| 5. |
1.7 × 1039 |
Examine the following half reactions and select the strongest oxidizing agent among the species listed.
Cr2+(aq) + 2e- ↔ Cr(s) Eºred = -0.913 V
Sr2+(aq) + 2e- ↔ Sr(s) Eºred = -2.89 V
Fe2+(aq) + 2e- ↔ Fe(s) Eºred = -0.447 V
Co2+(aq) + 2e- ↔ Co(s) Eºred = -0.28 V
| 1. |
Cr2+(aq) |
|
| 2. |
Fe(s) |
|
| 3. |
Fe2+(aq) |
|
| 4. |
Sr2+(aq) |
|
| 5. |
Co2+(aq) |
2 points
QUESTION 5
Which of the changes below will increase the voltage of the following cell?
Co | Co2+ (0.010M) || H+ (0.010 M) | H2(0.50 atm) | Pt
| 1. |
Increase the pressure of H2 from 0.50 atm to 1.0 atm |
|
| 2. |
Increase the concentration of H+ from 0.010 to 0.050 M. |
|
| 3. |
Increase the mass of Co electrode from 12 grams to 15 g. |
|
| 4. |
Increase the concentration of Co2+ from 0.010 M to 0.40 M. |
In: Chemistry
1. How will the equivalence point volume change if you titrate the two solutions in question 2? What is the pH of the equivalence point of the two solutions if you titrate with 0.3 M NaOH?
Note: You do not need to answer question 2 in order to do
question 3.
The two solutions that question #3 refers to are:
(1) a 10-mL vinegar solution that has a concentration of 5%
(w/v%)
(2) a 10-mL vinegar solution that has a concentration of 5% (w/v%)
together with 30mL of water
Each one of these solutions is then titrated separately with the NaOH solution. Ka for acetic acid is listed in question #1 ii. Calculate the amount (in mL) of a 1.520M NaOH that is required to add the following acetic acid solutions to prepare a buffer with the corresponding pH: pKa of acetic acid = 4.74
1. 30.00mL of a 5.00% (w/v%) acetic acid; the resulting acetate
buffer has a pH of 5.75
2. 50.00mL of a 5.00% (w/v%) acetic acid; the resulting acetate
buffer has a pH of 4.98
3. 40.00mL of a 5.00% (w/v%) acetic acid; the resulting acetate
buffer has a pH of 4.33
Hint: Set up an equilibrium table for a reaction between acetic acid and NaOH (similar to the examples that we did in lectures). However, in this case, the mole of NaOH in the equilibrium table is a function of volume (i.e. MNaOH.V) and it will be the limiting reagent in the equilibrium table. You will then use the Henderson-Hasselbalch equation to determine the volume of NaOH (i.e. V) that is required to prepare the specific acetate buffer solution at the corresponding pH.
In: Chemistry
Ebola virus is a virus that is frequently and rapidly lethal in humans. The envelopes around particles of Ebola virus are studded with a viral glycoprotein (GP). Researchers hypothesized that, to enter a human cell, GP molecules must be cleaved by a protease enzyme, after which they bind with a protein called NPC1 in the human cell membrane. Reptile cells do not normally express the NPC1 protein, but the researchers modified some reptile cells to express NPC1. They then exposed the unmodified and modified cells to Ebola virus, both in the presence of a protease inhibitor that prevents GP cleavage, and without that inhibitor present. They then measured the frequency at which Ebola viruses infected the cells. These treatments are summarized below. I. Unmodified reptile cells, protease inhibitor absent II. Unmodified reptile cells, protease inhibitor present III. Modified reptile cells, protease inhibitor absent IV. Modified reptile cells, protease inhibitor present V. Unmodified human cells, protease inhibitor absent Of the following, which is a correct reason for including group V? :
(A) If the virus cannot enter group V but can enter group III, it shows that GP cleavage is not necessary for infection.
(B) If the virus can enter group V but cannot enter group IV, it shows that NPC1 is necessary for infection.
(C) If the virus can enter group V but cannot enter groups I, II, III, or IV, it shows that both GP cleavage and NPC1 are necessary for infection.
(D) Group V is a positive control.
In: Biology
During the classic period the court lifted the veil on a number of occasions - from the list below select the correct answers (you may choose more than one answer)
Group of answer choices
When groups of companies should be viewed as one single entity. (DHN Food Distributors)
Defendant set up a company to solicit customers he was prohibited from soliciting due to previous employment contract (Gilford Motor Co v Horne)
Setting up a company to avoid an estate contract (Jones v Lipman);
Setting up a company to force compulsory purchase of minority shareholdings (Re Bugle Press).
Dealing with the enemy (Daimler v Continential Tyre);
Lord Denning argued in DHN Food Distributors v Tower Hamlets that groups of companies should be viewed as one single entity.
Group of answer choices
True
False
The key question in the case of Adams v Cape Industries was ?
Group of answer choices
It is possible for a company to be held as a mere facade even though it was not originally set up as a sham.
The company was used for some impropriety unconnected to the corporate form.
If there was an existence of an agent-principal relationship.
Whether Cape, the parent company, had a presence in the US through it subsidiaries.
The three situations where the case of Adams v Cape limited veil lifting to are :-
1. Where the interpretation of a statute or document shows that
the group of companies is to be treated as one;
2. Where a company is being used as a sham or mere facade;
3. Where there is no agent-principal relationship
In: Accounting
Modify the original code and add an additional function of your choice. The function should be unique and something you created for this assignment. Support your experimentation with screen captures of executing the new code. Prepare a test table with at least 3 distinct test cases listing input and expected output for your unique function.
#include <stdio.h>
void printHelp () {
printf ("\n");
printf ("a: a(x) = x*x\n");
printf ("b: b(x) = x*x*x\n");
printf ("c: c(x) = x^2 + 2*x + 7\n");
printf ("q: quit\n");
}
void a(float x) {
float v = x*x;
printf (" a(%.2f) = %.2f^2 = %.2f\n", x, x, v);
} // end function a
void b(float x) {
float v = x*x*x;
printf (" b(%.2f) = %.2f^3 = %.2f\n", x, x, v);
} // end function b
void c(float x) {
float v = x*x + 2*x + 7;
printf (" c(%.2f) = %.2f^2 + 2*%.2f + 7 = %.2f\n",
x, x, x, v);
} // end function c
int menu () {
char selection;
float x;
printHelp ();
scanf ("%s", &selection);
if (selection == 'q') return 1;
scanf ("%f", &x);
if (selection == 'a') a(x);
if (selection == 'b') b(x);
if (selection == 'c') c(x);
return 0;
} // end function menu
int main() {
while (menu() == 0);
printf ("... bye ...\n");
return 0;
} // end main
In: Computer Science
Molarity of standard NaOH solution: x/1 H 2/3 Unknown + 2/3 NaOH -> 2/3 H2O +Na 2/3 Acetate
| Vinegar: | Titration 1 | Titration 2 | Tirtration 3 |
| Initial V of Acid | .01 mL | 5.56 mL | 11.32 mL |
| Final V of Acid | 5.56 mL | 10.71 mL | 16.02 mL |
| Inital V of Base | .01 mL | 27.12 mL | 3.01 mL |
| Final V of Base | 22.23 mL | 44.71 mL | 24.90 mL |
Unknown Acid code and number of reactive hydrogens: H+3
| Unknown Acid | Titration 1 | Titration 2 (Error) | Titration 3 | Titration 4 |
| Mass of Acid | .1024 g | .1028g | .1021g | .1023g |
| Initial V of Base | 24.90 mL | 37.80 mL | 45.5 mL | 9.24 mL |
| Final V of Base | 37.80 mL | 45.5 mL | 9.24 mL | 17.80 mL |
10. Find the moles of base (NaOH) for each of your unknown acid titrations.
11. Find the balanced equation using the number of reactive hydrogens (call an acid with one reactive hydrogen HA, one with two reactive hydrogens H2A, and so on).
12. Find the moles of unknown acid for each of your three unknown acid solutions.
13. Use the mass of unknown acid and the moles of unknown acid to find the formula mass of your unknown acid for each of your three unknown acid titrations.
In: Chemistry
Write a bash script that will allow you to:
Ex:
If 10 is entered for the first number and 3 for the second, you should output
Your name
Course name
Instructor’s name
10 is greater than 3.
If 33 is entered for the first number and 100 for the second, you shou output
Your name
Course name
Instructor’s name
100 is greater than 33.
please write in linux/ unix code
In: Computer Science
Your client has started a photography business on Jan 1 of 2016 (sole proprietorship). She has never started a business before. The business had sales of $15,000 and incurred the following expenses in 2016. Explain to your client how these will be handled in 2016 and in 2017 and beyond.
Licenses 5,000
Advertising 2,000
Studio rent 3,500
Market studies 2,300
Studio equipment, cameras & lenses $25,000
In: Accounting
The parts of the comparative I/S of a firm for the years of 2016 and 2017 looks as follows:
2016 2017
Sales $100,000 $105,000
COGS $40,000 $52,500
SG&A $10,000 $21,000
and the B/S shows the Accounts Receivables balances for 2016 and 2017 as 10,000 and 15,000 respectively.
Based on the above information, forecast 2018 Accounts Receivables balance. Put the nearest dollar amount without comma or dollar sign
In: Accounting