Questions
Alchemists in the Middle Ages dreamed of converting base metals, such as lead, into precious metals—gold...

Alchemists in the Middle Ages dreamed of converting base metals, such as lead, into precious metals—gold and silver. Why could they never succeed? Today could we convert lead to gold?

In: Chemistry

The isotypes of immunoglobulin heavy-chains ______________________________. (Select all that apply.) A. are determined by the heavy-chain...

The isotypes of immunoglobulin heavy-chains ______________________________. (Select all that apply.)

A. are determined by the heavy-chain C and V regions


B. are gamma (γ), alpha (α), mu (μ), epsilon (ε), and delta (δ)

C. include κ and λ

D. carry out different functions in the immune response

In: Biology

Suppose your architectural/design style for the human resource management scenario is MVC, what would be the...

Suppose your architectural/design style for the human resource management scenario is MVC, what would be the best architectural evaluation technique to ensure that your choice of the selected architectural/design style is correct? Describe your answer with justification.

In: Computer Science

Match the following aqueous solutions with the appropriate letter from the column on the right. 1....

Match the following aqueous solutions with the appropriate letter from the column on the right.

1. 0.19 m CuCl2 A. Lowest freezing point
2. 0.17 m Ni(NO3)2 B. Second lowest freezing point
3. 0.16 m K2S C. Third lowest freezing point
4. 0.54 m Sucrose(nonelectrolyte) D. Highest freezing point

another one:

Match the following aqueous solutions with the appropriate letter from the column on the right.

1. 0.16 m CoCl2 A. Lowest freezing point
2. 0.17 m CrCl2 B. Second lowest freezing point
3. 0.18 m Mn(NO3)2 C. Third lowest freezing point
4. 0.46 m Glucose(nonelectrolyte) D. Highest freezing point

In: Chemistry

1. What is the difference between “resistance” and “resistivity”? 2. What is the rated resistance of...

1. What is the difference between “resistance” and “resistivity”?

2. What is the rated resistance of a resistor coded with the color bands: Brown-Gray-White? (Google resistor color codes)

3. Voltmeters measure electric potential; ammeters measure electric current. Which of these two types of measuring device is likely to have an extremely high internal resistance? Which is likely to have a very low internal resistance? Explain your answers.

4. Suppose you have two light bulbs, A and B, which are identical in their construction except that the wire filament in bulb B is twice as thick as the wire filament in bulb A. If you apply the same voltage to the two bulbs, which glows brighter? Assuming the same operating efficiency for the two bulbs, how much brighter?

In: Physics

Write a two-page paper mentioning some opportunity costs of stricter government safety regulations to improve drug...

Write a two-page paper mentioning some opportunity costs of stricter government safety regulations to improve drug safety, and explain why the concept of opportunity cost is helpful for evaluating whether or not stricter safety regulations are in the public interest. Please be clear and concise about what you are trying to explain that relates to the above question.

In: Economics

Planet Corporation acquired 90 percent of Saturn Company’s voting shares of stock in 20X1. During 20X4,...

Planet Corporation acquired 90 percent of Saturn Company’s voting shares of stock in 20X1. During 20X4, Planet purchased 40,000 Playday doghouses for $24 each and sold 25,000 of them to Saturn for $30 each. Saturn sold 18,000 of the doghouses to retail establishments prior to December 31, 20X4, for $45 each. Both companies use perpetual inventory systems.

Required:
a. Prepare all journal entries Planet recorded for the purchase of inventory and resale to Saturn Company in 20X4. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

Record the purchase of inventory.

Record the sales of the Playday doghouses.

Record the cost of goods sold.

b. Prepare the journal entries Saturn recorded for the purchase of inventory and resale to retail establishments in 20X4. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

Record the purchase of inventory.

Record the sales of the Playday doghouses.

Record the cost of goods sold.

c. Prepare the worksheet consolidation entry(ies) needed in preparing consolidated financial statements for 20X4 to remove the effects of the intercompany sale. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

Record the consolidation entry.

In: Accounting

Your answer is partially correct. Try again. Bramble, Inc. prepared the following cash budget for the...

Your answer is partially correct. Try again.

Bramble, Inc. prepared the following cash budget for the fourth quarter. Fill in the missing amounts, assuming that Bramble desires to maintain a $15,000 minimum monthly cash balance and all equipment was purchased during December. Any required borrowings and repayments must be made in even increments of $1,000. (Enter answers in necessary fields only. Leave other fields blank. Do not enter 0.)

October November December Quarter
Beginning cash balance $ $15,530 $ $16,290
Collections from sales 56,290 241,390
Total cash available 72,580 97,630 125,320
Less disbursements
   Materials purchases 9,370 13,960 35,370
   Direct labor 5,020 5,740 7,830 18,590
   Manufacturing overhead 20,100 21,660 21,970
   Selling & administrative expenses 28,890 29,450
   Equipment purchase 15,440
   Dividends 4,940 4,940
Total disbursements 66,050
Excess (deficiency) of cash 31,410
Minimum cash balance 15,000 15,000 15,000
Cash available (needed) -8,470 14,730
Financing:
   Borrowings 9,000
   Repayments -9,000
   Interest -90 -90
Total financing -9,090 -90
Ending cash balance $15,530 $22,320 $ $

In: Accounting

The reaction 2H2O2(aq)→2H2O(l)+O2(g)2H2O2(aq)→2H2O(l)+O2(g) is first order in H2O2H2O2 and under certain conditions has a rate constant...

The reaction 2H2O2(aq)→2H2O(l)+O2(g)2H2O2(aq)→2H2O(l)+O2(g) is first order in H2O2H2O2 and under certain conditions has a rate constant of 0.00752 s−1s−1 at 20.0 ∘C∘C. A reaction vessel initially contains 150.0 mLmL of 30.0% H2O2H2O2 by mass solution (the density of the solution is 1.11 g/mLg/mL). The gaseous oxygen is collected over water at 20.0 ∘C∘C as it forms.

What volume of O2O2 will form in 62.8 seconds at a barometric pressure of 773.0 mmHg . (The vapor pressure of water at this temperature is 17.5 mmHg)

In: Chemistry

Question: Describe two limitations, both actual and potential of “service efforts and accomplishments” (SEA) indicators, and...

Question: Describe two limitations, both actual and potential of “service efforts and accomplishments” (SEA) indicators, and describe how they might be overcome.

In: Accounting

Your goal for this assignment is to create a tool that manages an equivalence relation that...

Your goal for this assignment is to create a tool that manages an equivalence relation that can be changed in a specific way by the program while the program runs. The assignment will involve creating two files, equiv.h and equiv.cpp.

For this assignment, the equivalence relation is always over a set of integers {1, 2, 3, …, n} for some positive integer n.

This tool is not a complete program. It is intended to be part of a larger program. File equiv.cpp must not contain a 'main' function.

Equiv.h will contain function prototypes, but it must not contain any full function definitions. (There must be no function bodies.) Equiv.cpp must contain line

  #include "equiv.h"

before any function definitions.

Interface

The interface tells exactly what this module provides for other modules to use. Other modules must not use anything that is not described here. Briefly, the interface includes a type, ER, which is the type of an equivalence relation, and the following functions.

  ER   newER(const int n);
  void destroyER(ER R);
  bool equivalent(ER R, const int x, const int y);
  void merge(ER R, const int x, const int y);

Additionally, there is one function that is solely for debugging.

  void showER(const ER R, const int n);

There is one more function that is part of the implementation but not part of the interface. You can use it for debugging, though.

  int  leader(ER R, const int x);

A module that uses this tool can create an equivalence relation called R by saying

  ER R = newER(n);

where n is a positive integer. Initially, each number is in its own equivalence class; the equivalence classes are {1}, {2}, …, {n}. There are two operations that can be performed.

  1. equivalent(R, x, y) returns a boolean value: true if x and y are currently in the same equivalence class in equivalence relation R, and false otherwise.

  2. merge(R, x, y) modifies equivalence relation R by making x and y equivalent. It combines the equivalence class that contains x with the equivalence class that contains y. The merge function does not return an answer.

Example

For example, suppose that n = 7. The following shows a sequence of operations and shows the equivalence classes after each merge operation.

Step Result
ER R = newER(7) R = {1} {2} {3} {4} {5} {6} {7}
merge(R, 1, 5) R = {1, 5} {2} {3} {4} {6} {7}
merge(R, 2, 7) R = {1, 5} {2, 7} {3} {4} {6}
equivalent(R, 1, 5) yields true
equivalent(R, 1, 7) yields false
merge(R, 5, 7) R = {1, 2, 5, 7} {3} {4} {6}
equivalent(R, 2, 5) yields true
equivalent(R, 2, 3) yields false yields false
merge(R, 2, 3) R = {1, 2, 3, 5, 7} {4} {6}
equivalent(R, 3, 7) yields true
equivalent(R, 4, 7) yields false
merge(R, 4, 6) R = {1, 2, 3, 5, 7} {4, 6}
merge(R, 2, 3) R = {1, 2, 3, 5, 7} {4, 6}

As you can see from the last step, it is allowed to merge two values that are already equivalent. That should cause no change.

An Algorithm for Managing an Equivalence Relation

You will not store the equivalence classes directly. Instead, you will store them implicitly, using the following ideas.  You are required to implement an equivalence manager in this way. You will receive no credit for a module that does not follow this algorithm.

  1. Each equivalence class has a leader, which is one of the members of that equivalence class. You will create a function leader(R, x) that returns the current leader of the equivalence class that contains x in equivalence relation R.

    Two values are equivalent if they have the same leader.

  2. There is another idea that is similar to a leader, but not exactly the same. Each value has a boss, which is a value in its equivalence class. For the purposes of describing the idea, let's write boss[x] for x's boss.

    1. If x is the leader of its equivalence class then boss[x] = 0, indicating that x has no boss.

    2. If x is not the leader of its equivalence class then boss[x] ≠ 0 and boss[x] is closer to the leader, in the following sense. If you look at the values x, boss[x], boss[boss[x]], boss[boss[boss[x]]], … then you will eventually encounter x's leader (just before you encounter 0).

Details on the algorithm

Use an array to store the bosses. Declaration

  typedef int* ER;

defines type ER to be the same as int*. Write the following functions.

  1. newER(n) returns an equivalence relation as an array of n+1 integers. Allocate the array in the heap. This array will be used to store the bosses. If R has type ER then R[x] is x's boss.

    In C++, arrays start at index 0. You will use indices 1, … n, so you need to allocate n+1 slots. (Index 0 will not be used.)

    Initialize the array so that each value is a leader of its own equivalence class. That is, R[x] = 0 for x = 1, …, n.

  2. leader(R, x) returns the leader of x in equivalence relation R. To compute x's leader, just follow the bosses up to the leader. Here is a sketch of a loop that finds the leader of x.

      y = x
      while(boss[y] != 0)
        y = boss[y]
      return y
    
    You can use a loop or recursion the leader function. Any function that wants to compute a leader must use the leader function to do that.
  3. equivalent(R, x, y) returns true if x and y have the same leader in R. Notice that is not the same as saying that they have the same boss.

  4. merge(R, x, y) merges the equivalence classes of x and y in R as follows. First, it finds the leaders x′ and y′ of x and y. If x′ and y′ are different (so x and y are not already in the same equivalence class) then y′ becomes the new boss of x′ and y′ becomes the leader of the combined equivalence class.

  5. destroyER(R) deallocates R.

  6. showER(R, n) prints the entire contents of array R (of size n) in a readable form for debugging. Be sure that showER shows both k and k's boss, for each k.

    Do not try to be too fancy here. Do not try to show the equivalence classes. ShowER is a debugging tool, and it should show the bosses.

Important Note.

It is crucial for your merge function never to change the boss of a nonleader. If you are not sure that x is a leader, do not change R[x].  Pay attention to this!

In the past, many students have ignored this requirement. Needless to say, their modules did not work and their scores were low.

Additional Requirements

It is important for you to follow the algorithms and design described here. Do not make up your own algorithm. Implement exactly the functions that are indicated. Keep the parameter order as shown here. If you change the parameter order, your module will not compile correctly with my tester. Do not add extra responsibilities to functions.

The definition of ER must only be in equiv.h. Do not duplicate that definition in equiv.cpp.

A Refinement Plan

Development plan

2. Create a file called equiv.cpp.

Copy and paste the module-template into it. Edit the file. Add your name and the assignment number. If you will use tabs, say how far apart the tab stops are. Add line

#include "equiv.h"

3. Write a comment telling what this module will provide when it is finished.

Equiv.cpp is not an application. It just provides a tool. Say that it is an equivalence relation manager and give an outline of the interface.

4. Create a file called equiv.h.

Copy the following into equiv.h, then edit it to add your name.

// CSCI 2530
// Assignment: 3
// Author:     ***
// File:       equiv.h
// Tab stops:  none

// These #ifndef and #define lines make it so that, if this file is
// read more than once by the compiler, its body is skipped on all
// but the first time it is read.

#ifndef EQUIV_H
#define EQUIV_H

// An equivalence relation is an array of integers.
// So ER abbreviates int*.  

typedef int* ER;

// Public function prototypes

ER   newER      (const int n);
void destroyER  (ER R);
bool equivalent (ER R, const int x, const int y);
void merge      (ER R, const int x, const int y);

// The following is advertised here solely for debugging.  These must
// only be used for debugging.

void showER(const ER R, const int n);
int  leader(ER R, const int x);

#endif

Note. In the types of equivalent and leader, parameter R is not marked const, even though it seems to make sense to do that. The reason is that improvements that can be done for extra credit need to make changes to R, even in equivalent and leader.

5. In equiv.cpp, write a heading and contract, then fill in the body, of the 'newER' function.

Notice that newER(n) returns an equivalence relation that can handle set {1, 2, …, n}. Say that. Don't say that it returns an array. Where possible, express things in conceptual terms rather than in physical terms.

6. In equiv.cpp, write a contract, then an implementation, of the 'showER' function.

Pay attention to what showER is supposed to do.

7. Create file test1.cpp for partial testing of equiv.cpp.

Add a main function to test1.cpp and make main create a new ER object (using newER) and use showER to show what it looks like. Testequiv.cpp should contain

#include "equiv.h"
to allow it to use what is described in equiv.h.

Compile test1.cpp and equiv.cpp together as follows.

  g++ -Wall -o test1 test1.cpp equiv.cpp
Then run test1 by
  ./test1

8. In equiv.cpp, write a heading and contract, then an implementation, of the 'leader' function.

Modify test1.cpp so that it tests leader by showing showing the leader of each value in the ER object that it creates. Note that, at this point, each number will be its own leader. Run test1.cpp.

9. In equiv.cpp, write a heading and contract, then an implementation, of the 'merge' function.

Modify test1.cpp by making it merge just a few values, then show what the equivalence relation looks like using showER. Does it look right?

10. In equiv.cpp, write a contract, then an implementation, of the 'equivalent' function.

Now you have enough to use the automated tester. Run it. If there are errors, fix them. You can read testequiv.cpp to see what it is doing, but only change equiv.cpp to fix errors; changing the tester will not help since I will not use your modified tester when I grade your submission.

11. In equiv.cpp, write a contract, then an implementation, of the 'destroyER' function.

In: Computer Science

The following data pertain to products A and B, both of which are purchased by Susan....

The following data pertain to products A and B, both of which are purchased by Susan. A is on vertical axis and B is on horizontal axis. Initially, the prices of the products and quantities consumed are:
PA= $8, QA= 5, PB= $6, QB= 10.
Susan has $100 to spend per time period. After an increase in price of B, the prices and quantities consumed are:
PA= $8, QA= 4, PB = $9, QB= 7.5.
Assume that Susan maximizes utility under both price conditions above. Also, note that if after the price increase enough income were given back to Susan to put her back on the original indifference curve, she would consume this combination of A and B:
QA= 10,QB= 4
a. Determine the change in consumption rate of good B due to (1) the substitution effect and (2) the income effect.
b. Determine if product B is a normal, inferior, or Giffengood. Explain.

In: Economics

Suppose that you have the following production function: ? = (100?^1/3)*(?^2/3) Where k represents the units...

Suppose that you have the following production function: ? = (100?^1/3)*(?^2/3) Where k represents the units of capital employed at production, L is the number of labor hours employed for total production. The wage rate equals to $18 per hour. The cost of capital equals $2,000 per unit.

a) What are the returns of scale for this production function? Prove it

b) You are currently employing 100 hours of labor. Calculate your total costs, average cost and marginal costs of labor and capital if K=100 units.

c) Which input is more productive? Should you employ more labor or more capital?

d) Draw the production function, MPK and MPL for the different values of K and L.

In: Economics

Question 25 pts The hereditary/genetic material of living cells is Group of answer choices RNA DNA...

Question 25 pts

The hereditary/genetic material of living cells is

Group of answer choices

RNA

DNA

Either of the above, depending on the organism

Flag this Question

Question 26 pts

The genetic material of viruses is

Group of answer choices

RNA

DNA

Either of the above, depending on the virus

Flag this Question

Question 27 pts

The process in which cells take up free DNA from their environment is called

Group of answer choices

Transcription

Transformation

Translation

Transmutation

Question 28 pts

The Hershey-Chase experiment utilized bacteriophage to demonstrate that DNA, and not protein, is the genetic material by

Group of answer choices

Transforming bacteria and subjecting mice to different bacterial strains

Labeling proteins with 32P and nucleic acids with 35S

Using a combination of nucleases and nucleic acids under different conditions

Labeling nucleic acids with 32P and proteins with 35S

In: Biology

What is the KV in hand x-ray and why? Needs the Kilovoltage and why (radiographic factor)

What is the KV in hand x-ray and why?

Needs the Kilovoltage and why (radiographic factor)

In: Physics