Questions
A firm with a WACC of 13% is evaluating two projects, A and B, for this...

A firm with a WACC of 13% is evaluating two projects, A and B, for this year’s capital budget. The after-tax cash flows are depicted as follows: Project A 0 1 2 3 4 5 | | | | | | -6,000 2,200 2,200 2,200 2,200 2,200 Project B 0 1 2 3 4 5 | | | | | | -18,000 5,800 5,800 5,800 5,800 5,800 Calculate NPV, IRR (Hint: between 24.00% and 24.50% for Project A; between 18.00% and 18.50% for Project B), MIRR, payback, and discounted payback for each project. [All answers should be corrected to 2 decimal places.] Assuming the two projects are independent, which one(s) would you recommend? If the projects are mutually exclusive, which would you recommend?

In: Finance

What Happens to the Purchasing Value of Money during deflation? 1) Increases 2) Decreases 3) It...

What Happens to the Purchasing Value of Money during deflation?

1) Increases

2) Decreases

3) It changes but there is no way of knowing the direction or the magnitude of change.

4) No change, only the price changes.

Only 1 option is correct, please explain with reason.

In: Economics

I have a coin and I know that the probability p of flipping heads is either...

I have a coin and I know that the probability p of flipping heads is either 1/2 or 1/4. I flip the coin 3 times and I get THT. Use the maximum likelihood method to determine the actual value of p.

In: Statistics and Probability

The frequency distribution below shows the number of children in families at a church in Tucson....

The frequency distribution below shows the number of children in families at a church in Tucson.

Number of Children Frequency
0 6
1 12
2 11
3 6
4 3
5 1
6 0



The median number of children in a family is: ______________________

In: Statistics and Probability

Set up a for loop to print values from n down to 1 with at most...

  1. Set up a for loop to print values from n down to 1 with at most 5 values per line. For example, when n is 7 then the output is shown below:

7    6    5    4    3
2    1

C++ code

In: Computer Science

Consider a consumer with the Utility function: U = C^1/5 O^ 4/5 and facing a budget...

Consider a consumer with the Utility function: U = C^1/5 O^ 4/5 and facing a budget constraint: M ≥ PcC +PoO

Note: For this utility function MUC = (1/5)C^-4/5 O^ 4/5 and MUo = (4/5)C^1/5 O^ -1/5 Where C denotes the consumption of corn, and O denotes the consumption of other goods.

A) For corn, characterize the income elasticity of demand, the price elasticity of demand, the cross price elasticity of demand and explain what each represents. (You do not need to calculate each elasticity, just tell me if it is positive or negative.) Is corn a normal good?

B) Determine the indirect utility function for the consumer and describe what the indirect utility function represents. Suppose, as in C), PC = 1 and PO = 1. What is the value of the indirect utility function? Suppose PC increases to 2; calculate the new value for the indirect utility function. Explain why the indirect utility function increased or decreased

In: Economics

Introduction Write in C++ at the Linux command line a program that is the same as...

Introduction

Write in C++ at the Linux command line a program that is the same as the previous collection app project but now uses a class to store the items and also can save the items to a file that can be read back into the array by the user when the program is re-started.

You can use your project 1 submission as a starting point or you can do something new as long as it meets the listed requirements.

Again, try and keep it reasonably simple to do by the due date but still meets the requirements listed below. You will be graded mainly on how well you follow the listed requirements.

REQUIREMENTS

PLEASE SEE THE GENERAL REQUIREMENTS FOR FURTHER REQUIREMENTS NEEDED. BELOW IS NOT ALL THE REQUIREMENTS NEEDED IN YOUR CODE.

Your program should have as a minimum the following tasks:

a. Allow the user to add entries to the collection. Check for valid data and let the user re-enter if they enter invalid data. Please let the user know what is valid data. Remember that user input should NOT cause your program to malfunction or crash.

b. Allow the user to print out the entire collection. Should not print out blank entries or invalid entries.

c. Allow the user to delete an entry from the collection. Allow users to

choose which entry to delete. If the entry is not found, do print out an error message, don't just do nothing. You can ask the user to re-enter or you can just return to the main function.

d. Allow the user to read in items from a file. Ask the user for a file name, open the file and read in the items from the file into the array. f there are already items in the collection, append to the end of the array. If the file doesn't exist, print out an error message and return the main loop.

e. Allow the user to write out items to a file. Ask the user for a file name (if the file exists; just overwrite the file). The information should be written in a format that can be read back into the program when the user wants to read in the file. Basically, while grading your program I plan to create some items, write the items out to a file, exit the program, re-start the program, then read back in the items. If your program can't do this correctly, you will get points off.

Other tasks can be added but only if the above tasks are also present and working correctly. Extra tasks will be graded for completeness and correctness so make sure they work too.

The program also needs to have the following code structures:

a) An array of objects. The class needs at least 3 member variables. At least one member variable should be numeric (integer or floating point) and at least one member variable should be a string type (C-Strings or the builtin string class). Note that this class is for ONE and only ONE item in the list; don't store a list of items in this class.

b) The code for the class should be in two separate files: A header file (.h) and an implementation file (.cpp). These are in addition to the main.cpp file so in all you need to turn in at least three code files.

c) Member variables must be declared private. Only member functions can be declared public.

d) Must have a 'setter' and a 'getter' for each member variable. You can have other member functions in the class as long as they are doing something with the member variables for one item.

e) Must have at least a default constructor. You can have other parameterized constructors but at least the default one should be there. Initialize strings to an empty string and numbers to zero.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Example Output Runs
Here are 4 runs. Note that any files written out can be read back in when running the program again. Also, reading in will append to the end of the array.
----------------------
RUN 1
----------------------
*** BOOK COLLECTION ***
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
no books in collection
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
1
Enter file name? books.txt
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
---- 0 ----
title: The Name Of The Wind
author: Patrick Roth
year: 2007
---- 1 ----
title: Lord Of The Rings: The Fellowship of the Ring
author: J. R. R. Tolkien
year: 1954
---- 2 ----
title: Mistborn
author: Brandon Sanderson
year: 2006
---- 3 ----
title: A Game Of Thrones
author: George R. R. Martin
year: 1996
---- 4 ----
title: Harry Potter And The Sorcerer's Stone
author: J.K. Rowling
year: 1997
---- 5 ----
title: A Wizard of Earthsea
author: Ursula K. Leguin
year: 1968
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
3
enter title?
The Way of Kings
enter author?
Brandon Sanderson
enter year? (year should be larger than 0)
2011
Do you want to continue? ('y' or 'n')
n
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
---- 0 ----
title: The Name Of The Wind
author: Patrick Roth
year: 2007
---- 1 ----
title: Lord Of The Rings: The Fellowship of the Ring
author: J. R. R. Tolkien
year: 1954
---- 2 ----
title: Mistborn
author: Brandon Sanderson
year: 2006
---- 3 ----
title: A Game Of Thrones
author: George R. R. Martin
year: 1996
---- 4 ----
title: Harry Potter And The Sorcerer's Stone
author: J.K. Rowling
year: 1997
---- 5 ----
title: A Wizard of Earthsea
author: Ursula K. Leguin
year: 1968
---- 6 ----
title: The Way of Kings
author: Brandon Sanderson
year: 2011
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
2
Enter file name: books2.txt
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
---- 0 ----
title: The Name Of The Wind
author: Patrick Roth
year: 2007
---- 1 ----
title: Lord Of The Rings: The Fellowship of the Ring
author: J. R. R. Tolkien
year: 1954
---- 2 ----
title: Mistborn
author: Brandon Sanderson
year: 2006
---- 3 ----
title: A Game Of Thrones
author: George R. R. Martin
year: 1996
---- 4 ----
title: Harry Potter And The Sorcerer's Stone
author: J.K. Rowling
year: 1997
---- 5 ----
title: A Wizard of Earthsea
author: Ursula K. Leguin
year: 1968
---- 6 ----
title: The Way of Kings
author: Brandon Sanderson
year: 2011
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
6
Thank you for using our program!
----------------------
RUN 2
----------------------
*** BOOK COLLECTION ***
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
no books in collection
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
1
Enter file name? books2.txt
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
4
---- 0 ----
title: The Name Of The Wind
author: Patrick Roth
year: 2007
---- 1 ----
title: Lord Of The Rings: The Fellowship of the Ring
author: J. R. R. Tolkien
year: 1954
---- 2 ----
title: Mistborn
author: Brandon Sanderson
year: 2006
---- 3 ----
title: A Game Of Thrones
author: George R. R. Martin
year: 1996
---- 4 ----
title: Harry Potter And The Sorcerer's Stone
author: J.K. Rowling
year: 1997
---- 5 ----
title: A Wizard of Earthsea
author: Ursula K. Leguin
year: 1968
---- 6 ----
title: The Way of Kings
author: Brandon Sanderson
year: 2011
== Main Menu ==
1 -> read in books from a file
2 -> write out books to a file
3 -> add books to the collection
4 -> print all books
5 -> delete a book from the collection
6 -> quit the program
Please enter a choice (1 to 6)
6
Thank you for using our program!
------------------

In: Computer Science

Problem 8-6 Cullumber Company is a multi product firm. Presented below is information concerning one of...

Problem 8-6 Cullumber Company is a multi product firm. Presented below is information concerning one of its products, the Hawkeye. Date Transaction Quantity Price/Cost 1/1 Beginning inventory 2,400 $16 2/4 Purchase 3,400 24 2/20 Sale 3,900 41 4/2 Purchase 4,400 31 11/4 Sale 3,600 45 Your answer is correct. Calculate average-cost per unit. (Round answer to 4 decimal places, e.g. 2.7613.) Average-cost per unit $ Show Solution Link to Text Your answer is partially correct. Try again. Compute cost of goods sold, assuming Cullumber uses: (Round average cost per unit to 4 decimal places, e.g. 2.7631 and final answers to 0 decimal places, e.g. 6,548.) Cost of goods sold (a) Periodic system, FIFO cost flow $ (b) Perpetual system, FIFO cost flow $ (c) Periodic system, LIFO cost flow $ (d) Perpetual system, LIFO cost flow $ (e) Periodic system, weighted-average cost flow $ (f) Perpetual system, moving-average cost flow $

In: Accounting

A paint booth operation runs 5 days per week. As the production supervisor, you track the...

A paint booth operation runs 5 days per week. As the production supervisor, you track the number of errors produced by the paint booth by week. Errors can be of any type (over spray, inadequate coverage, etc.), may occur on one or more pieces of equipment, and the number and type of equipment painted varies greatly. Ten weeks of data were collected and the number of errors identified are found in the following table. Construct a control chart with 3-sigma control limits to determine if the process is in control. Week Number of errors 1 5 2 4 3 5 4 4 5 4 6 3 7 0 8 2 9 0 10 3 1. What are the CL, UCL, and LCL? 2. Draw the control chart and plot the 10-weeks of data? 3. Does the control chart suggest that the paint booth operation may be out-of-control? Explain. 4. After investigating, you determine that there is a special cause. The paint booth had become wore and was overhauled after Week 5. What, if anything, should you do to continue monitoring the paint booth operation? Please demonstrate what should be done.

In: Operations Management

Sheridan Company is a multiproduct firm. Presented below is information concerning one of its products, the...

Sheridan Company is a multiproduct firm. Presented below is information concerning one of its products, the Hawkeye. Date Transaction Quantity Price/Cost 1/1 Beginning inventory 1,700 $15 2/4 Purchase 2,700 22 2/20 Sale 3,200 37 4/2 Purchase 3,700 28 11/4 Sale 2,900 40 Incorrect answer iconYour answer is incorrect. Calculate average-cost per unit. (Round answer to 4 decimal places, e.g. 2.7613.) Average-cost per unit $ 21.1728 eTextbook and Media Incorrect answer iconYour answer is incorrect. Compute cost of goods sold, assuming Sheridan uses: (Round average cost per unit to 4 decimal places, e.g. 2.7631 and final answers to 0 decimal places, e.g. 6,548.) Cost of goods sold (a) Periodic system, FIFO cost flow $ (b) Perpetual system, FIFO cost flow $ (c) Periodic system, LIFO cost flow $ (d) Perpetual system, LIFO cost flow $ (e) Periodic system, weighted-average cost flow $ (f) Perpetual system, moving-average cost flow $

In: Accounting