A) A poker hand consists of five cards randomly dealt from a standard deck of 52 cards. The order of the cards does not matter. Determine the following probabilities for a 5-card poker hand. Write your answers in percent form, rounded to 4 decimal places. Determine the probability that exactly 3 of these cards are Aces. Answer: % Determine the probability that all five of these cards are Spades. Answer: % Determine the probability that exactly 3 of these cards are face cards. Answer: % Determine the probability of selecting exactly 2 Aces and exactly 2 Kings Answer: % Determine the probability of selecting exactly 1 Jack. Answer: %
B) Lacy draws a diamond from a standard deck of 52 cards. Without replacing the first card, she then proceeds to draw a second card and gets a heart. Are these events independent? Input Yes or No: Determine the probability of drawing a diamond and then a heart without replacement. Write your answer in decimal form, rounded to four decimal places as needed. Answer = Linda draws a diamond from a standard deck of 52 cards. She returns the diamond to the deck, then draws a second card. Her second card is a heart. Are these events independent? Input Yes or No: Determine the probability of drawing a diamond and then a heart with replacement. Write your answer in decimal form, rounded to four decimal places as needed.
C)A 3-digit PIN number is selected. What it the probability that there are no repeated digits? The probability that no numbers are repeated is . Write your answer in decimal form, rounded to the nearest thousandth.
D)In a lottery daily game, a player picks four numbers from 0 to 9 (without repetition). How many different choices does the player have 1) If order matters? 2) If order does not matter?
In: Statistics and Probability
1. Assume the US is currently running a current account deficit (??0 < 0) and government budget deficit (? > ? ), and Donald Trump wins re-election in the upcoming presidential election. He then delivers on
his promise to cut the payroll tax to stimulate economic recovery.
a) What is the result of this fiscal policy response on the government budget deficit and public debt level of the US?
b) Use the definition of the current account to explain how the changing government budget deficit will also impact the trade balance. How do you know?
In: Economics
Question 1: Writing a Business Plan
Demonstrate why the "management team and company structure" section of the business plan is often given disproportionate weight among investors? Highlight 3 potential issues that can arise when this occurs.
Answer:
This is whole question
In: Operations Management
Hello, this is for C#.
Initialize variable balance to 1000 dollars. Prompt the player to enter a wager. Check that wager is less than or equal to balance, and if it’s not, have the user reenter wager until a valid wager is entered. After a correct wager is entered, run one game of craps. If the player wins, increase balance by wager and display the new balance. If the player loses, decrease balance by wager, display the new balance, check whether balance has become zero and, if so, display the message “Sorry. You busted!”
In: Computer Science
Hello, this is for C#. Initialize variable balance to 1000 dollars. Prompt the player to enter a wager. Check that wager is less than or equal to balance, and if it’s not, have the user reenter wager until a valid wager is entered. After a correct wager is entered, run one game of craps. If the player wins, increase balance by wager and display the new balance. If the player loses, decrease balance by wager, display the new balance, check whether balance has become zero and, if so, display the message “Sorry. You busted!”
In: Computer Science
Problem: Certain mathematical problems involve manipulation of the digits within a whole number. One such problem requires that the digits be re-arranged.In this project, we will reverse the order of the digits in a number.
Assignment: Design, develop, and test an Object-Oriented C++program that reads a whole number from the user, removes the sign and all leading and trailing zeroes from that number, and then performs the following operations on that number: 1) reverses the digits, 2) sorts the digits in descending order, and 3) sums the digits.For example, if the input value is -123450, the reversed value is 54321, the sorted value is 54321, and the sum of the digits is 15. Similarly, for an input value of 5600, the reversed value is 65, the sorted value is 65, and the sum of digits is 11.Develop a user-defined Digits class to perform all these digit manipulations.
Discussion: Extracting the digits from a whole number can be performed in at least two ways: 1) repeated modulus 10 and division by 10 operations, and 2)conversion of the number to a printable string and then examining the characters in the string. Either method will work, and both are acceptable. How your Digits class functions internally must be transparent to the user, e.g.there must be no cases in which the inner workings of the Digits class produce unique results dependent on its inner workings. Consider the following
•The Digits class must have at least one instance variable for the original value, one for the reversed value, one for the sorted value, and one for the sum of digits. The class must also include a setter method for the original value, and getters for the reversed value, sorted value, and sum of digits. None of the digit manipulations are allowed to modify the original value. All the getters must return their respective values to the user as whole numbers(not as strings).
•Your program must allow the user to enter a whole number(as a number, not a string)from the console and see its reversed value, sorted value, and the sum of its digits, and then to repeat this process until the user enters a zero.Use a single instance of the Digits class to manipulate all input values.
•For each input value, display the input value, its reversed value, its sorted value, and the sum of its digits.Coding
•Each user-defined class must be defined within its own set of .h (,hpp in Xcode) and .cpp files.
•The program must accept any valid signed whole number as input.Do not accept any value with a decimal fraction or other extraneous characters, including dollar signs.
•Validate all inputs and do not proceed until a valid value has been entered.
*** Make the code as simple as possible. Make sure to include every requirements.
**There should be three files.
The first first file is Digit.cpp.
The second file is Digit.h.
The third file is main.cpp
In: Computer Science
Modify the attached TicTacToeStart.cpp
Your job is to complete three functions init, printBoard, and gameOver
#include <iostream>
using namespace std;
char gameBoard[3][3];
void init(){
/*
using a double loop to initialize all gameBoard element as 'E'
*/
}
void printBoard()
{
/*using a double loop to print out gameboard
*/
}
bool gameOver()
{
/*if any row or column, or diagonal are all X or O, return true*/
return false;
}
int main()
{
char again;
do{
bool done=false;
bool xTurn=true;
int count=0;
init();
while(!done){
printBoard();
if(xTurn)
cout<<"It's X's turn"<<endl;
else
cout<<"It is O's turn"<<endl;
int row, col;
do{
cout<<"Please enter two integer to specify an empty spot:";
cin>>row>>col;
}while(gameBoard[row-1][col-1]!='E');
if(xTurn)
gameBoard[row-1][col-1]='X';
else
gameBoard[row-1][col-1]='O';
count++;
if(gameOver()){
done=true;
if(xTurn)
cout<<"X wins!"<<endl;
else
cout<<"O wins!"<<endl;
}else if(count==9){
done=true;
cout<<"It's a tie!"<<endl;
}
xTurn=!xTurn;
}
cout<<"Play again? Enter y to continue:";
cin>>again;
}while(again=='y' || again=='Y');
return 0;
}
In: Computer Science
Consider a Cournot duopoly of two identical cigarette producing firms, Warlboro and Cramel. They produce tobacco of same quality and, ceteris paribus, each firm sells to 1 million smokers, making $100 profits per smoker.
These 2 million smokers are addicts (as most smokers are). They may change which tobacco they smoke but they do not quit. On the other hand, those who are not smokers will not start even if they are encouraged (because they understand the harm). In other words, the size of the market is fixed (the demand is extremely inelastic).
Any of the two firms may try to win the customers away from the rival by advertising. If Warlboro spends $20 million on the ads while Cramel spends nothing, Warlboro wins additional half a million smokers, that is, Warlboro sells to 1.5 million while Cramel sells to 0.5 million. If Cramel spends $20 million on the ads while Warlboro spends nothing, Cramel wins additional half a million smokers, that is, Cramel sells to 1.5 million while Warlboro sells to 0.5 million. If both firms spend $20 million on the ads, their efforts cancel each the other and each firm sells to 1 million smokers. In every scenario, the profits per smoker remains $100 (not accounting for the ad spending).
Q.Think about this game and explain, in your words (50-200 words), why the tobacco producers may lobby the government to ban (make it illegal) advertising tobacco products.
In: Economics
A rookie quarterback is negotiating his first NFL contract. His opportunity cost is 10%. He has been offered three possible 4-year contracts. Payments are guaranteed, and they would be made at the end of each year. Terms of each contract are as follows:
| 1 | 2 | 3 | 4 |
| Contract 1 | $3,000,000 | $3,000,000 | $3,000,000 | $3,000,000 |
| Contract 2 | $2,000,000 | $3,000,000 | $4,000,000 | $5,000,000 |
| Contract 3 | $6,500,000 | $1,000,000 | $1,000,000 | $1,000,000 |
As his adviser, which contract would you recommend that he accept?
Select the correct answer.
|
|||
|
|||
|
|||
|
|||
|
|
You have saved $5,000 for a down payment on a new car. The largest monthly payment you can afford is $450. The loan will have a 6% APR based on end-of-month payments. What is the most expensive car you can afford if you finance it for 48 months? For 60 months? Do not round intermediate calculations. Round your answers to the nearest cent. Financed for 48 months: $ Financed for 60 months: $ |
In: Finance
The proportion of brown M&M's in a milk chocolate packet is approximately 14%. Suppose a package of M&M's typically contains 66 M&M's.
a) State the random variable.
c) Explain why this is a binomial experiment. Check all that apply.
1). p = 14% remains constant from one randomly selected M&M to another
2). There are a fixed number of M&Ms,
3). 66 There are more than two outcomes for each M&M
4). There are only two outcomes for each M&M
5). Whether or not one randomly selected M&M is brown will affect whether or not another randomly selected M&M is brown
7). Whether or not one randomly selected M&M is brown will not affect whether or not another randomly selected M&M is brown
8). There is not a fixed number of M&Ms
Find the probability, to 4 decimal places:
It is possible when rounded that a probability is 0.0000
d) exactly none are brown.
e) exactly 64 are brown.
f) at least 56 are brown.
g) at most 61 are brown.
h) all of them are brown.
i) Is 66 an unusually high number of M&Ms that are brown in a sample of 66 M&Ms?
In: Statistics and Probability