Tony Gaddis C++ Conference Sessions An upcoming conference about C/C++ programming has three sessions planned:
- A session on the new features of C++ 17
- A session on functional programming in C/C++
- A session on lamda functions
Attendees can subscribe for any session. The organizers want to keep track of which attendees are attending which session.
Write a program that stores this information in a two-dimensional array of Booleans, where each row represents an attendee and each column represents their subscription for a session. You can restrict the program to seven attendees, resulting in a 7X3 array. The program should first have the user input the data for each attendee. Write two functions that take the array as their argument. One function should print out the number of people in each session and the other should return the number of people who subscribed to all sessions.
In: Computer Science
In: Finance
In: Math
Sander is setting up a recording studio which will have an annual revenue of $80,000 and annual cost of $40,000. The studio will require an initial investment of $20,000. Sander’s discount rate is 10%, and income tax where he lives, is 40%. In the investment year, depreciation on all items is 50%, then 30% the following year, and 20% in the next year, which is the end of the schedule. What is the net present value after two years of recording?
In: Accounting
Some of the key ratios for Palmerston plc and its main competitor Glebe plc are as follows.
Palmerston Glebe
Gearing 70% 10%
ROCE 25% 15%
Gross profit 40% 50%
Receivables’ collection 5 days 35 days
Payables’ payment 30 days 30 days
Explain why analysts might consider each of the ratios above to be useful. Use the ratios above to assess the financial performance and financial position of the two companies.
In: Accounting
Suppose you play rock paper scissors against a computer:
*you gain $1 for each win
*you lose $1 for each lost
if it is a tie, nothing happens
you choose rock 50% of the time and the others 25% of the time
let x be a random variable that represents the amount of money you earn after one game.
(a) find the probability distribution of X
(b) what is your average payoff after 20 games?
(c) what is the standard deviation of the payoff after 20 games?
In: Statistics and Probability
The information in the table below shows the total market demand
for Good X. Assume the marginal cost of providing Good X is
zero.
|
Quantity |
Price |
|
4 |
$ 40 |
|
5 |
$ 35 |
|
6 |
$ 30 |
|
7 |
$ 25 |
|
8 |
$ 20 |
|
9 |
$ 15 |
|
10 |
$ 10 |
Refer to the table above. What is the Nash
Equilibrium market quantity produced in a duopoly market?
| 8 |
| 5 |
| 7 |
| 6 |
| 4 |
In: Economics
1. Internal Rate of Return Method—Two Projects
Munch N’ Crunch Snack Company is considering two possible investments: a delivery truck or a bagging machine. The delivery truck would cost $44,209.44 and could be used to deliver an additional 40,000 bags of pretzels per year. Each bag of pretzels can be sold for a contribution margin of $0.38. The delivery truck operating expenses, excluding depreciation, are $0.52 per mile for 14,000 miles per year. The bagging machine would replace an old bagging machine, and its net investment cost would be $54,765. The new machine would require three fewer hours of direct labor per day. Direct labor is $15 per hour. There are 250 operating days in the year. Both the truck and the bagging machine are estimated to have seven-year lives. The minimum rate of return is 9%. However, Munch N’ Crunch has funds to invest in only one of the projects.
| Present Value of an Annuity of $1 at Compound Interest | |||||
| Year | 6% | 10% | 12% | 15% | 20% |
| 1 | 0.943 | 0.909 | 0.893 | 0.870 | 0.833 |
| 2 | 1.833 | 1.736 | 1.690 | 1.626 | 1.528 |
| 3 | 2.673 | 2.487 | 2.402 | 2.283 | 2.106 |
| 4 | 3.465 | 3.170 | 3.037 | 2.855 | 2.589 |
| 5 | 4.212 | 3.791 | 3.605 | 3.352 | 2.991 |
| 6 | 4.917 | 4.355 | 4.111 | 3.784 | 3.326 |
| 7 | 5.582 | 4.868 | 4.564 | 4.160 | 3.605 |
| 8 | 6.210 | 5.335 | 4.968 | 4.487 | 3.837 |
| 9 | 6.802 | 5.759 | 5.328 | 4.772 | 4.031 |
| 10 | 7.360 | 6.145 | 5.650 | 5.019 | 4.192 |
a. Compute the internal rate of return for each investment. Use the above table of present value of an annuity of $1. If required, round your present value factor answers to three decimal places and internal rate of return to the nearest percent.
| Delivery Truck | Bagging Machine | |
| Present value factor | ||
| Internal rate of return | % | % |
2.
Net Present Value Method and Present Value Index
Diamond and Turf Inc. is considering an investment in one of two machines. The sewing machine will increase productivity from sewing 110 baseballs per hour to sewing 198 per hour. The contribution margin per unit is $0.38 per baseball. Assume that any increased production of baseballs can be sold. The second machine is an automatic packing machine for the golf ball line. The packing machine will reduce packing labor cost. The labor cost saved is equivalent to $20 per hour. The sewing machine will cost $167,400, have a six-year life, and will operate for 1,400 hours per year. The packing machine will cost $85,800, have a six-year life, and will operate for 1,200 hours per year. Diamond and Turf seeks a minimum rate of return of 12% on its investments.
| Present Value of an Annuity of $1 at Compound Interest | |||||
| Year | 6% | 10% | 12% | 15% | 20% |
| 1 | 0.943 | 0.909 | 0.893 | 0.870 | 0.833 |
| 2 | 1.833 | 1.736 | 1.690 | 1.626 | 1.528 |
| 3 | 2.673 | 2.487 | 2.402 | 2.283 | 2.106 |
| 4 | 3.465 | 3.170 | 3.037 | 2.855 | 2.589 |
| 5 | 4.212 | 3.791 | 3.605 | 3.353 | 2.991 |
| 6 | 4.917 | 4.355 | 4.111 | 3.785 | 3.326 |
| 7 | 5.582 | 4.868 | 4.564 | 4.160 | 3.605 |
| 8 | 6.210 | 5.335 | 4.968 | 4.487 | 3.837 |
| 9 | 6.802 | 5.759 | 5.328 | 4.772 | 4.031 |
| 10 | 7.360 | 6.145 | 5.650 | 5.019 | 4.192 |
a. Determine the net present value for the two machines. Use the table of present values of an annuity of $1 above. Round to the nearest dollar.
| Sewing Machine | Packing Machine | |
| Present value of annual net cash flows | $ | $ |
| Amount to be invested | $ | $ |
| Net present value | $ | $ |
b. Determine the present value index for the two machines. If required, round your answers to two decimal places.
| Sewing Machine | Packing Machine | |
| Present value index |
3.
Net Present Value—Unequal Lives
Bunker Hill Mining Company has two competing proposals: a processing mill and an electric shovel. Both pieces of equipment have an initial investment of $625,304. The net cash flows estimated for the two proposals are as follows:
| Net Cash Flow | ||||
| Year | Processing Mill | Electric Shovel | ||
| 1 | $213,000 | $266,000 | ||
| 2 | 190,000 | 247,000 | ||
| 3 | 190,000 | 228,000 | ||
| 4 | 151,000 | 234,000 | ||
| 5 | 115,000 | |||
| 6 | 96,000 | |||
| 7 | 83,000 | |||
| 8 | 83,000 | |||
The estimated residual value of the processing mill at the end of Year 4 is $270,000.
| Present Value of $1 at Compound Interest | |||||
| Year | 6% | 10% | 12% | 15% | 20% |
| 1 | 0.943 | 0.909 | 0.893 | 0.870 | 0.833 |
| 2 | 0.890 | 0.826 | 0.797 | 0.756 | 0.694 |
| 3 | 0.840 | 0.751 | 0.712 | 0.658 | 0.579 |
| 4 | 0.792 | 0.683 | 0.636 | 0.572 | 0.482 |
| 5 | 0.747 | 0.621 | 0.567 | 0.497 | 0.402 |
| 6 | 0.705 | 0.564 | 0.507 | 0.432 | 0.335 |
| 7 | 0.665 | 0.513 | 0.452 | 0.376 | 0.279 |
| 8 | 0.627 | 0.467 | 0.404 | 0.327 | 0.233 |
| 9 | 0.592 | 0.424 | 0.361 | 0.284 | 0.194 |
| 10 | 0.558 | 0.386 | 0.322 | 0.247 | 0.162 |
Determine which equipment should be favored, comparing the net present values of the two proposals and assuming a minimum rate of return of 15%. Use the present value table appearing above.
| Processing Mill | Electric Shovel | |
| Present value of net cash flow total | $ | $ |
| Less amount to be invested | $ | $ |
| Net present value | $ | $ |
In: Finance
Question 1 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
Is it possible that the two electric and magnetic forces between the wires cancel out?
Question 1 options:
|
Yes if they have the same sign of charge |
|
|
No |
|
|
Yes if they have different charge magnitudes |
|
|
Yes |
Question 2 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the electric force between the two wires?
Question 2 options:
|
No force |
|
|
The wires repel each other |
|
|
Both forces have the same magnitude |
|
|
The wires attract each other |
|
|
One wire attracts the other repels |
Question 3 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the strength of the magnetic force per unit length between the two wires?
Question 3 options:
|
more than 1nN/m |
|
|
less than 1N |
|
|
less than 1nN/m |
|
|
more than 1 N |
Question 4 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the magnetic force between the two wires?
Question 4 options:
|
They attract each other |
|
|
The two forces are equal in magnitude |
|
|
The two forces are not equal in magnitude |
|
|
No force |
|
|
They repeal each other |
Question 5 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
How fast would the speed need to be so that the magnitude of the electric force equals the magnitude of the magnetic force between the two wires?
Question 5 options:
|
Close to the speed of light |
|
|
Below 1km/s |
|
|
It is impossible |
|
|
At much more than 1 km/s |
Question 6 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the magnitude of the magnetic field in the middle between the two wires?
Question 6 options:
|
between 10nT and 100nT |
|
|
below 100nT |
|
|
between 50nT and 1microT |
|
|
between 50 microT and 0.1mT |
|
|
between 0.1mT and 1T |
|
|
between 0.5microT and 10microT |
Question 7 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the electric field magnitude in the middle between the 2 wires?
Question 7 options:
|
more than GV/m |
|
|
zero |
|
|
more than kV/m |
|
|
more than MV/m |
|
|
less than kV |
|
|
less than GN/C |
Question 8 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the magnetic field half-way between the two wires (in the middle section of the wires)?
Question 8 options:
|
right |
|
|
left |
|
|
up |
|
|
Other |
|
|
down |
Question 9 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the electric field direction halfway between the two wires?
Question 9 options:
|
It is zero |
|
|
It points neither towards nor away from me |
|
|
It points away from me |
|
|
It points towards me |
In: Physics
Question 1 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
Is it possible that the two electric and magnetic forces between the wires cancel out?
Question 1 options:
|
Yes if they have the same sign of charge |
|
|
No |
|
|
Yes if they have different charge magnitudes |
|
|
Yes |
Question 2 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the electric force between the two wires?
Question 2 options:
|
No force |
|
|
The wires repel each other |
|
|
Both forces have the same magnitude |
|
|
The wires attract each other |
|
|
One wire attracts the other repels |
Question 3 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the strength of the magnetic force per unit length between the two wires?
Question 3 options:
|
more than 1nN/m |
|
|
less than 1N |
|
|
less than 1nN/m |
|
|
more than 1 N |
Question 4 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the magnetic force between the two wires?
Question 4 options:
|
They attract each other |
|
|
The two forces are equal in magnitude |
|
|
The two forces are not equal in magnitude |
|
|
No force |
|
|
They repeal each other |
Question 5 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
How fast would the speed need to be so that the magnitude of the electric force equals the magnitude of the magnetic force between the two wires?
Question 5 options:
|
Close to the speed of light |
|
|
Below 1km/s |
|
|
It is impossible |
|
|
At much more than 1 km/s |
Question 6 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the magnitude of the magnetic field in the middle between the two wires?
Question 6 options:
|
between 10nT and 100nT |
|
|
below 100nT |
|
|
between 50nT and 1microT |
|
|
between 50 microT and 0.1mT |
|
|
between 0.1mT and 1T |
|
|
between 0.5microT and 10microT |
Question 7 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the electric field magnitude in the middle between the 2 wires?
Question 7 options:
|
more than GV/m |
|
|
zero |
|
|
more than kV/m |
|
|
more than MV/m |
|
|
less than kV |
|
|
less than GN/C |
Question 8 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. For the question pick all the right answers (there can be more than one correct answer).
What is the direction of the magnetic field half-way between the two wires (in the middle section of the wires)?
Question 8 options:
|
right |
|
|
left |
|
|
up |
|
|
Other |
|
|
down |
Question 9 (1 point)
We have two very long wires, which are parallel to each other pointing to the right in front of us. The pair of wire is horizontal. The wire closest to us carries a charge per unit length of 1mC/m and the other the opposite charge. The two wires are 1m apart and both move together at 100m/s along the wire to the right. We are looking at what happens in the middle region of the two wires (not the end). For the question pick all the right answers (there can be more than one correct answer).
What is the electric field direction halfway between the two wires?
Question 9 options:
|
It is zero |
|
|
It points neither towards nor away from me |
|
|
It points away from me |
|
|
It points towards me |
Previous PageNext Page
In: Physics