Questions
The price of a stock is $40. The price of a one-year European put option on...

  1. The price of a stock is $40. The price of a one-year European put option on the stock with a strike price of $30 is quoted as $7 and the price of a one-year European call option on the stock with a strike price of $50 is quoted as $5. Suppose that an investor buys 100 shares, shorts 100 call options, and buys 100 put options.

  1. Construct a payoff and profit/loss table

In: Finance

Consider two bonds. The first is a 6% coupon bond with six years to maturity, and...

Consider two bonds. The first is a 6% coupon bond with six years to maturity, and a yield to maturity of 4.5% annual rate, compounded semi-annually. The second bond is a 2% coupon bond with six years to maturity and a yield to maturity of 5.0%, annual rate, compounded semi-annually. a. Draw a cash flow diagram for each bond. b. Calculate the current price per $100 of face value for each bond.

In: Finance

A three-month t bill sold for a price of $99.311998 per $100 face value. What is...

  1. A three-month t bill sold for a price of $99.311998 per $100 face value. What is the yield to maturity of this bond expressed as an Effective Annual Rate (as opposed to the Nominal Rate Rate)? Remember, the bond matures in 3 months, meaning C/Y = 4. First compute nominal rate and then figure out effective rate. Ok to solve with Excel

    a

    2.5%

    b

    2.8%

    c

    3.2%

    d

    4.0%

In: Finance

Frank Wright, an international fund manager, uses the concepts of purchasing power parity (PPP) and the...

Frank Wright, an international fund manager, uses the concepts of purchasing power parity (PPP) and the International Fisher Effect (IFE) to forecast spot exchange rates. James gathers the financial information as follows:

Current rand spot exchange rate

$0.060

Expected annual U.S. inflation

6%

Expected annual South African inflation

8%

Expected U.S. one-year interest rate

0.08%

Expected South African one-year interest rate

1%

Calculate the following exchange rates (ZAR and USD refer to the South African rand and U.S. dollar, respectively).

Using the IFE, the expected ZAR spot rate in USD one year from now. (2 point)

Using PPP, the expected ZAR spot rate in USD one year from now. (2 point)

Using IRP (interest rate parity), the one-year ZAR forward rate in USD. (2 point)

ANS: Please label a/b in your response to the two sub-questions respectively.

In: Finance

I need to be able to store 5000 names into an array. I currently have a...

I need to be able to store 5000 names into an array. I currently have a code that generates one random name. I just need to generate an array of 5000 the same way.

#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iomanip>

using namespace std;

string RandomFirstGen(int namelength);

int main(){

srand(time(NULL));
int namelength = rand()%(16-8+1)+8;
cout<<"name is: "<<RandomFirstGen(namelength)<<endl;

return 0;
}

string RandomFirstGen(int namelength){
for (int i=0; i<=5000 ; i++){
const int MAX = 26;
char alphabet[MAX] = {
'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z'};
string name = "";
for (int i = 0; i < namelength; i++)
name = name + alphabet[rand() % MAX];
return name;

}
}

In: Computer Science

Modify the following C++ program to count the number of correct and incorrect responses typed by...

Modify the following C++ program to count the number of correct and incorrect responses typed by the student. After the student types 5 answers, your program should calculate the percentage of correct responses. If the percentage is lower than 75 percent, your program should print “Please ask for extra help” and then terminate. If the percentage is 75 percent or higher, your program should print “Good work!” and then terminate. The program is as follows:

#include<iostream>

#include<iomanip>

#include<cstdlib>

#include<time.h>

using namespace std;

int main()
{
const int no_runs = 5;
int run, n1,n2,answer;

srand((unsigned int)time(NULL));

for(run = 0;run<no_runs;run++)
{
n1 = rand()%9 + 1;
n2 = rand()%9 +1;
while(true)
{
cout<<"What is the product of "<<n1<<" and "<<n2<<": ";
cin>>answer;
if(answer==n1*n2)
break;
cout<<"No. Please try again."<<endl;
}
cout<<"Very good!"<<endl;
}
system("pause");
return 0;
}

In: Computer Science

Convert your "To Do List" application to use Hibernate in order to save its data. Then...

Convert your "To Do List" application to use Hibernate in order to save its data. Then add a web UI, so that it runs on the Tomcat web server. You will have to add JSP code for each of the web pages (show to-do list, add a to-do item, delete a to-do item). Your to-do-list application should already be well structured, separating the back-end from the front-end, so that adding a web UI is just a matter of adding a new front-end which would call the existing back-end.

Here's my code so far:

package assignment1;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.Random;
public class assignment4 {

  
public static void main(String[] args) {
ArrayList_Op();
LinkedList_Op();
HashTable_Op();
}

private static void ArrayList_Op() {
ArrayList<Integer> arr_list = new ArrayList<>();
Random rand = new Random();
for(int i=0; i<200000; i++)
{
arr_list.add(rand.nextInt(200000));
}
  
  
for(int i=0; i<200000; i++)
{
arr_list.remove(0);
}
  
}

private static void LinkedList_Op() {

LinkedList<Integer> list = new LinkedList<Integer>();
Random rand = new Random();
for(int i=0; i<200000; i++)
{
list.add(rand.nextInt(200000));
}
  
  
for(int i=0; i<200000; i++)
{
list.remove(0);
}
}

private static void HashTable_Op() {

Hashtable<Integer, Integer> hash = new Hashtable<>();
Random rand = new Random();
  
for(int i=0; i<200000; i++)
{
hash.put(i, rand.nextInt(200000));
}
  
for(int i=0; i<200000; i++)
{
hash.remove(i);
}
}
  
}


We're using Apache Web server, its already been downloded on the computer.

In: Computer Science

This is a ruby program, thank you Given a set of random integer numbers in a...

This is a ruby program, thank you Given a set of random integer numbers in a user-defined range, count the number of occurrences of each integer, and generate a histogram using # characters. The input and output of your program should match the following in format:

$ ./histogram.rb

How many random integer numbers do you want to generate?

10

Please input the maximum value for the random numbers:

9

The frequency of 1 | #

The frequency of 2 |#

The frequency of 3 |###

The frequency of 4 |#

The frequency of 6 |##

The frequency of 7 |###

The frequency of 8 |##

The frequency of 9 |####

Prompt the user to input the number of random integers to generate. Prompt the user to input the maximum value for the random integers. The minimum will always be 1 and the numbers generated should include the maximum value. Use the rand method available in Kernel to generate random numbers in a given range. The documentation for Random#rand is a bit more detailed than Kernel#rand, but it is the same method. Force the user input to be read from the line following the prompt in both cases. You must use an Array of the appropriate size to store the randomly generated numbers. In other words, if they ask for 50 random numbers, size the Array at 50. You must use a hash to store the frequency of each random number that is generated. HINT: Use a counting Hash. Do not generate lines in the histogram for numbers that are not found in the Array; note that there are no lines shown below for 5, 10, 16, and others. The numbers represented in the histogram should be in sorted order (low to high) when displayed. You must use an iterator method (which requires a code block) at least once in the program to iterate over the Array or the Hash (or both).

This is a ruby program, thank you

In: Computer Science

Greenweed Limited manufactures specially treated garden benches. The following information was extracted from the budget for the year ended 29 February 2020:


Greenweed Limited manufactures specially treated garden benches. The following information was extracted from the budget for the year ended 29 February 2020:

The estimated sales for the financial year are 2000 units. The selling price per garden bench is R450. Variable production cost per garden bench comprises of the following:

 Direct materials: R135

 Direct Labour: R90

 Overheads: R45

The cost for fixed production overheads are R127 500 and selling and administrative expenses are broken down as follows:

 Salary of sales manager for the year: R75 000

 Sales commission: 10% of sales

Required: (Round of answers to the nearest rand or whole number)

4.1 Calculate the breakeven quantity. 

4.2 Determine the break-even value using the marginal income ratio. 

4.3 Calculate the margin of safety.

4.4 Determine the number of sales units required to make a profit of R150 000.


In: Accounting

In order to submit this assignment, you will use this webform to upload a document file...

In order to submit this assignment, you will use this webform to upload a document file (.doc) or (.docx) with your answers. You may use a drawing program or sketch by hand. Be sure that your responses model clear economic reasoning and addresses each of the following: 1.) Suppose if the price of a good is $12, the quantity demanded is 50 units; when the price is $10, the quantity demanded is 100 units. Use the midpoint approach to compute the price elasticity of demand. Is demand at this point relatively responsive or relatively unresponsive to price changes? 2.) For this exercise you will need to first build a graph to these specifications: Draw a downward sloping demand curve with vertical intercept (0,4) and horizontal intercept (8,0). Label the price above which the demand is always elastic. Label the portion of the curve at which a decrease in price will lead to increased revenue. If the price is currently $3, will revenue rise or fall if price drops to $2?

In: Economics