1. an investor considers investing in shares A and B. Stock A is currently trading at the price of $1000 with price earning ratio (PER) value of 10X, meanwhile stock B is currently trading at the price of $2000 with price earning ratio value of 20X. Its estimated that EPS stock A will increase 50% than its previous EPS in the next 3 months, while EPS stock B will decrease by 50% in the next 3 months. According to that estimation, the investor wants to buy a call option contract for stock A for 100 lot at a call option premium of $100 per share, and exercise price at $1200. For stock B, the investor wants to buy a call option contract (put option) with a put option premium of $100 and an exercise price of $1100. if the market price that occurs in 3 months is exactly the same as the investor's estimate, calculate the total profit (loss) obtained by the investor!
2. at present the Rubble exchange rate is 1 = USD 0.016 while USD 1 = IDR 14,041. It is also known that inflation in Russia is 2.4% and it is estimated that next month it will rise to 3.5%. while inflation in Indonesia is currently 3.41%. Based on these data, calculate what is the current exchange rate of one Russian Rubble to Rupiah? What is the Rubble exchange rate against Rupiahs for another month?
3. A firm needs to determine how many should be sold in order to reach breakeven. Total Fixed cost is 500 million, with variable cost of 500,000 per product. The selling price for each product is 1.25 million. Calculate the amount of product should be sold to reach breakeven. If the firm requires a profit margin of 25%, how many product should be sold?
4. a company is considering issuing convertible bonds, because the company anticipates that interest will go down in the next 5 years. it is known that if the company issues a straight bond, the company must pay a fixed interest of 10%. if the company issues a straight bond, the company can save interest at 3% per year. convertible bonds that will be offered are worth Rp50 million per share, with a tenor of 5 years. The convertible bonds will be exchanged after the third year to 200 lots of shares. at the time of the issuance of the convertible bonds, the market price of the shares was Rp 1500 per share. (a) calculate the value of the convertible bonds (b) what is the profit gained by the investor if you exchange the bonds in the 3rd year?
In: Finance
B. KFC opened its first store in Accra, Ghana in October 2011. The price of a Wicked Zinger Meal in Accra is 39.90 GHS. In New York City, the price of a Wicked Zinger Meal is $9.65. The exchange rate between Ghanaian Cedi (GHS) and U.S. dollars is GHS1.6873/$. According to purchasing power parity, is the Ghanaian cedi overvalued or undervalued? To what extent? Show your calculation.
Show calculations as required.
In: Finance
The source code I have is what i'm trying to fix for the assignment at the bottom.
Source Code:
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <iomanip>
using namespace std;
const int NUM_ROWS = 10;
const int NUM_COLS = 10;
// Setting values in a 10 by 10 array of random integers (1 -
100)
// Pre: twoDArray has been declared with row and column size of
NUM_COLS
// Must have constant integer NUM_COLS declared
// rowSize must be less than or equal to NUM_COLS
// Post: All twoDArray values set to integers 1 - 100
void InitArray(/* OUT */ int twoDArray[][NUM_COLS], /* IN */ int
rowSize);
// Display the array
// Pre: twoDArray contains integers with row and column size of
NUM_COLS
// Must have constant integer NUM_COLS declared
// rowSize must be less than or equal to NUM_COLS
// Post: Display all values in array in pretty format
void PrintArray(/* IN */ const int twoDArray[][NUM_COLS], /* IN */
int rowSize);
// Accepts an integer as a parameter and returns its first
location in the array
// Pre: twoDArray contains integers with row and column size of
NUM_COLS
// Must have constant integer NUM_COLS declared
// rowSize must be less than or equal to NUM_COLS
// numGuessed contains valid integer
// Post: Return true if numGuessed is in array as well as set
rowLoc and colLoc coordinates
// Return false if numGuessed not found and set rowLoc and colLoc
to -1
bool FindNumber(/* IN */ const int twoDArray[][NUM_COLS], /* IN */
int rowSize,
/* IN */ int numGuessed, /* OUT */ int &rowLoc, /* OUT */ int
&colLoc);
//Setting values in a 10 by 10 array of random integers (1 -
100)
// Pre: twoDArray has been declared with row and column size of
NUM_COLS
// Must have constant integer NUM_COLS declared
// rowSize must be less than or equal to NUM_COLS
// Post: All twoDArray values set to integers 1 - 100
void InitArray(/* OUT */ int twoDArray[][NUM_COLS], /* IN */ int
rowSize)
{
cout << "init\n";
// Loop through each row
for (int row = 0; row < rowSize; row++)
{
// Loop through each column
for (int col = 0; col < rowSize; col++)
{
// printing values from array
twoDArray[row][col] = rand() % 100 + 1;
cout << twoDArray[row][col] << ' ';
}
cout<<endl;
}
}
void PrintArray(/* OUT */ const int twoDArray[][NUM_COLS], /* IN
*/ int rowSize)
{
cout << "print\n";
// Loop through each row
for (int row = 0; row < rowSize; row++)
{
// Loop through each column
for (int col = 0; col < rowSize; col++)
{
// Printing values from array
cout << setw(4) << twoDArray[row][col] << '
';
}
cout << endl;
}
}
// Accepts an integer as a parameter and returns its first
location in the array
// Pre: twoDArray contains integers with row and column size of
NUM_COLS
// Must have constant integer NUM_COLS declared
// rowSize must be less than or equal to NUM_COLS
// numGuessed contains valid integer
// Post: Return true if numGuessed is in array as well as set
rowLoc and colLoc coordinates
// Return false if numGuessed not found and set rowLoc and colLoc
to -1
bool FindNumber(/* IN */ const int twoDArray[][NUM_COLS], /* IN */
int rowSize,
/* IN */ int numGuessed, /* OUT */ int &rowLoc, /* OUT */ int
&colLoc)
{
// Loop to iterate over rows
for(int i=0;i<rowSize;i++)
{
// Loop to iterate over rows
for(int j=0;j<rowSize;j++)
{
// If element at row i and column j is equal to numGuessed
if(twoDArray[i][j]==numGuessed)
{
// Assigning the row and column values of the numGuessed to rowLoc
and colLoc
rowLoc = i;
colLoc = j;
// Returning true
return true;
}
}
}
// If the whole array is traversed and numGuessed is not found,
false is returned
return false;
}
int main()
{
// Defining an 2D Array of size NUM_ROWS x NUM_COLS
int twoDArray[NUM_ROWS][NUM_COLS];
// Initialising the array
InitArray(twoDArray, NUM_ROWS);
// This variable is used to keep track of whether the number is
found or not
bool found;
// Start of do while loop
do
{
// Defining the variable to store the number entered by the
user
int guessNum;
// Prompting the user to enter the guessed number
cout << "Guess a number:";
// Reading the number
cin >> guessNum;
// Creating two variables to store the row and column indexes of
guessNum in twoDArray
int rolLoc = -1;
int colLoc = -1;
// Calling the function FindNumber and storing the result in the
variable found
found = FindNumber(twoDArray, NUM_COLS, guessNum, rolLoc,
colLoc);
// If guessNum is found in twoDarray
if(found)
{
// Print the row and column indexes
cout <<rolLoc << " " << colLoc <<
endl;
}
// Else
else
{
// Print a message to user stating that the guessNum is not found
in the twoDArray
cout << guessNum << " is not one of the numbers!"
<< endl;
}
// End of do while loop
} while(!found);
// Printing the array
PrintArray(twoDArray, NUM_COLS);
return 0;
}
Assignment details:
Pick a number between 1 and 100: 75 Number not found! Pick a number between 1 and 100: 45 Guess location (x y): 5 5 x is correct! and y too high! Guess location (x y): 5 4 x is correct! and y too high! Guess location (x y): 5 3 x is correct! and y too high! Guess location (x y): 5 2 x is correct! and y too high! Guess location (x y): 5 1 Found!
Submit: Documented source code in a zip file
In: Computer Science
Here is my assignment:
Write a program that generates a random number between 1 and 50 and asks the user to guess it. As a hint, it tells the user how many divisors it has, (excluding 1 and the number itself). Each time the user makes a wrong guess, it displays "Wrong" and says if the guess was too low or too high, until the user gets it right, in which case it says "Right" and says how many trials it took to guess it. Then, the program asks the user if he or she wants to continue. If the answer is 'y' or 'Y', it generates another number between 1 and 50 and repeats the game. If not, it prints the average of all trials with one decimal place and ends.
I've got the basic code, but i'm stuck on if I answer 'Y' for it to repeat the game and how to code the hint (the divisor)
Example:
I've picked a number between 1 and 50 that has 0 divisor(s).
My work so far:
#include <iostream>
#include <cstdlib> //needed to use srand and rand
#include <ctime> //needed to use time
using namespace std;
int main()
{
int random_number, guess, number_of_trys;
char go_again;
bool win = false;
unsigned seed;
seed = time(0);
srand(seed);
random_number = 1 + rand() % 50;
number_of_trys = 0;
cout << "I'have picked a number between 1 and
50. Guess the Number!" << endl;
cin >> guess;
cout << random_number;
do // this will loop while play-again
{
while (!win)
{
if (guess <
random_number) //if the guess is lower than the random number
{
cout << "Too Low! Guess Again." <<
endl;
cin >> guess;
number_of_trys++;
}
else if (guess
> random_number) //if the guess is higher than the random
number
{
cout << "Too High, Guess Again!" <<
endl;
cin >> guess;
number_of_trys++;
}
else
{
number_of_trys++;
cout << "That's Right!!!! It took you "
<< number_of_trys << " trys." << endl;
win = true;
}
} //end while
cout << "Play again[Y/N]:
";
cin >> go_again;
} while (go_again == 'Y'); //end do while
return 0;
}
In: Computer Science
You are a business owner of a firm that services trucks. A customer would like to rent a truck from you for one week, while you service his truck. You must decide whether or not to rent him a truck. You have an extra truck that you will not use for any other purpose during this week. This truck is leased for a full year from another company for $300/ week plus $.50 for every mile driven. You also have paid an annual insurance premium, which costs $50/ week to insure the truck. The truck has a full 100-gallon fuel tank. The customer has offered you $500 to rent the truck for a week. The price includes the 100 gallons of fuel that is in the tank. It also includes up to 500 miles of driving. The customer will pay $.50 for each additional mile that he drives above the 500 miles. You anticipate that the customer will bring back the truck with an empty fuel tank and will have driven more than 500 miles. You sell fuel to truckers at a retail price $3.35/gallon. Any fuel you sell or use can be replaced at a wholesale price of $2.95/gallon. The customer will rent a truck from another company if you do not accept the proposed deal. In either case, you will service his truck. You know the customer and are confident that he will pay all charges incurred under the agreement. 1. Should you accept or reject the proposed deal? Why, or why not? Show calculations. 2. Would your answer change if your fuel supplier limited the amount of fuel up to 100 gallons/ week you could purchase from him at the wholesale price? Explain.
In: Economics
You are a business owner of a firm that services trucks. A customer would like to rent a truck from you for one week, while you service his truck. You must decide whether or not to rent him a truck. You have an extra truck that you will not use for any other purpose during this week. This truck is leased for a full year from another company for $300/ week plus $.50 for every mile driven. You also have paid an annual insurance premium, which costs $50/ week to insure the truck. The truck has a full 100-gallon fuel tank. The customer has offered you $500 to rent the truck for a week. The price includes the 100 gallons of fuel that is in the tank. It also includes up to 500 miles of driving. The customer will pay $.50 for each additional mile that he drives above the 500 miles. You anticipate that the customer will bring back the truck with an empty fuel tank and will have driven more than 500 miles. You sell fuel to truckers at a retail price $3.35/gallon. Any fuel you sell, or use can be replaced at a wholesale price of $2.95/gallon. The customer will rent a truck from another company if you do not accept the proposed deal. In either case, you will service his truck. You know the customer and are confident that he will pay all charges incurred under the agreement.
1. Should you accept or reject the proposed deal? Why, or why not? Show calculations.
2. Would your answer change if your fuel supplier limited the amount of fuel up to 100 gallons/ week you could purchase from him at the wholesale price? Explain.
In: Accounting
A portfolio consists of two (long) assets £100 million each. The
probability of default over the next year is 10% for the first asset,
20% for the second asset, and the joint probability of default is 3%.
Estimate the expected loss on this portfolio due to credit defaults
over the next year assuming 40% recovery rate for both assets.
In: Finance
Suppose that a researcher had estimated the first 5
autocorrelation coeffcients using a series of length 100
observations, and found them to be (from 1 to 5): 0.207, -0.013,
0.086, 0.005, -0.022.
Test each of the individual coefficient for significance, and use
both the Box-Pierce and Ljung-Box tests to establish whether they
are jointly significant.
In: Statistics and Probability
Dipper has a 10 year increasing annuity immediate that pays $100 at the end of the first year, $200 at the end of the second year, ... , and $1000 at the end of the 10th year. He exchanges the annuity for a perpetuity of equal value that pays X at the end of each year. If the effective annual interest rate is 3%, find the value of X
In: Statistics and Probability
write a java code program using loops to compute the sum of the 30 terms of the series below.
Find sum of all integers between 100 and 200 which are divisible by 9 or 13 Write a program to find the sum of the first 8 terms of the series 1 + 11 + 111 + 1111 + . . .
Output:
Term Ratio Sum
In: Computer Science