Questions
in C++ Write a program to compute the current and the power dissipation in an AC...

in C++ Write a program to compute the current and the power dissipation in an AC circuit that has four resistors R1, R2, R3, and R4 in parallel. The voltage source is V. Test your solution with various voltage levels and resistor values. Execute and submit the program and the results in screen captures. Please note that the equivalent resistor is given by 1/Rtotal = 1/R1 + 1/R2 + 1/R3 + 1/R4 and the current I is given by I = V/Rtotal. The Power dissipation is given by P = V x I

B) Repeat the problem above when the resistors are connected in series.

In: Computer Science

Discuss the development of the Federal court system and show how John Marshall played a key...

Discuss the development of the Federal court system and show how John Marshall played a key role in its development and contributed to strengthening and defining  "federalism" in the United States by examining his significant rulings: Madison v. Marbury, McCulloch v. Maryland, Dartmouth College v. Woodward, and Gibbons vs. Ogen.

Discuss the democratic revolution that was to culminate during the presidency of Andrew Jackson. Also discuss his contributions to the development of the federal government and demonstrate his view of the presidency by using Jackson's attack on the Second Bank of the United States. Also discuss the sectional divisions that began to emerge in the "Age of Jackson".

In: Economics

Write a program in c++ to do the following : (1) Declare an array a of...

Write a program in c++ to do the following : (1) Declare an array a of size 10 and three pointer variables p, q, and v. (2) Write a loop to fill array a with values 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 (3) write following statement: p= &a[2]; q = &a[5]; i = *q - *p; cout<<“The value of i is”<< i; i = *p - *q; cout<<“The value of i is %d”<< i; 4) assign address of a to v. 5) write a loop to print values of array a using pointer variable v

In: Computer Science

Compare the language generated by Grammar #2 to the language generated by Grammar #1. How do...

Compare the language generated by Grammar #2 to the language generated by Grammar #1. How do the two languages compare to each other? (Is one language a proper subset of the other? Does each language contain a string that the other one does not? Do both grammars generate the very same language?)

grammar #1 where S is the start symbol  

S → tV | iC | iV | i

C → tV

V → iC | iV | i


Grammar #2 where S is the start symbol

S → W

W → YW | Y

Y → CV | V

C → t

V → i

In: Computer Science

How can I return in a list all possible paths from a grid if I can...

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-...

  1. Given the following information

    Ag+(aq) + e- ↔ Ag(s)   red = 0.799 V

    Ag2CrO4(s) + 2e- ↔ 2Ag(s) + CrO42-(aq) 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

  1. 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

  1. 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...

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...

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...

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...

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