Questions
You have the following information about the yield curve – Term 1 2 3 4 Rate...

You have the following information about the yield curve – Term 1 2 3 4 Rate 4% 4.50% 5% 5.50% What should be the price of a bond with a face value of $100 and an annual coupon of 5% that matures in 4 years. Show all calculations.

In the above question if the market price of the bond is $95, can you do arbitrage? Show how and your profit or loss. Show all calculations.

If the market price of the bond is $115, can you do arbitrage? Show how and your profit or loss. Show all calculations.

Estimate the 1-year forward rate 1 year from now. Show all calculations.

Estimate the 1-year forward rate 2 years from now. Show all calculations.

Estimate the 1-year forward rate 3 years from now. Show all calculations.

In: Finance

QUESTION 5 What is printed? int[] aArray = {1, 2, 3, 4}; int[] bArray = {5,...

QUESTION 5

  1. What is printed?

    int[] aArray = {1, 2, 3, 4};
    int[] bArray = {5, 6, 7, 8};
    bArray = aArray;
    System.out.print(bArray[2]);

1 points   

QUESTION 6

  1. What is printed?

    public static void main(String[] args)
     {
     int[] aArray = { 1, 2, 3, 4 };
     System.out.print(aArray[2]);
     int i = aMeth(aArray);
     System.out.print(i + "" + aArray[2]);
    }
    public static int aMeth(int[] iArray)
     {
     for (int i = 0; i < iArray.length; i++)
     {
     iArray[i]++;
     }
     int[] bArray = { 5, 6, 7, 8 };
     iArray = bArray;
     return iArray[2];
    }
     
     

1 points   

QUESTION 7

  1. Assuming that array myList is properly declared and initialized with values, what best describes the following code snippet?

    double max = myList[0];

    for (int i = 1; i < myList.length; i++) {

    if (myList[i] > max) max = myList[i];

    }

    sets max to the largest index in the array

    sets max to the index of the largest value in the array

    sets max to the largest positive value in the array

    sets max to the largest value in the array

1 points   

QUESTION 8

  1. Given the following two arrays, which of the following will copy the values from sourceArray into targetArray?

    int[] sourceArray = {2, 3, 1, 5, 10};

    int[] targetArray = new int[sourceArray.length];

    sourceArray = targetArray;

    targetArray = sourceArray;

    targetArray[] = sourceArray[];

    sourceArray.copyInto(targetArray, 0, sourceArray.length);;

    None of the above

QUESTION 1

  1. An array is an object

    True

    False

1 points   

QUESTION 2

  1. To add a new element on to the end of an array myArray,

    assign a new value to element myArray[myArray.length]

    use the myArray.add method

    use the myArray.resize method followed by the myArray.add

    new elements can't be added on to the end of an array

1 points   

QUESTION 3

  1. Assume myArray is a valid and instantiated array of int values. Also assume the user is asked for an int value arIndx, and enters -1.

    myArray[arIndx] = 3;

    will

    set the [-1] element of myArray to 3, even though this memory isn't in myArray's memory

    cause a compiler error

    cause a runtime exception

    renumber myArray's elements to be from -1 to myArray.length-2   

1 points   

QUESTION 4

  1. Note: Multiple Answer

    Which of the following will add 1 to each element of an appropriately declared, created and initialized int[] iVals?

    int i = iVals.length - 1;
    while (i >= 0)
    {
     iVals[i]++;
     i--;
    }
    for (int i: iVals)
    {
     i = i + 1;
    }
    for (int i: iVals)
    {
     iVals[i]++;
    }
     
    for (int i = 0; i < iVals.length; i++)
    {
     iVals[i] += 1

QUESTION 9

  1. In order to perform a binary search on an array, which of the following must be true (select all that apply)?

    The array must be ordered

    The array must contain integers

    The array must have an even number of elements

    The array must have an odd number of elements

1 points   

QUESTION 10

  1. Command line arguments are made available to main() via an array of _______.

1 points   

QUESTION 11

  1. The first action performed in a binary search is

    Determine the largest value in the array

    Determine the smallest value in the array

    Determine the mid-point of the array

    Determine if the array is sorted

1 points   

QUESTION 12

  1. If an array contains unordered values, searching for a particular value

    is accomplished with a linear search

    is accomplished with the bipolar search

    can't be done in Java

    requires multiple parallel processing threads

1 points   

QUESTION 13

  1. What best describes the processing of the following method?

    public static int[] mystery(int[] list) {

    int[] result = new int[list.length];

    for (int i = 0, j = result.length - 1;

           i < list.length; i++, j--) {

        result[j] = list[i];

    }

    return result;

    }

    Returns an array with the values from list sorted in ascending order

    Returns an array with the values from list sorted in descending order

    Returns an array with the values from list decremented by 1

    Returns an array with the values from list reversed

1 points   

QUESTION 14

  1. The first action performed in Selection Sort is

    convert all values to integers

    find the largest value in the array

    locate the midpoint of the array

    find the smallest value in the array

1 points   

QUESTION 15

  1. When Selection Sort is run against an array the end result is

    the values in the array are reordered smallest to largest

    the array is unchanged because the sorted values are placed in a different array

    none of the other answers are correct

    the values in the array are reordered largest to smallest

In: Computer Science

1. List 4 reasons for using formative evaluation during Web design. 2. What is the difference...

1. List 4 reasons for using formative evaluation during Web design.

2. What is the difference between formative and summative evaluation?

3. Provide any two types formative evaluation and two types of summative evaluation questions.

In: Computer Science

1. Summarize the three (3) essential roles performed by managers. 2. Describe the four (4) general...

1. Summarize the three (3) essential roles performed by managers.

2. Describe the four (4) general skills necessary for becoming a successful manager.

3. Describe the value of studying management.

In: Operations Management

(In Java) Inheritance Shapes: Write 5 Classes: 1) Shapes    2) Triangle 3) Rectangle    4)...

(In Java) Inheritance Shapes: Write 5 Classes: 1) Shapes   
2) Triangle
3) Rectangle   
4) Circle
5) TestAllShapes (create 1 object of each type and print the Area for each of them.)

In: Computer Science

​Covan, Inc. is expected to have the following free cash​ flow: Year 1 2 3 4...

​Covan, Inc. is expected to have the following free cash​ flow:

Year

1

2

3

4

times times times•••

FCF

10

12

13

14

Grow by 5%per year

a. Covan has 8 million shares​ outstanding, ​$3 million in excess​ cash, and it has no debt. If its cost of capital is 13%​, what should be its stock​ price? (round to nearest cent)

b. Covan adds its FCF to​ cash, and has no plans to add debt. If you plan to sell Covan at the beginning of year​ 2, what is its expected​ price? (round to nearest cent)

c. Assume you bought Covan stock at the beginning of year 1. What is your expected return from holding Covan stock until year​ 2? (round to one decimal place)

In: Finance

1. Design a combinational logic circuit that converts 4 bits binary to gray code 2. Design...

1. Design a combinational logic circuit that converts 4 bits binary to gray code
2. Design a combinational logic circuit that converts gray code to 4 bits binary
3. Design a combinational logic circuit that converts 4bits 2421 to excess 3 code

In: Computer Science

Could you modify the code make output arranged into 5x5, like this: 1 2 3 4...

Could you modify the code make output arranged into 5x5, like this:

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

21 22 23 24 25

The code is:

import java.util.*;

public class RandomGen {

public static void main(String[] args) {
int[][] ArrayRand = new int [5][5];
Random rand = new Random();
int sum = 0;
System.out.println("The generated random matris is: ");
  
for(int i = 0; i < ArrayRand.length;i++){
for(int j = 0; j < ArrayRand[i].length;j++){
ArrayRand[i][j] = rand.nextInt(100)+1;
System.out.print(" "+ ArrayRand[i][j]);
sum += ArrayRand[i][j];
}
}
System.out.println("\nThe sum is: "+ sum);
System.out.println();
}
  
}

In: Computer Science

Correct the code to prints the following: 0 1 2 3 4 5 6 7 8...

Correct the code to prints the following:

0 1 2 3 4 5 6 7 8 9

int[] numbers = new int[10];

for(int i=0; i < numbers.length; ++i)

        numbers[i] = i * 3;

for(int i=0; i < numbers.length; ++i)

        System.out.print(numbers[i] / 2 + 1 + " ");

System.out.println();

In: Computer Science

Explain the 4 "Principles" that guide Marketing Strategy: 1) Selectivity and Concentration, 2) Customer Value, 3)...

Explain the 4 "Principles" that guide Marketing Strategy: 1) Selectivity and Concentration, 2) Customer Value, 3) Differential Advantage, 4) Integration.

In: Operations Management