Questions
SPSS Module 5 Assignment—Independent t Test General Instructions:   In this assignment, we will be examining 2...

SPSS Module 5 Assignment—Independent t Test

General Instructions:   In this assignment, we will be examining 2 Independent t tests and interpreting the results. As with previous assignments, the Aspelmeier and Pierce texts does a wonderful job of explaining how to actually run the tests in Chapter 7. Follow their instructions for interpretation of these test as you complete this assignment. Once again I have run the test and given you the SPSS output you will need to complete this assignment.

Independent t test:

The researchers want to compare older females to younger females on their ratings of Loyalty. Also, researchers want to compare Freshman and Sophomores on their reported number of friends. As we learned from the text and the PPTs, we know these research situations require the use of the Independent t Tests. Here are the researchers’ hypotheses:

The researchers think that older females will report more loyalty with their closest female friend than will younger females.

The researchers also believe that Freshmen will report having more friends that Sophomores.

Part 1—The Analyses

For this assignment, I’ve run 2 Independent t Tests: one comparing older and younger females on loyalty and one comparing Freshmen and Sophomores on number of friends.

Output:

Hypothesis One Independent T-Test

Group Statistics

agegrp

N

Mean

Std. Deviation

Std. Error Mean

Loyalty

1.00

47

59.62

7.070

1.031

2.00

53

61.38

4.486

.616

Independent Samples Test

Levene's Test for Equality of Variances

t-test for Equality of Means

F

Sig.

t

df

Sig. (2-tailed)

Mean Difference

Std. Error Difference

95% Confidence Interval of the Difference

Lower

Upper

Loyalty

Equal variances assumed

3.504

.064

-1.504

98

.136

-1.760

1.171

-4.083

.563

Equal variances not assumed

-1.465

76.128

.147

-1.760

1.201

-4.153

.632

Hypothesis Two Independent T-Test

Group Statistics

Year in College

N

Mean

Std. Deviation

Std. Error Mean

Number of Female Friends

Freshman

59

5.42

3.024

.394

Sophomore

41

5.10

2.836

.443

Independent Samples Test

Levene's Test for Equality of Variances

t-test for Equality of Means

F

Sig.

t

df

Sig. (2-tailed)

Mean Difference

Std. Error Difference

95% Confidence Interval of the Difference

Lower

Upper

Number of Female Friends

Equal variances assumed

.031

.860

.544

98

.588

.326

.600

-.864

1.516

Equal variances not assumed

.550

89.612

.583

.326

.593

-.851

1.503

Part 2—The APA Write-Up Instructions

               As with previous assignments, the American Psychological Association (APA) has standards for how statistical results should be presented. While the actual word choice varies, there are several essential components that are common among all presentations of statistical results and interpretations. Use the following instructions for ALL APA write-ups required for this course:

For each analysis, use the following steps to write a complete description of results in proper APA format.

State what hypothesis was tested.

State what test was used.

What decision did you make? Reject the null or retain (fail to reject) the null.

Were the groups significantly different from each other?

Report the means and standard deviations for each group.

Put numbers in APA format:

General Format: symbol for the test (df)= obtained value, p> or < significance level

Specific for t Tests: t(99)=1.98, p<.05

After this you need to put either equal variances assumed OR equal variances not assumed depending on the results of the Levene’s Test

Report Effect Size (if known)

Example:

        Adolescent males were expected to score significantly higher on a measure of aggression than were adolescent females. An independent t test was used to test the hypothesis leading to the rejection of the null hypothesis. Adolescent males (M=14.67, SD=2.35) were significantly more aggressive than were adolescent females (M=9.65, SD=1.59), t(78)=3.93, p<.05, equal variance assumed.

Since we ran 2 analyses, you will do 2 write-ups for this assignment. Remember to use chapter 7

Hypothesis One: The researchers think that older females will report more loyalty with their closest female friend that will younger females.

Answer the following questions

What is the null hypothesis tested?__________________________

Can we assume equal variances? (Was the Levene’s Test for Equality of Variance significant or not significant?)

Write up the results for the Independent t Test for Hypothesis One below:

Hypothesis Two: The researchers also believe that Freshmen will report having more friends that Sophomores.

Answer the following questions

What is the null hypothesis tested?__________________________

Can we assume equal variances? (Was the Levene’s Test for Equality of Variance significant or not significant?)

Write up the results for the Independent t Test for Hypothesis Two below:

In: Statistics and Probability

Programming Project 3 Home Sales Program Behavior This program will analyze real estate sales data stored...

Programming Project 3

Home Sales

Program Behavior

This program will analyze real estate sales data stored in an input file. Each run of the program should analyze one file of data. The name of the input file should be read from the user.

Here is a sample run of the program as seen in the console window. User input is shown in blue:

Let's analyze those sales!

Enter the name of the file to process? sales.txt

Number of sales: 6

Total: 2176970

Average: 362828

Largest sale: Joseph Miller 610300

Smallest sale: Franklin Smith 199200

Now go sell some more houses!

Your program should conform to the prompts and behavior displayed above. Include blank lines in the output as shown.

Each line of the data file analyzed will contain the buyer's last name, the buyer's first name, and the sale price, in that order and separated by spaces. You can assume that the data file requested will exist and be in the proper format.

The data file analyzed in that example contains this data:

Cochran Daniel 274000
Smith Franklin 199200
Espinoza Miguel 252000
Miller Joseph 610300
Green Cynthia 482370
Nguyen Eric 359100

You can download that sample data file here to test your program, but your program should process any data file with a similar structure. The input file may be of any length and have any filename. You should test your program with at least one other data file that you make.

Note that the average is printed as an integer, truncating any fractional part.

Your program should include the following functions:

read_data - This function should accept a string parameter representing the input file name to process and return a list containing the data from the file. Each element in the list should itself be a list representing one sale. Each element should contain the first name, last name, and purchase price in that order (note that the first and last names are switched compared to the input file). For the example given above, the list returned by the read_data function would be:

[['Daniel', 'Cochran', 274000], ['Franklin', 'Smith', 199200], ['Miguel', 'Espinoza', 252000], ['Joseph', 'Miller', 610300], ['Cynthia', 'Green', 482370], ['Eric', 'Nguyen', 359100]]

Use a with statement and for statement to process the input file as described in the textbook.

compute_sum - This function should accept the list of sales (produced by the read_data function) as a parameter, and return a sum of all sales represented in the list.

compute_avg - This function should accept the list of sales as a parameter and return the average of all sales represented in the list. Call the compute_sum function to help with this process.

get_largest_sale - This function should accept the list of sales as a parameter and return the entry in the list with the largest sale price. For the example above, the return value would be ['Joseph', 'Miller', 610300].

get_smallest_sale - Like get_largest_sale, but returns the entry with the smallest sale price. For the example above, the return value would be ['Franklin', 'Smith', 199200].

Do NOT attempt to use the built-in functions sum, min, or max in your program. Given the structure of the data, they are not helpful in this situation.

main - This function represents the main program, which reads the file name to process from the user and, with the assistance of the other functions, produces all output. For this project, do not print output in any function other than main.

Other than the definitions of the functions described above, the only code in the module should be the following, at the end of the file:

if __name__ == '__main__':
main()

That if statement keeps your program from being run when it is initially imported into the Web-CAT test environment. But your program will run as normal in Thonny. Note that there are two underscore characters before and after name and main.

Include an appropriate docstring comment below each function header describing the function.

Do NOT use techniques or code libraries that have not been covered in this course.

Include additional hashtag comments to your program as needed to explain specific processing.

A Word about List Access

A list that contains lists as elements operates the same way that any other lists do. Just remember that each element is itself a list. Here's a list containing three elements. Each element is a list containing integers as elements:

my_list = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]

So my_list[0] is the list [1, 2, 3, 4] and my_list[2] is [9, 10, 11, 12].

Since my_list[2] is a list, you could use an index to get to a particular value. For instance, my_list[2][1] is the integer value 10 (the second value in the third list in my_list).

In this project, the sales list is a list of lists. When needed, you can access a particular value (first name, last name, or sales price) from a particular element in the sales list.

In: Computer Science

Long Integer Addition For this assignment you are to write a class that supports the addition...

Long Integer Addition

For this assignment you are to write a class that supports the addition of extra long integers, by using linked-lists. Longer than what is supported by Java's built-in data type, called long.

Your program will take in two strings, consisting of only digits, covert each of them to a linked-list that represents an integer version on that string. Then it will create a third linked-list that represents the sum of both of the linked lists. Lastly, it will print out the result of the sum.

Conceptual Example
For the string: "12", create a list: head->1->2->null
For the string: "34", create a list: head->3->4->null
Add the two lists to create a third list: head->4->6->null
print the resulting linked list as "46"
Where "->" represents a link.

Keep in mind that the conceptual example above is conceptual. It does suggest a certain implementation. However as you read on you will see that you have several options for implementing your solution. You need not use the suggested implementation above.

For this class you are to implement a minimum of three methods. They are:

  1. A method called makeSDList() that takes in a string, consisting only of digits, as an argument, and creates and returns a linked-link representation of the argument string.

    The method has the following header:

    SDList makeSDList(String s) { }

    where s is a string, and SDList is the class name of the linked list.  

  2. A method called addLists() that takes takes two lists, adds them together, and creates and returns a list that represents the sum of both argument lists.

    The method has the following header:

    SDList addLists(SDList c) { }

    wherec  linked-list of type SDList .

  3. A method called displayList() that takes takes a list, prints the value of each digit of the list.  

    The method has the following header:

    void displayList() { }

Programming Notes

  1. You need not add any methods you don't need.
  2. You can add any methods use wish.
  3. You can use any type of linked list like: singly-linked, doubly-linked, circular, etc.
  4. You can choose you own list implementation such-as with or without sentinels, with head and/or tail points, etc.
  5. Do not assume any maximum length for either addend.
  6. You can assume that an each addend is a least one digit long.
  7. You need not test for the null or empty string ("") cases.
  8. The addends need not be the same length.

Programming Rules:

  1. You are not allowed to change the signature of the three methods above.
  2. You are not allowed to use arrays or ArrayLists anywhere in your solution.
  3. You are not allowed to use any Java built-in (ADTs), such as Lists, Sets, Maps, Stacks, Queues, Deques, Trees, Graphs, Heaps, etc. Or make any class that inherits any of those ADTs.
  4. You are to create your own node and list class. For your node and list class you can use the code that was used in the book, video and lecture notes related to the node and lists class examples.
  5. You are only allowed to have one class for your nodes and one class for your lists.
  6. You are not allowed to use Java Generics.
  7. You can use any data type to represent the digits (in the node). However, each node must represent one and only one digit.
  8. If hard-coding detected in any part of your solution your score will be zero for the whole assignment.

Submission Rules:

1. Submit only one Homework5.java file for all test cases. The starter file is names Homework5a.java so you will need rename the file before you begin submitting your solution.

2. Anything submitted to Mimir is considered to be officially submitted to me and is considered to be 100% your work. Even if it is not your last planned submission.

3. Any extra testing code that you wrote and used to do your own testing should be deleted from the file that gets used in the final grading. I emphasize the word deleted. Commenting out code is not sufficient and not considered deleted. It must be completely removed. English comments written to explain your code are perfectly fine.

STARTER CODE

import java.util.Scanner;  // Import the Scanner class

public class Homework5a {

  

  public static void main(String[] args) {

    SDList x, y, z;

    String a, b;

    Scanner input = new Scanner(System.in);  // Create a Scanner object

    System.out.print("A: ");

    a = input.nextLine();

    x = makeSDList(a);               // convert first string to a linked list

    x.displayList();                 // call function that displays list x

    System.out.print("B: ");   

    b = input.nextLine();

    y = makeSDList(b);               // convert second string to a linked list

    y.displayList();                 // call function that displays list z

    z = x.addLists(y);               // add lists x & y and store result in list y

    System.out.print("A+B: ");

    z.displayList();                 // call function that displays list z

  }

   

  public static SDList makeSDList(String s) {

  // put your solution here

    return null;

  }

}

class SDList {

  // put your solution here

  

  public SDList addLists(SDList c) {   

  // put your solution here

    return null; //replace if necessary

  }

  

  public void displayList() {

  // put your solution here

  }

}

In: Computer Science

I just want some ideas on how to write this essay, for instance, explanation of the...

I just want some ideas on how to write this essay, for instance, explanation of the case and what are some possible solution. thanks

“What Should I do, my friend?”

A former classmate of yours, Liz Theranos, has landed an internship position in the accounting department at Brompton Travels, a small closely held company. She tells you at one of your regular get-togethers at the local coffee shop, that she is excited and anxious to make a good impression as an accounting intern with the company because she wants to be offered a fulltime job at this company when she completes her internship.

The company’s operations are all related to tourism, and it has, as its principal asset, a large ocean front hotel. The company is primarily owned by the two directors who are brothers. Both of the brothers are actively engaged in the day-to-day running of the business. Liz gets along well with the directors and the small accounting staff even though she is only employed as an intern. Liz also is aware that the company had faced some serious cash flow difficulties shortly before she was appointed as an accounting intern. However, since Liz Theranos started working with the head accountant a remortgaging arrangement has, apparently, eased the financial pressure.

Recently, one of the managing brothers comes to Liz with a company check for $5,040 made payable to a design company, which he has already signed. Since the head accountant is currently on vacation for the next two weeks, and the internal policy requires that checks over $2,500 be signed by the head accountant and a director, he asks for Liz’s counter-signature. He explains that it is the deposit for the design work and furnishings for some of the hotel bedrooms. There is a formal invoice from a design studio, but you are still surprised as the head accountant before leaving on vacation had not made you aware that any such outlays had been planned. Nevertheless, given the explanation by the director and the supporting invoice, you counter-sign the check.

Later that day, out of curiosity, Liz decides to do some research into the design studio. She finds that the design company that has had a high level of indebtedness in the past. Liz also sees that the company secretary appears to be the daughter of one of the directors for whom she works. Two days later, the same managing director comes to you with another check, this time for $26,500, again needing only your counter-signature. There is a supporting invoice from the same design studio. You are hesitant, and the managing director seeing your hesitancy, explains that he is only asking you to counter-sign the check because the head accountant is still on vacation. He says that it is important to submit the check promptly so that it may be banked before April 15th. You ask why there is such urgency, particularly as there is no evidence of any design work having started. The managing director laughs and replies that the money should be 4/18 back in the hotel’s bank account by June 1 st . He further adds that the checks are needed urgently to settle some outstanding directors’ loan accounts at the design studio. Once again he asks you to not worry because the money should be returned to the hotel company account soon. Liz, once again reluctantly countersigns the check

Liz Theranos, your friend, whom you recall as always having high principles and Integrity, calls you to meet for coffee because she needs to speak confidentially with a good friend about something at work that’s bothering her. You agree to meet Liz for coffee.

Over coffee Liz shares with you the situation described above. Both you and Liz, recall Prof. Woods’ ethics class that you took in college and continue discussing how one can act honestly with regard to the dilemma posed by the recent director’s request and accounting functions at Liz Theranos’ employer? You immediately suggest to Liz that she should immediately quit. Liz tells you that she has seriously thought about quitting. However, besides needing the income, she has decided to stay because she really wants to get a full-time position with the company. The hotel/travel industry is the industry she really wants to work in as an accountant and after a couple of year’s full-time employment with Brompton Travel she would be in an ideal position to move on by getting a job with one of the major hotel chains. After a long stare, you tell her you understand and will help her structure a response that deals with the dilemma

Required:

? Help your friend Liz Theranos, who is just an intern at the company, deal with this ethical issue.

? Within a professional, word typed, 11-12 fonts, single-line spaced document

? Explain the ethical issues and how she should respond and, possible ramifications of Liz responding to this issue.

? Your final paper must be between 500-700 words.

In: Accounting

Jackson Daniels graduated from Lynchberg State College two years ago. Since graduating from college, he has...

Jackson Daniels graduated from Lynchberg State College two years ago. Since graduating from college, he has worked in the accounting department of Lynchberg Manufacturing. Daniels was recently asked to prepare a sales budget for the year 2016. He conducted a thorough analysis and came out with projected sales of 250,000 units of product. That represents a 25 percent increase over 2015. Daniels went to lunch with his best friend, Jonathan Walker, to celebrate the completion of his first solo job. Walker noticed Daniels seemed very distant. He asked what the matter was. Daniels stroked his chin, ran his hand through his bushy, black hair, took another drink of scotch, and looked straight into the eyes of his friend of 20 years. “Jon, I think I made a mistake with the budget.” “What do you mean?” Walker answered. “You know how we developed a new process to manufacture soaking tanks to keep the ingredients fresh?” “Yes,” Walker answered. “Well, I projected twice the level of sales for that product than will likely occur.” “Are you sure?” Walker asked. “I checked my numbers. I’m sure. It was just a mistake on my part.” Walker asked Daniels what he planned to do about it. “I think I should report it to Pete. He’s the one who acted on the numbers to hire additional workers to produce the soaking tanks,” Daniels said. “Wait a second, Jack. How do you know there won’t be extra demand for the product? You and I both know demand is a tricky number to project, especially when a new product comes on the market. Why don’t you sit back and wait to see what happens?” “Jon, I owe it to Pete to be honest. He hired me.” “You know Pete is always pressuring us to ‘make the numbers.’ Also, Pete has a zero tolerance for employees who make mistakes. That’s why it’s standard practice around here to sweep things under the rug. Besides, it’s a one-time event—right?” “But what happens if I’m right and the sales numbers were wrong? What happens if the demand does not increase beyond what I now know to be the correct projected level?” “Well, you can tell Pete about it at that time. Why raise a red flag now when there may be no need?” As the lunch comes to a conclusion, Walker pulls Daniels aside and says, “Jack, this could mean your job. If I were in your position, I’d protect my own interests first.” Jimmy (Pete) Beam is the vice president of production. Jackson Daniels had referred to him in his conversation with Jonathan Walker. After several days of reflection on his friend’s comments, Daniels decided to approach Pete and tell him about the mistake. He knew there might be consequences, but his sense of right and wrong ruled the day. What transpired next surprised Daniels. “Come in, Jack” Pete said. “Thanks, Pete. I asked to see you on a sensitive matter.” “I’m listening.” “There is no easy way to say this so I’ll just tell you the truth. I made a mistake in my sales budget. The projected increase of 25 percent was wrong. I checked my numbers and it should have been 12.5 percent. I’m deeply sorry; want to correct the error; and promise never to do it again.” Pete’s face became beet red. He said, “Jack, you know I hired 20 new people based on your budget.” “Yes, I know.” “That means ten have to be laid off or fired. They won’t be happy and once word filters through the company, other employees may wonder if they are next.” “I hadn’t thought about it that way.” “Well, you should have.” Here’s what we are going to do
and this is between you and me. Don’t tell anyone about this conversation.” “You mean not even tell my boss?” “No, Pete said.” Cwervo can’t know about it because he’s all about correcting errors and moving on. Look, Jack, it’s my reputation at stake here as well.” Daniels hesitated but reluctantly agreed not to tell the controller, Jose Cwervo, his boss. The meeting ended with Daniels feeling sick to his stomach and guilty for not taking any action.

What is the likely result of Pete’s “zero tolerance of employees making mistakes”?

Jonathan Walker is probably failing which of the Rest Stages?

If Jackson Daniels decides to do something, what is the one element missing in the chain of communication thus far?

-The failure to document the admission in writing

-The failure to report to the Comptroller

-The failure to report to Internal Audit

-The failure to report to Cwervo

In: Accounting

FIN 370 AOL ASSIGNMENT CASE ANALYSIS: The Case of the Junior Analyst Name:_______________________ Colin was recently...

FIN 370 AOL ASSIGNMENT

CASE ANALYSIS: The Case of the Junior Analyst

Name:_______________________

Colin was recently hired by Coleman Electronics as a junior budget analyst. He is working for the Venture Capital Division and has been given for capital budgeting projects to evaluate. He must give his analysis and recommendation to the capital budgeting committee.

Colin has a B.S. in accounting from CWU (2015) and passed the CPA exam (2017). He has been in public accounting for several years. During that time he earned an MBA from Seattle U. He would like to be the CFO of a company someday--maybe Coleman Electronics-- and this is an opportunity to get onto that career track and to prove his ability.

As Colin looks over the financial data collected, he is trying to make sense of it all. He already has the most difficult part of the analysis complete -- the estimation of cash flows. Through some internet research and application of finance theory, he has also determined the firm’s beta.

Here is the information that Colin has accumulated so far:

The Capital Budgeting Projects

He must choose one of the four capital budgeting projects listed below:  

Table 1

t

A

B

C

D

0

      (19,000,000)

      (20,000,000)

      (14,000,000)

       (18,000,000)

1

         8,000,000

       11,000,000

         5,700,000

          3,600,000

2

         8,000,000

       10,000,000

         5,700,000

          7,600,000

3

         8,000,000

         8,000,000

         5,700,000

          5,600,000

4

         8,000,000

         4,000,000

         5,700,000

          5,600,000

Risk

Average

High

Low

Average

Table 1 shows the expected after-tax operating cash flows for each project. All projects are expected to have a 4 year life. The projects differ in size (the cost of the initial investment), and their cash flow patterns are different. They also differ in risk as indicated in the above table.

The capital budget is $20 million and the projects are mutually exclusive.

Capital Structures

Coleman Electronics has the following capital structure, which is considered to be optimal:

Debt  

50%

Preferred Equity

10%

Common Equity

40%

100%

   

Cost of Capital

Colin knows that in order to evaluate the projects he will have to determine the cost of capital for each of them. He has been given the following data, which he believes will be relevant to his task.

(1)The firm’s tax rate is 35%.

(2) Coleman Electronics has issued a 10% semi-annual coupon bond with 8 years term to maturity. The current trading price is $990.

(3) The firm has issued some preferred stock which pays an annual 10% dividend of $100 par value, and the current market price is $105.

(4) The firm’s stock is currently selling for $36 per share. Its last dividend (D0) was $3, and dividends are expected to grow at a constant rate of 6%. The current risk free return offered by Treasury security is 2.5%, and the market portfolio’s return is 12%. Coleman Electronics has a beta of 1.2. For the bond-yield-plus-risk-premium approach, the firm uses a risk premium of 3%.

(5) The firm adjusts its project WACC for risk by adding 1.5% to the overall WACC for high-risk projects and subtracting 1.5% for low-risk projects.

Colin knows that Coleman Electronics executives have favored IRR in the past for making their capital budgeting decisions. His professor at Seattle U. said NPV was better than IRR. His textbook says that MIRR is also better than IRR.   He is the new kid on the block and must be prepared to defend his recommendations.

First, however, Colin must finish the analysis and write his report. To help begin, he has formulated the following questions:

  1. What is the firm’s cost of debt?
  1. What is the cost of preferred stock for Coleman Electronics?
  1. Cost of common equity

(1) What is the estimated cost of common equity using the CAPM approach?

(2) What is the estimated cost of common equity using the DCF approach?

(3) What is the estimated cost of common equity using the bond-yield-plus-risk-premium approach?

(4) What is the final estimate for rs?

  1. What is Coleman Electronics’s overall WACC?
  1. Do you think the firm should use the single overall WACC as the hurdle rate for each of its projects? Explain.
  1. What is the WACC for each project? Place your numerical solutions in Table 2.
  1. Calculate all relevant capital budgeting measures for each project, and place your numerical solutions in Table 2.

Table 2

A

B

C

D

WACC

NPV

IRR

MIRR

  1. Comment on the commonly used capital budgeting measures. What is the underlying cause of ranking conflicts? Which criterion is the best one, and why?
  1. Which of the projects are unacceptable and why?
  1. Rank the projects that are acceptable, according to Colin’s criterion of choice.
  1. Which project should Colin recommend and why? Explain why each of the projects not chosen was rejected.

Instructions

1.Your answers should be Word processed, submitted via Canvas.

2.Questions 5, 8, 9, and 11 are discussion questions.

3.Place your numerical solutions in Table 2.

4.Show your steps for calculation questions.

In: Finance

Colin was recently hired by Coleman Electronics as a junior budget analyst. He is working for...

Colin was recently hired by Coleman Electronics as a junior budget analyst. He is working for the Venture Capital Division and has been given for capital budgeting projects to evaluate. He must give his analysis and recommendation to the capital budgeting committee.

Colin has a B.S. in accounting from XXX (2015) and passed the CPA exam (2017). He has been in public accounting for several years. During that time he earned an MBA from Seattle U. He would like to be the CFO of a company someday--maybe Coleman Electronics-- and this is an opportunity to get onto that career track and to prove his ability.

As Colin looks over the financial data collected, he is trying to make sense of it all. He already has the most difficult part of the analysis complete -- the estimation of cash flows. Through some internet research and application of finance theory, he has also determined the firm’s beta.

Here is the information that Colin has accumulated so far:

The Capital Budgeting Projects

He must choose one of the four capital budgeting projects listed below:  

Table 1

t

A

B

C

D

0

      (19,000,000)

      (20,000,000)

      (14,000,000)

       (18,000,000)

1

         8,000,000

       11,000,000

         5,700,000

          3,600,000

2

         8,000,000

       10,000,000

         5,700,000

          7,600,000

3

         8,000,000

         8,000,000

         5,700,000

          5,600,000

4

         8,000,000

         4,000,000

         5,700,000

          5,600,000

Risk

Average

High

Low

Average

Table 1 shows the expected after-tax operating cash flows for each project. All projects are expected to have a 4 year life. The projects differ in size (the cost of the initial investment), and their cash flow patterns are different. They also differ in risk as indicated in the above table.

The capital budget is $20 million and the projects are mutually exclusive.

Capital Structures

Coleman Electronics has the following capital structure, which is considered to be optimal:

Debt  

50%

Preferred Equity

10%

Common Equity

40%

100%

   

Cost of Capital

Colin knows that in order to evaluate the projects he will have to determine the cost of capital for each of them. He has been given the following data, which he believes will be relevant to his task.

(1)The firm’s tax rate is 35%.

(2) Coleman Electronics has issued a 10% semi-annual coupon bond with 8 years term to maturity. The current trading price is $990.

(3) The firm has issued some preferred stock which pays an annual 10% dividend of $100 par value, and the current market price is $105.

(4) The firm’s stock is currently selling for $36 per share. Its last dividend (D0) was $3, and dividends are expected to grow at a constant rate of 6%. The current risk free return offered by Treasury security is 2.5%, and the market portfolio’s return is 12%. Coleman Electronics has a beta of 1.2. For the bond-yield-plus-risk-premium approach, the firm uses a risk premium of 3%.

(5) The firm adjusts its project WACC for risk by adding 1.5% to the overall WACC for high-risk projects and subtracting 1.5% for low-risk projects.

Colin knows that Coleman Electronics executives have favored IRR in the past for making their capital budgeting decisions. His professor at Seattle U. said NPV was better than IRR. His textbook says that MIRR is also better than IRR.   He is the new kid on the block and must be prepared to defend his recommendations.

First, however, Colin must finish the analysis and write his report. To help begin, he has formulated the following questions:

  1. What is the firm’s cost of debt?
  1. What is the cost of preferred stock for Coleman Electronics?
  1. Cost of common equity

(1) What is the estimated cost of common equity using the CAPM approach?

(2) What is the estimated cost of common equity using the DCF approach?

(3) What is the estimated cost of common equity using the bond-yield-plus-risk-premium approach?

(4) What is the final estimate for rs?

  1. What is Coleman Electronics’s overall WACC?
  1. Do you think the firm should use the single overall WACC as the hurdle rate for each of its projects? Explain.
  1. What is the WACC for each project? Place your numerical solutions in Table 2.
  1. Calculate all relevant capital budgeting measures for each project, and place your numerical solutions in Table 2.

Table 2

A

B

C

D

WACC

NPV

IRR

MIRR

  1. Comment on the commonly used capital budgeting measures. What is the underlying cause of ranking conflicts? Which criterion is the best one, and why?
  1. Which of the projects are unacceptable and why?
  1. Rank the projects that are acceptable, according to Colin’s criterion of choice.
  1. Which project should Colin recommend and why? Explain why each of the projects not chosen was rejected.

Instructions

1.Your answers should be Word processed, submitted via Canvas.

2.Questions 5, 8, 9, and 11 are discussion questions.

3.Place your numerical solutions in Table 2.

4.Show your steps for calculation questions.

In: Finance

Use Python 3.8: Problem Description Many recipes tend to be rather small, producing the fewest number...

Use Python 3.8:

Problem Description

Many recipes tend to be rather small, producing the fewest number of servings that are really possible with the included ingredients. Sometimes one will want to be able to scale those recipes upwards for serving larger groups.

This program's task is to determine how much of each ingredient in a recipe will be required for a target party size. The first inputs to the program will be the recipe itself.

Here is an example recipe that comes from the story "Chitty Chitty Bang Bang", written by Ian Fleming, who is much better known for introducing the world to James Bond:

This is a recipe scaler for serving large crowds!

Enter one ingredient per line, with a numeric value first.
Indicate the end of input with an empty line.
4 tbsp cocoa
1/4 pound butter
2 tsp corn syrup
1 can evaporated milk
1 tsp water

Here is the recipe that has been recorded
 4    tbsp     cocoa
 1/4  pound    butter
 2    tsp      corn syrup
 1    can      evaporated milk
 1    tsp      water
How many does this recipe serve? 16
How many people must be served? 25
Multiplying the recipe by 2

 8    tbsp     cocoa
 2/4  pound    butter
 4    tsp      corn syrup
 2    can      evaporated milk
 2    tsp      water

Serves 32

NOTE: The recipe rounds upwards, since it is usually not practical to obtain fractional cans or fractional eggs, etc.

Your program must obtain a complete recipe (not necessarily this one), echo it with good formatting, and then scale it up as shown above.

Program Hints:

Attractive user-friendly output is rather straightforward, with the help of Python's string formatting features. User-friendly input is a little trickier, but the split function from Unit 2 can be very helpful:

First hint:

The name of an ingredient might be more than one word. This will place all of the extra words into a single string variable 'item':

quant, unit, item = line.split(' ',2)      # pull off at most 2 words from the front

Second hint:

Sometimes the measure will be fractional. We can recognize that if the number contains a slash.

if '/' in quant: 
    numer, denom = quant.split('/')        # get the parts of the fraction

The rest is left up to the student -- since this is a string operation and this fraction represents a number.

Second Part:

No doubt the output seems to be a little strange to ask for 2/4 pounds of butter. One might think it would be better to ask for 1/2.

Modify the program so that all fractions are reduced to their lowest terms. There is a function in the Python math module named gcd that can help with this. (You can email course personnel if you need help accessing the math features.)

Also, express all improper fractions (where the numerator exceeds the denominator) as mixed fractions. Scaling this recipe by a factor of 10 would ask for 2 1/2 pounds of butter.

And of course, the resulting output should still be easy to read.

Other Guidelines:

Clarity of code is still important here -- and clear code is less likely to have bugs.

In particular, there should be very good and clear decisions in the code.

And there will be a penalty for usage of break or continue statements.

Planning out the design of the solution before diving into code will help!

The simplest solutions would use a list, but without any indexing on that list
(or use of range() to get those indexes).  Let Python help you fill and traverse the recipe.

Storing the entire recipe in a single list before splitting things up often produces much simpler programs than trying to store everything into multiple separate lists!

IMPORTANT NOTE: As above, the recipe is provided as input to the program -- it is not part of the program itself. The program may not assume it knows what the ingredients are, or how many there are, or which ingredients have fractions and which ones do not. It must work for any number of valid input lines.

TASKS:

Recipe Data Structure: Effectively uses list (either parallel lists or lists of structures)

Input Recipe: Clearly reads input until blank line encountered

Serving Inputs: Correctly inputs two values: how many recipe serves, and how many will be served

Computing the Scale: math.ciel; if/else to round up; or anything else equivalent

Parsing the ingredients: Correctly parses ingredients (using given 'tricks') May be done at any point in the program

Scaling the recipe: Multiplies whole numbers and numerators by chosen scaling factor

Reduced fraction: Reduces using gcd; denominator 1 reported as whole numbers

Output presentation: Uses string formatting to present output recipe

Compilation: Program runs fully without change (with valid inputs of 3+ words separated with single spaces)

Correctness: Program behaves as expected (accounting for known errors above)

Program can handle "1 egg" as an ingredient (with only once space)

Only Python 3.8 will be allowed.

In: Computer Science

C++ 1. Modify the code from your HW2 as follows: Your triangle functions will now return...

C++
1. Modify the code from your HW2 as follows:
 Your triangle functions will now return a string object. This string will contain the identification of the triangle as one of the following (with a potential prefix of the word “Right ”):
Not a triangle
 Scalene triangle
 Isosceles triangle
 Equilateral triangle

 2. All output to cout will be moved from the triangle functions to the main function.
 3. The triangle functions are still responsible for rearranging the values such that c is at least as large as the other two sides. 
4. Please run your program with all of your test cases from HW2. The results should be identical to that from HW2. You must supply a listing of your program and sample output





CODE right now 
#include <cstdlib>  //for exit, atoi, atof
#include <iostream> //for cout and cerr
#include <iomanip>  //for i/o manipulation
#include <cstring>  //for strcmp
#include <cmath>    //for fabs

using namespace std;

//triangle function
void triangle(int a, int b, int c)
{
  if (a + b <= c || a + c <= b || b + c <= a) //conditions for an invalid triangle
    cout << a << " " << b << " " << c << " "
         << "Not a triangle";
  else //if above returned false, then it is a valid triangle
  {
    int temp;

    cout << a << " " << b << " " << c << " "; //print the side values

    //logic to find out the largest value and store it to c.
    if (a > b && a > c)
    {
      temp = a;
      a = c;
      c = temp;
    }
    else if (b > a && b > c)
    {
      temp = b;
      b = c;
      c = temp;
    }

    if (a == b && b == c) //condition for equilateral triangle
    {
      cout << "Equilateral triangle";
      return;
    }

    else if (a * a == b * b + c * c ||
             b * b == c * c + a * a ||
             c * c == a * a + b * b) //condition for right triangle i.e. pythagoras theorem
      cout << "Right ";

    if (a == b || b == c || a == c) //condition for Isosceles triangle
      cout << "Isosceles triangle";
    else //if both the above ifs failed, then it is a scalene triangle
      cout << "Scalene triangle";
  }
}

//overloaded triangle function
void triangle(double a, double b, double c)
{
  //equality threshold value for absolute difference procedure
  const double EPSILON = 0.001;

  if (a + b <= c || a + c <= b || b + c <= a) //conditions for an invalid triangle
    cout << fixed << setprecision(5)
         << a << " " << b << " " << c << " "
         << "Not a triangle";
  else //if above returned false, then it is a valid triangle
  {
    double temp;

    cout << fixed << setprecision(5)
         << a << " " << b << " " << c << " "; //print the side values

    //logic to find out the largest value and store it to c.
    if (a > b && a > c)
    {
      temp = a;
      a = c;
      c = temp;
    }
    else if (b > a && b > c)
    {
      temp = b;
      b = c;
      c = temp;
    }

    if (fabs(a - b) < EPSILON &&
        fabs(b - c) < EPSILON) //condition for equilateral triangle
    {
      cout << "Equilateral triangle";
      return;
    }

    else if (fabs((a * a) - (b * b + c * c)) < EPSILON ||
             fabs((b * b) - (c * c + a * a)) < EPSILON ||
             fabs((c * c) - (a * a + b * b)) < EPSILON) //condition for right triangle i.e. pythagoras theorem
      cout << "Right ";

    if (fabs(a - b) < EPSILON ||
        fabs(b - c) < EPSILON ||
        fabs(a - c) < EPSILON) //condition for Isosceles triangle
      cout << "Isosceles triangle";
    else //if both the above ifs failed, then it is a scalene triangle
      cout << "Scalene triangle";
  }
}

//main function
int main(int argc, char **argv)
{
  if (argc == 3 || argc > 5) //check argc for argument count
  {
    cerr << "Incorrect number of arguments. " << endl;
    exit(1);
  }

  else if (argc == 1) //if no command arguments found then do the following
  {
    int a, b, c;        //declare three int
    cin >> a >> b >> c; //read the values

    if (a <= 0 || b <= 0 || c <= 0) //if values are negative then exit
    {
      cerr << "Data must be a positive integer. " << endl;
      exit(1);
    }
    triangle(a, b, c); //call the function if inputs are valid
  }

  else //if command arguments were found and valid
  {
    if (strcmp(argv[1], "-i") == 0)
    {
      int a, b, c, temp; //declare required variables

      if (argc == 5)
      {
        //convert char to int using atoi()
        a = atoi(argv[2]);
        b = atoi(argv[3]);
        c = atoi(argv[4]);
      }
      else
      {
        cin >> a >> b >> c; // read the values
      }

      if (a <= 0 || b <= 0 || c <= 0) //if values are negative then exit
      {
        cerr << "Data must be a positive integer. " << endl;
        exit(1);
      }

      //call the function
      triangle(a, b, c);
    }

    else if (strcmp(argv[1], "-d") == 0)
    {
      double a, b, c, temp; //declare required variables

      if (argc == 5)
      {
        //convert char to int using atoi()
        a = atof(argv[2]);
        b = atof(argv[3]);
        c = atof(argv[4]);
      }
      else
      {
        cin >> a >> b >> c; // read the values
      }

      if (a <= 0 || b <= 0 || c <= 0) //if values are negative then exit
      {
        cerr << "Data must be a positive double. " << endl;
        exit(1);
      }

      //call the overloaded function
      triangle(a, b, c);
    }
  }

  cout << endl;

  return 0;
}

In: Computer Science

Use Python 3.8: Problem Description Many recipes tend to be rather small, producing the fewest number...

Use Python 3.8:

Problem Description

Many recipes tend to be rather small, producing the fewest number of servings that are really possible with the included ingredients. Sometimes one will want to be able to scale those recipes upwards for serving larger groups.

This program's task is to determine how much of each ingredient in a recipe will be required for a target party size. The first inputs to the program will be the recipe itself.

Here is an example recipe that comes from the story "Chitty Chitty Bang Bang", written by Ian Fleming, who is much better known for introducing the world to James Bond:

This is a recipe scaler for serving large crowds!

Enter one ingredient per line, with a numeric value first.
Indicate the end of input with an empty line.
4 tbsp cocoa
1/4 pound butter
2 tsp corn syrup
1 can evaporated milk
1 tsp water

Here is the recipe that has been recorded
 4    tbsp     cocoa
 1/4  pound    butter
 2    tsp      corn syrup
 1    can      evaporated milk
 1    tsp      water

How many does this recipe serve? 16
How many people must be served? 25
Multiplying the recipe by 2

 8    tbsp     cocoa
 2/4  pound    butter
 4    tsp      corn syrup
 2    can      evaporated milk
 2    tsp      water

Serves 32

NOTE: The recipe rounds upwards, since it is usually not practical to obtain fractional cans or fractional eggs, etc.

Your program must obtain a complete recipe (not necessarily this one), echo it with good formatting, and then scale it up as shown above.

Program Hints:

Attractive user-friendly output is rather straightforward, with the help of Python's string formatting features. User-friendly input is a little trickier, but the split function from Unit 2 can be very helpful:

First hint:

The name of an ingredient might be more than one word. This will place all of the extra words into a single string variable 'item':

quant, unit, item = line.split(' ',2)      # pull off at most 2 words from the front

Second hint:

Sometimes the measure will be fractional. We can recognize that if the number contains a slash.

if '/' in quant: 
    numer, denom = quant.split('/')        # get the parts of the fraction

The rest is left up to the student -- since this is a string operation and this fraction represents a number.

Second Part:

No doubt the output seems to be a little strange to ask for 2/4 pounds of butter. One might think it would be better to ask for 1/2.

Modify the program so that all fractions are reduced to their lowest terms. There is a function in the Python math module named gcd that can help with this. (You can email course personnel if you need help accessing the math features.)

Also, express all improper fractions (where the numerator exceeds the denominator) as mixed fractions. Scaling this recipe by a factor of 10 would ask for 2 1/2 pounds of butter.

And of course, the resulting output should still be easy to read.

Other Guidelines:

Clarity of code is still important here -- and clear code is less likely to have bugs.

In particular, there should be very good and clear decisions in the code.

And there will be a penalty for usage of break or continue statements.

Planning out the design of the solution before diving into code will help!

The simplest solutions would use a list, but without any indexing on that list
(or use of range() to get those indexes).  Let Python help you fill and traverse the recipe.

Storing the entire recipe in a single list before splitting things up often produces much simpler programs than trying to store everything into multiple separate lists!

IMPORTANT NOTE: As above, the recipe is provided as input to the program -- it is not part of the program itself. The program may not assume it knows what the ingredients are, or how many there are, or which ingredients have fractions and which ones do not. It must work for any number of valid input lines.

TASKS:

Recipe Data Structure: Effectively uses list (either parallel lists or lists of structures)

Input Recipe: Clearly reads input until blank line encountered

Serving Inputs: Correctly inputs two values: how many recipe serves, and how many will be served

Computing the Scale: math.ciel; if/else to round up; or anything else equivalent

Parsing the ingredients: Correctly parses ingredients (using given 'tricks') May be done at any point in the program

Scaling the recipe: Multiplies whole numbers and numerators by chosen scaling factor

Reduced fraction: Reduces using gcd; denominator 1 reported as whole numbers

Output presentation: Uses string formatting to present output recipe

Compilation: Program runs fully without change (with valid inputs of 3+ words separated with single spaces)

Correctness: Program behaves as expected (accounting for known errors above)

Program can handle "1 egg" as an ingredient (with only once space)

Only Python 3.8 will be allowed.

In: Computer Science