| 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 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 describe how they might be overcome.
In: Accounting
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.
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.
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.
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.
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.
If x is the leader of its equivalence class then boss[x] = 0, indicating that x has no boss.
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.
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.
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.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.
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.
destroyER(R) deallocates R.
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.
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.cppThen 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. 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 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
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)
In: Physics
A binomial tree with one-month time steps is used to value an index option. The interest rate is 3% per annum and the dividend yield is 1% per annum. The volatility of the index is 16%. What is the probability of an up movement?
|
0.4704 |
||
|
0.5065 |
||
|
0.5592 |
||
|
0.5833 |
In: Finance
Consider and discuss how technology, population growth, and arising trends can impact various professions. Discuss how law enforcement may change as globalization continues.
In: Economics
What does RAID stand for and what are some commonly used RAID levels? Discuss these as they relate to a DBMS and provide your recommendations.
In: Computer Science
1. Describe how the causes of sickness and disease were explained in ancient times, prior to the invention of the microscope.
2. Give two examples of foods that have historically been produced by humans with the aid of microbes.
3. What is the main difference between prokaryotes and eukaryotes?
4. Name two types of protists and two types of fungi.
5. How do viruses differ from other organisms?
In: Biology
The Compton Effect. X-rays of wavelength ? = 61.0 pm are scattered from a thin foil of boron. What is the wavelength of the Compton scattered photons detected at the following angles (relative to the incident beam)? (Your answer should use three significant figures.)
(a) 15
In: Physics
briefly describe the cause of the turbulence associated with each of the 4 heart sounds:
1st heart sound 2nd heart sound 3rd heart sound 4th heart sound
In: Anatomy and Physiology
1) find the vector sum of the three vectors A=0.98N (2cm) at 30˚, B=1.96N (4cm) at 90˚, C=2.94 (6cm) at 225˚. Record the results in graphical (head to tail) and analytical methods.
2) Add the following four displacement vectors using the analytic method. report the x and y components of the resultant, the magnitude of the resultant, and the direction of the resultant. show all work.
A= 5.0 m at 35˚
B= 7.0 m at 90˚
C= 3.0 m at 225˚
D= 2.4 m at 347˚
3)What possible sources of error can you identify for the graphical method of vector addition?
4) What possible sources of error can you identify for the analytical method of vector addition?
5) what possible sources of error can you identify for the experimental method of vector addition?
6) of the graphical and analytical methods, which one do you consider to be more accurate? Why?
7) Why is it not possible to experimently determine the esultant vector directly from the force table?
In: Physics