In John Haye’s seven step model of Change Management, contrast steps one and two. What are the fundamental differences between recognising a need for change and diagnosing what needs to be changed?
In: Operations Management
A stock is expected to pay a dividend of $0.80 per share in two
months, in five months and in eight
months. The stock price is $35, and the risk-free rate of interest
is 8% per annum with continuous
compounding for all maturities. You have just taken a long position
in a nine-month forward contract
on the stock. Seven months later, the price of the stock has become
$38 and the risk-free rate of
interest is still 8% per annum. What is the value your position
seven months later?
In: Finance
Recall that a standard 52-card deck has four suits, ♥, ♦, ♣, and ♠, each of which has13cards, one each of the following kinds, A, K, Q, J,10,9,8,7,6,5,4,3,and2. A hand of seven (7) cards is drawn at random from such a deck. (This means that you get the cards as a group, in no particular order, and with no possible way of getting the same card twice in the hand.) Find the probability that the hand . . .
1. 2. 3.
4. 5.
... is a flush, i.e. all the cards in the hand are from the same suit. [1]
. . . has four cards of the same kind. [1]
. . . has exactly three cards of one kind, two cards of another kind, and two cards of yet another kind. [1]
. . . has cards of seven different kinds. [1]
... is a straight, i.e. a set of cards that can be arranged to be consecutive with no gaps in the sequence AKQJ1098765432, where we allow the sequence to wrap around the end. (So 3 2 A K Q J 10 would count as a straight, for example.) [1]
Show all your work!
In: Advanced Math
Using the data set below:
|
Score |
Frequency |
|
20-30 |
5 |
|
30-40 |
8 |
|
40-50 |
13 |
|
50-60 |
12 |
|
60-70 |
5 |
In: Statistics and Probability
IN JAVA create a program that has 8 players and ranks them randomly and contains 3 rounds. For each round the highest ranked player plays the lowest ranked one i.e., in quarter-final round, player ranked 1 plays player ranked 8, player ranked 2 plays player ranked 7 and so on. Report the winner of each match, simulating using random values of your choice USING JAVA COLLECTIONS IS NOT ALLOWED
In: Computer Science
Overview
For this assignment, write a program that uses functions to simulate a game of Craps.
Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the dice will determine whether the player (and anyone that has placed a bet) wins immediately, loses immediately, or if the game continues.
If the sum of the first roll of the dice (known as the come-out roll) is equal to 7 or 11, the player wins immediately.
If the sum of the first roll of the dice is equal to 2, 3, or 12, the player has rolled "craps" and loses immediately.
If the sum of the first roll of the dice is equal to 4, 5, 6, 8, 9, or 10, the game will continue with the sum becoming the "point." The object of the game is now for the player to continue rolling the dice until they either roll a sum that equals the point or they roll a 7. If the player "makes their point" (ie. rolls a sum that equals the point), they win. If they roll a 7, they lose.
There are many wagers that can be made of a game of craps. For this program, we'll focus on a wager known as the pass line bet. It's a wager that the player will win the game (ie. the initial roll is 7 or 11, or the player makes their point).
This wager pays 1/1 or even money. This means that if the user wagers $1, they'll win $1 if the game is won. In other words, if the game is won, the user will win the amount that they wagered plus their original wager. So if the wager amount was $10 and the game is won, the user will win $10 plus get their original wager amount for a total of $20.
Random Number Generation
The random number generator will be used to "roll" the dice.
If a reminder is needed about how to use the random number generator and how to limit the values that are produced, refer back to program 4:
Link to Program 4
Basic Logic for int main()
Seed the random number generator with a value of 34. Note: other seed values may be used to produce different results. However, the version that is handed in for grading MUST use a seed value of 34.
Call the getWager() function that is described below to get the amount that the player wants to wager on the game. Make sure to save the value that is returned from the getWager() function in a double variable.
Call the rollTheDice() function that is described below for the come-out roll (the first roll of the dice). Make sure to save the value that is returned from the rollTheDice() function in an integer variable.
If the game is immediately won, the game is over. Display a congratulatory message and how much money the player has won. Call the winner() function that is described below to determine if the game is immediately won. Make sure to pass the integer value that was returned from the rollTheDice() function to the winner() function.
If the game is immediately lost, the game is over. Display a message indicating the player has lost because they rolled craps and how much money the player has lost. Call the craps() function that is described below to determine if the game is immediately lost. Make sure to pass the integer value that was returned from the rollTheDice() function to the craps() function.
Otherwise, the game continues. Call the rollMore() function that is described below. Make sure to pass the integer value that was returned from the rollTheDice() function and the double value that was returned from the getWager() function to the rollMore() function.
The Functions
Write and use the following 5 functions in the program.
int rollTheDice()
This function simulates the rolling of the two dice. It takes no argument. It returns an integer: the sum of the two dice rolls.
This function should roll the dice by generating two random numbers between 1 and 6. The random numbers should be added together and then displayed along with the sum. Finally, return the sum of the dice.
bool winner( int roll )
This function determines if the game of craps was immediately won on the come-out roll. It takes one integer argument: the come-out roll. It returns a boolean value: true if the game was immediately won or false if the game was not immediately won.
If the come-out roll is equal to 7 or 11, return true because the game has been won. Otherwise, return false because the game has not been won.
bool craps( int roll )
This function determines if the game of craps was immediately lost on the come-out roll. It takes one integer argument: the come-out roll. It returns a boolean value: true if the game was immediately lost or false if the game was not immediately lost.
If the come-out roll is equal to 2, 3, or 12, return true because the game has been lost. Otherwise, return false because the game has not been lost.
void rollMore( int point, double wager )
This function continues the game of craps until it is won or lost. It takes two arguments: an integer that represents the point and a double that represents the amount that the user has wagered. It returns nothing.
The function should start by displaying the point.
Create a boolean variable and initialize it to a value of true to indicate that the game should continue.
In a loop that executes as long as the game should continue:
call the rollTheDice() function to roll the dice
if the dice roll is the same as the point, display a congratulatory message indicating the player has made their point and won the game. Calculate and display how much money the player has won. Finally, change the boolean variable that controls the loop to false to indicate the game should no longer continue.
otherwise, if the dice roll is 7, display a message that the player has lost the game. Display how much money the player has lost. Finally, change the variable that controls the loop to false to indicate the game should no longer continue.
double getWager()
This function gets the player's wager amount and makes sure that it's a valid amount. It takes no arguments. It returns a double: a valid wager amount.
The function should start by prompting the player to enter their wager amount. Like at a casino, there is a minimum wager ($5). Use a loop to check the player's wager amount and get a new amount if needed.
Also like at a casino, the wager amount cannot contain cents. So a wager amount of $5.25 should not be allowed. If the user adds cents to their wager amount, "give back" the cents to the user and use the remaining amount as the wager amount. So if the user tries to wager $5.25, the $0.25 should be "given back" and the wager amount adjusted to $5.
There are a number of ways to check for cents. One way is to take the original wager amount and subtract the integer portion of the wager amount. If the difference is greater than 0.00, the player added cents to the wager amount. To "give back" the cents, display the cents that are given back and update the wager amount so it's equal to just the integer portion of the original wager amount.
Finish the function by returning the wager amount.
Symbolic Constants
The program MUST use at least three symbolic constants. Some options are:
Program Requirements
As with the previous assignments and the assignments until the end of the semester, complete program documentation is required. For this assignment, that means that line documentation AND function documentation boxes are needed. Make sure that main() and any function that you write contains line documentation
Each function must have a documentation box detailing:
/***************************************************************
Function: void rollMore( int point, double wager )
Use: This function continues the craps game after the come-out roll
Arguments: point - an integer that represents the number that needs to
be rolled by the player to win the game
wager - a double that represents the amount the player
wagered on the game
Returns: Nothing
Note: None
***************************************************************/
See the documentation standards on the course webpage for more examples or if further clarification is needed. A program will not get full credit (even if it works correctly) if these standards are not followed
Make sure to actually use the symbolic constants that are created.
Be sure to #include <cstdlib> since the random number generator is being used in the program.
Make sure that the copy of the program that is handed in uses srand(34); to set the seed value for the random number generator.
Hand in a copy of the source code (CPP file) using Blackboard.
Output
Some runs of the program follow. Each one is marked with the srand value that produced the result.
Run 1 using srand(34); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 45.00 Roll: 6 + 4 = 10 The point is 10 Roll: 5 + 4 = 9 Roll: 5 + 3 = 8 Roll: 3 + 1 = 4 Roll: 5 + 1 = 6 Roll: 3 + 1 = 4 Roll: 3 + 5 = 8 Roll: 6 + 5 = 11 Roll: 1 + 2 = 3 Roll: 2 + 1 = 3 Roll: 6 + 6 = 12 Roll: 6 + 3 = 9 Roll: 4 + 2 = 6 Roll: 5 + 1 = 6 Roll: 3 + 5 = 8 Roll: 1 + 2 = 3 Roll: 6 + 3 = 9 Roll: 2 + 6 = 8 Roll: 6 + 1 = 7 Seven'd out! You lose! You lost $45.00
Run 2 using srand(6); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 15 Roll: 5 + 2 = 7 Winner! Winner! Congratulations! You won $30.00
Run 3 using srand(21); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 1.23 You can't bet $1.23. The minimum bet is 5.00. Please try again: 4.56 You can't bet $4.56. The minimum bet is 5.00. Please try again: 7.89 You can have $0.89 back. The wager cannot have cents. Your wager is now 7.00 Roll: 6 + 5 = 11 Winner! Winner! Congratulations! You won $14.00
Run 4 using srand(36); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 10.00 Roll: 1 + 1 = 2 Craps! You lose! You lost $10.00
Run 5 using srand(5); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 25 Roll: 1 + 2 = 3 Craps! You lose! You lost $25.00
Run 6 using srand(1); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 20 Roll: 6 + 6 = 12 Craps! You lose! You lost $20.00
Run 7 using srand(22); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 75.00 Roll: 3 + 1 = 4 The point is 4 Roll: 5 + 1 = 6 Roll: 4 + 4 = 8 Roll: 6 + 6 = 12 Roll: 4 + 4 = 8 Roll: 2 + 1 = 3 Roll: 5 + 1 = 6 Roll: 2 + 4 = 6 Roll: 3 + 5 = 8 Roll: 5 + 3 = 8 Roll: 2 + 1 = 3 Roll: 2 + 2 = 4 The point was made. Winner! You won $150.00
In: Computer Science
*****For C++ Program*****
Overview
For this assignment, write a program that uses functions to simulate a game of Craps.
Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the dice will determine whether the player (and anyone that has placed a bet) wins immediately, loses immediately, or if the game continues.
If the sum of the first roll of the dice (known as the come-out roll) is equal to 7 or 11, the player wins immediately.
If the sum of the first roll of the dice is equal to 2, 3, or 12, the player has rolled "craps" and loses immediately.
If the sum of the first roll of the dice is equal to 4, 5, 6, 8, 9, or 10, the game will continue with the sum becoming the "point." The object of the game is now for the player to continue rolling the dice until they either roll a sum that equals the point or they roll a 7. If the player "makes their point" (ie. rolls a sum that equals the point), they win. If they roll a 7, they lose.
There are many wagers that can be made of a game of craps. For this program, we'll focus on a wager known as the pass line bet. It's a wager that the player will win the game (ie. the initial roll is 7 or 11, or the player makes their point).
This wager pays 1/1 or even money. This means that if the user wagers $1, they'll win $1 if the game is won. In other words, if the game is won, the user will win the amount that they wagered plus their original wager. So if the wager amount was $10 and the game is won, the user will win $10 plus get their original wager amount for a total of $20.
Random Number Generation
The random number generator will be used to "roll" the dice.
If a reminder is needed about how to use the random number generator and how to limit the values that are produced, refer back to program 4:
Link to Program 4
Basic Logic for int main()
Seed the random number generator with a value of 34. Note: other seed values may be used to produce different results. However, the version that is handed in for grading MUST use a seed value of 34.
Call the getWager() function that is described below to get the amount that the player wants to wager on the game. Make sure to save the value that is returned from the getWager() function in a double variable.
Call the rollTheDice() function that is described below for the come-out roll (the first roll of the dice). Make sure to save the value that is returned from the rollTheDice() function in an integer variable.
If the game is immediately won, the game is over. Display a congratulatory message and how much money the player has won. Call the winner() function that is described below to determine if the game is immediately won. Make sure to pass the integer value that was returned from the rollTheDice() function to the winner() function.
If the game is immediately lost, the game is over. Display a message indicating the player has lost because they rolled craps and how much money the player has lost. Call the craps() function that is described below to determine if the game is immediately lost. Make sure to pass the integer value that was returned from the rollTheDice() function to the craps() function.
Otherwise, the game continues. Call the rollMore() function that is described below. Make sure to pass the integer value that was returned from the rollTheDice() function and the double value that was returned from the getWager() function to the rollMore() function.
The Functions
Write and use the following 5 functions in the program.
int rollTheDice()
This function simulates the rolling of the two dice. It takes no argument. It returns an integer: the sum of the two dice rolls.
This function should roll the dice by generating two random numbers between 1 and 6. The random numbers should be added together and then displayed along with the sum. Finally, return the sum of the dice.
bool winner( int roll )
This function determines if the game of craps was immediately won on the come-out roll. It takes one integer argument: the come-out roll. It returns a boolean value: true if the game was immediately won or false if the game was not immediately won.
If the come-out roll is equal to 7 or 11, return true because the game has been won. Otherwise, return false because the game has not been won.
bool craps( int roll )
This function determines if the game of craps was immediately lost on the come-out roll. It takes one integer argument: the come-out roll. It returns a boolean value: true if the game was immediately lost or false if the game was not immediately lost.
If the come-out roll is equal to 2, 3, or 12, return true because the game has been lost. Otherwise, return false because the game has not been lost.
void rollMore( int point, double wager )
This function continues the game of craps until it is won or lost. It takes two arguments: an integer that represents the point and a double that represents the amount that the user has wagered. It returns nothing.
The function should start by displaying the point.
Create a boolean variable and initialize it to a value of true to indicate that the game should continue.
In a loop that executes as long as the game should continue:
call the rollTheDice() function to roll the dice
if the dice roll is the same as the point, display a congratulatory message indicating the player has made their point and won the game. Calculate and display how much money the player has won. Finally, change the boolean variable that controls the loop to false to indicate the game should no longer continue.
otherwise, if the dice roll is 7, display a message that the player has lost the game. Display how much money the player has lost. Finally, change the variable that controls the loop to false to indicate the game should no longer continue.
double getWager()
This function gets the player's wager amount and makes sure that it's a valid amount. It takes no arguments. It returns a double: a valid wager amount.
The function should start by prompting the player to enter their wager amount. Like at a casino, there is a minimum wager ($5). Use a loop to check the player's wager amount and get a new amount if needed.
Also like at a casino, the wager amount cannot contain cents. So a wager amount of $5.25 should not be allowed. If the user adds cents to their wager amount, "give back" the cents to the user and use the remaining amount as the wager amount. So if the user tries to wager $5.25, the $0.25 should be "given back" and the wager amount adjusted to $5.
There are a number of ways to check for cents. One way is to take the original wager amount and subtract the integer portion of the wager amount. If the difference is greater than 0.00, the player added cents to the wager amount. To "give back" the cents, display the cents that are given back and update the wager amount so it's equal to just the integer portion of the original wager amount.
Finish the function by returning the wager amount.
Symbolic Constants
The program MUST use at least three symbolic constants. Some options are:
Program Requirements
As with the previous assignments and the assignments until the end of the semester, complete program documentation is required. For this assignment, that means that line documentation AND function documentation boxes are needed. Make sure that main() and any function that you write contains line documentation
Each function must have a documentation box detailing:
/***************************************************************
Function: void rollMore( int point, double wager )
Use: This function continues the craps game after the come-out roll
Arguments: point - an integer that represents the number that needs to
be rolled by the player to win the game
wager - a double that represents the amount the player
wagered on the game
Returns: Nothing
Note: None
***************************************************************/
See the documentation standards on the course webpage for more examples or if further clarification is needed. A program will not get full credit (even if it works correctly) if these standards are not followed
Make sure to actually use the symbolic constants that are created.
Be sure to #include since the random number generator is being used in the program.
Make sure that the copy of the program that is handed in uses srand(34); to set the seed value for the random number generator.
Hand in a copy of the source code (CPP file) using Blackboard.
Output
Some runs of the program follow. Each one is marked with the srand value that produced the result.
Run 1 using srand(34); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 45.00 Roll: 6 + 4 = 10 The point is 10 Roll: 5 + 4 = 9 Roll: 5 + 3 = 8 Roll: 3 + 1 = 4 Roll: 5 + 1 = 6 Roll: 3 + 1 = 4 Roll: 3 + 5 = 8 Roll: 6 + 5 = 11 Roll: 1 + 2 = 3 Roll: 2 + 1 = 3 Roll: 6 + 6 = 12 Roll: 6 + 3 = 9 Roll: 4 + 2 = 6 Roll: 5 + 1 = 6 Roll: 3 + 5 = 8 Roll: 1 + 2 = 3 Roll: 6 + 3 = 9 Roll: 2 + 6 = 8 Roll: 6 + 1 = 7 Seven'd out! You lose! You lost $45.00
Run 2 using srand(6); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 15 Roll: 5 + 2 = 7 Winner! Winner! Congratulations! You won $30.00
Run 3 using srand(21); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 1.23 You can't bet $1.23. The minimum bet is 5.00. Please try again: 4.56 You can't bet $4.56. The minimum bet is 5.00. Please try again: 7.89 You can have $0.89 back. The wager cannot have cents. Your wager is now 7.00 Roll: 6 + 5 = 11 Winner! Winner! Congratulations! You won $14.00
Run 4 using srand(36); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 10.00 Roll: 1 + 1 = 2 Craps! You lose! You lost $10.00
Run 5 using srand(5); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 25 Roll: 1 + 2 = 3 Craps! You lose! You lost $25.00
Run 6 using srand(1); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 20 Roll: 6 + 6 = 12 Craps! You lose! You lost $20.00
Run 7 using srand(22); on Windows PC
What's your wager (no cents allowed) (minimum: 5.00)? 75.00 Roll: 3 + 1 = 4 The point is 4 Roll: 5 + 1 = 6 Roll: 4 + 4 = 8 Roll: 6 + 6 = 12 Roll: 4 + 4 = 8 Roll: 2 + 1 = 3 Roll: 5 + 1 = 6 Roll: 2 + 4 = 6 Roll: 3 + 5 = 8 Roll: 5 + 3 = 8 Roll: 2 + 1 = 3 Roll: 2 + 2 = 4 The point was made. Winner! You won $150.00
In: Computer Science
The following data set shows the number of chirps in one minute from a cricket and the temperature outside (in degrees Fahrenheit):
| Chirps per Minute | Temperature |
|---|---|
| 104 | 56.2 |
| 115 | 67 |
| 130 | 74.8 |
| 135 | 60.6 |
| 142 | 69.4 |
| 143 | 61.1 |
| 152 | 69 |
| 164 | 74 |
| 166 | 78.5 |
What is the rank correlation coefficient? (Round to three decimal places.)
What is the critical rho value at a 0.01 significance?
Do we have correlation?
In: Statistics and Probability
|
Jiminy's Cricket Farm issued a 30-year, 8 percent semi-annual bond 7 years ago. The bond currently sells for 87 percent of its face value. The book value of the debt issue is $25 million. The company's tax rate is 34 percent. |
|
In addition, the company has a second debt issue on the market, a zero coupon bond with 7 years left to maturity; the book value of this issue is $77 million and the bonds sell for 74 percent of par. |
| Required: |
| (a) | What is the company's total book value of debt? (Do not round your intermediate calculations.) |
| (Click to select)102,000,000130,850,000130,080,00073,150,00078,730,000 |
| (b) |
What is the company's total market value of debt? (Do not round your intermediate calculations.) |
| (Click to select)78,730,00081,879,20074,793,50082,666,500102,000,000 |
| (c) |
What is your best estimate of the aftertax cost of debt? (Do not round your intermediate calculations.) |
| (Click to select)4.29%3.6%4.08%3.79%2.87% |
In: Finance
Gleem Sales Corporation uses the perpetual inventory system. On January 1, 2019, Gleem had: 2,600 units of product B with a unit cost of $40 per unit. A summary of purchases and sales during 2019 follows :
|
Unit |
Units |
Units |
|
|
Mar. 8 |
$44 |
3,000 |
|
|
June 13 |
4,000 |
||
|
Sept.19 |
50 |
800 |
|
|
Nov.23 |
55 |
1,200 |
|
|
Dec.28 |
2,800 |
Required
a. Assume that Gleem uses the first-in, first-out
method. Compute the cost of goods sold for 2019 and the
ending inventory balance at December 31, 2019, for product B.
B. Assume that Gleem uses the last-in, first-out
method. Compute the cost of goods sold for 2019 and the
ending inventory balance at December 31, 2019, for product B.
C. Assume that Gleem uses the weighted-average
cost method. Compute the cost of goods sold for 2019 and the ending
inventory balance at December 31, 2019, for product B.
In: Accounting