Questions
Enter the left end and right end of a range of integers. User chooses an integer...

Enter the left end and right end of a range of integers. User chooses an integer in that range. Computer makes a guess that equals the mid of the range. User gives a feedback for each guess: 1 for too big, 2 for too small and 3 for just right. When the feedback is 1 (too big), the computer throws away any integer that is bigger than guess. When the feedback is 2 (too small), the computer discards the integers any integers that is smaller than the guess. When computer makes a correct guess, the game ends. In C++

Note that your code must ensure a user to entre a feedback in [1, 3].

Sample input/output:

Enter left end in range: 0

Enter right end in range: 10

User has an int in [0, 10]. Computer will guess.

guess #1: 5. How is my guess?

1. too big   2. too small    3. just right

Enter only 1, 2, or 3: 2

guess #2: 8. How is my guess?

1. too big   2. too small    3. just right

Enter only 1, 2, or 3: 1

guess #3: 6. How is my guess?

1. too big   2. too small    3. just right

Enter only 1, 2, or 3: 2

guess #4: The answer must be 7.

In: Computer Science

Crane Corp. management is evaluating two mutually exclusive projects. The cost of capital is 15 percent....

Crane Corp. management is evaluating two mutually exclusive projects. The cost of capital is 15 percent. Costs and cash flows for each project are given in the following table.

Year Project 1 Project 2
0 -$1,291,014 -$1,324,281
1 269,000 385,000
2 346,000 385,000
3 407,000 385,000
4 519,000 385,000
5 799,000 385,000

Calculate NPV and IRR of two projects. (Enter negative amounts using negative sign, e.g. -45.25. Do not round discount factors. Round other intermediate calculations and final answer to 0 decimal places, e.g. 1,525. Round IRR answers to 2 decimal places, e.g. 15.25 or 12.25%.)

NPV of project 1 is $
NPV of project 2 is $
IRR of project 1 is %
IRR of project 2 is %


Which project should be accepted?

Crane Corp. should accept

a. project

b. 1 neither project

c. project 2

In: Finance

D company's current share price is $20 and it is expected to pay a $1 dividend...

D company's current share price is $20 and it is expected to pay a $1 dividend per share next year. After that, the firm's dividends are expected to grow at a constant rate of 4% per year.

1) what is an estimate of D's cost of capital? (hint: thinking about $1 dividend is D1 or D0 when you apply the formula)

2)D also has preferred stock outstanding that pays a $2 per share fixed dividend and the preferred stock is currently priced at $28, What is D's cost of preferred stock?

3) D has 5 million common shares outstanding and 1 million preferred shares outstanding, and its equity has a total book value of $50 million. Its liabilities have a market value of $20 million. If D's common and preferred shars are priced as in question 1 and 2, what is the market value of D's total assets? and what are the weights of common stock, preferred stock and debt respectively?

4) D faces a 40% tax rate and 6% pretax cost of debt. Given the information in questions 1 to 3 and your answers to those problems, what is D's WACC?

In: Finance

For each of the following scenarios, match to the applicable formula and explain why it fits...

For each of the following scenarios, match to the applicable formula and explain why it fits with that formula.

James wants to see how many ways he can select some poker chips if he has 4 red, 2 blue and a black. How many ways can he place a bet?

James decides to put his 4 red, 2 blue and 1 black poker chip in a line. How many orders can he do this in?

James decides he will trade his poker chips so he only has one of each colour (blue, red and black) but he gets a green one as well. How many ways can he place a bet now?

Out of his four poker chip, James decides to select two to bet. How many different ways can he do this?

James wants to place 3 bets of one chip each in a game. In how many orders can he accomplish this with his four chips?

a. n!/a!b!c!...

b. n P r

c. n C r

d. (p+1)(q+1)(r+1)... - 1

e. 2^n - 1

In: Statistics and Probability

7. Tim wants to buy an apartment that costs $1,500,000 with an 85% LTV mortgage. Tim...

7. Tim wants to buy an apartment that costs $1,500,000 with an 85% LTV mortgage. Tim got a 30 year, 3/1 ARM with an initial teaser rate of 4.875%. The reset margin on the loan is 300 basis points above 1 year CMT. There are no caps. Tim anticipates the index to be 2.50% at the time of the 1st reset.

If the index resets to 2.50% as Tim forecasts, what will his new mortgage payment be in year 4?

8. Tim wants to buy an apartment that costs $1,500,000 with an 85% LTV mortgage. Tim got a 30 year, 3/1 ARM with an initial teaser rate of 3.75%. The reset margin on the loan is 300 basis points above 1 year CMT. There are no caps. The index was 1% at the time of origination and remained at 1% during every rate reset. Tim also had to pay 3.0 points for this loan.

9. Bob got a 30 year Fully Amortizing FRM for $2,500,000 at 4%, except with non-constant payments. For the first 2 years Bob will pay $1,250 per month. The loan will become a fully amortizing mortgage after 2 years. What will be the balance on this mortgage after 2 years?

In: Finance

1. For their uniforms, the Vikings soccer team has a choice of six different styles for...

1. For their uniforms, the Vikings soccer team has a choice of six different styles for the shirts, five for the shorts, and five colours for their socks. How many different uniforms are possible? A) 16 B) 150 C) 60 D) 55

2. The Niagara Ice Dogs have 4 people trying out for goal. Their coach wants to try a different goalie in each of the three periods of an exhibition game. In how many ways can the coach choose the three different goalies for the game? A) 12 B) 24 C) 7 D) 55 E) 20

3. How many arrangements of the word ALGORITHM begin with a vowel and end with a consonant? A) 18 B) 5040 C) 90720 D)181440 E) 362880

4. From a class of 14 boys and 9 girls, how many ways can I choose a committee of 6 to analyze classroom productivity with and equal number of boys and girls? A) 126 B) 252252 C) 30576 D) 448

5.A bag contains three green Christmas ornaments and four gold ornaments. If you randomly pick a single ornament from the bag, what is the probability that it will be green? A) 3/4 B)3/7 C)4/7 D)4/3

6. A bag contains three green Christmas ornaments and four gold ornaments. If you randomly pick two ornaments from the bag, at the same time, what is the probability that both ornaments will be gold?
A) 4/7 B) 2/7 C)3/7 D) none of the above

7. How many 4 digit number can be made using 0 -7 with no repeated digits allowed?
A) 5040 B) 4536 C) 2688 D) 1470

8. A coin is tossed three times. What is the probability of tossing three heads in a row?
A) 3/8 B)1/8 C)1/2 D)7/8

9. Two standard dice are rolled. What is the probability of rolling doubles (both the same number)?
A) 1/6 B)1/4 C)1/36 D) 5/36

10. There are 50 competitors in the men’s ski jumping. 30 move on to the qualifying round. How many different ways can the qualifying round be selected? A) 50! B) 30! C) 80 D) 1500 E) 1.25 × 1046

11. How many ways can the manager of a baseball team put together a batting order of his nine players, if the shortstop must bat 3rd?
A) 40320 B) 504 C) 362880 D) 120960

12. If a CD player is programmed to play the CD tracks in random order, what is the probability that it will play six songs from a CD in order from your favourite to your least favourite? A)1/6 B)2/3 C)1/720 D)5/6 E) 1/360

13. A group of eight grade 11 and five grade 12 students wish to be on the senior prom committee. The committee will consist of three students. What is the probability that only grade 12 students will be elected, assuming that all students have an equal chance of being elected?

In: Statistics and Probability

Narrative Two Given the following information about two assets: Expected Return of Asset 1 12.00% Standard...

Narrative Two


Given the following information about two assets:

Expected Return of Asset 1

12.00%

Standard Deviation of Asset 1

8.00%

Expected Return of Asset 2

16.00%

Standard Deviation of Asset 2

15.00%



1. Calculate the minimum standard deviation of a two-asset portfolio consisting of these two assets when the covariance between Asset 1's return and Asset 2's return is -0.009.

2.Calculate the standard deviation of a two-asset portfolio consisting of these two assets when w1 = 0.75 and the covariance between Asset 1's return and Asset 2's return is -0.009

3. The standard deviation of a two-asset portfolio consisting of these two assets may be zero if the covariance between Asset 1's return and Asset 2's return is ______

4. if the covariance between Asset 1's return and Asset 2's return is -0.009, the correlation coefficient between these two assets' returns is estimated to be ______.

please ANSWER THIS QUESTION AND EVERYTHING IT ASKING TO CALCULATE IN IT

In: Finance

This dataset contains two variables: fertilizer type (1, 2, or 3) and crop yield per square...

This dataset contains two variables: fertilizer type (1, 2, or 3) and crop yield per square foot. Using ANOVA, test the null hypothesis that the three fertilizers are equally effective. Hint: Notice that the data are arranged in what's called a "long" format (one long column of data). To you ANOVA, you first need to rearrange the data into three columns.

1. What is the value of the F-statistic? Answer

2. What is the p-value that the three means are the same? Answer
3. At α=.05, should the null hypothesis be rejected? AnswerRejectDon’t reject

4. Which fertilizer should you choose based on these results (be careful here!)?

Data Set

fertilizer yield
1 177.228692
1 177.550041
1 176.408462
1 177.703625
1 177.125486
1 176.778342
1 176.746302
1 177.061164
1 176.274949
1 177.967203
1 176.6013
1 177.030543
1 177.479507
1 176.87413
1 176.114388
1 176.008395
1 176.108313
1 178.357441
1 177.262445
1 176.918845
1 176.239016
1 176.57307
1 176.039298
1 176.817922
1 176.160587
1 177.226424
1 175.938533
1 177.164937
1 175.36084
1 177.276996
1 175.945444
1 175.88278
2 176.479341
2 176.044342
2 177.412462
2 177.360818
2 177.385499
2 176.975808
2 177.379779
2 177.997995
2 176.434863
2 176.933265
2 175.98348
2 177.034093
2 176.436762
2 176.067745
2 177.121049
2 177.197721
2 176.603724
2 177.208171
2 177.148829
2 176.819077
2 176.999067
2 178.134605
2 176.429156
2 176.668323
3 177.104186
3 178.079635
3 176.903422
3 177.540284
3 177.03271
3 178.286042
3 176.40541
3 176.43083
3 177.396331
3 176.925576
3 177.055046
3 177.344164
3 177.128368
3 177.168302
3 176.353941
3 179.060899
3 176.300517
3 177.593352
3 177.115245
3 177.794457

In: Statistics and Probability

On October 1, 2018, Jay Pryor established an interior decorating business, Pioneer Designs. During the month,...

On October 1, 2018, Jay Pryor established an interior decorating business, Pioneer Designs. During the month, Jay completed the following transactions related to the business:

Oct. 1 Jay transferred cash from a personal bank account to an account to be used for the business in exchange for common stock, $32,800.
4 Paid rent for period of October 4 to end of month, $3,180.
10 Purchased a used truck for $27,000, paying $3,000 cash and giving a note payable for the remainder.
13 Purchased equipment on account, $12,790.
14 Purchased supplies for cash, $2,200.
15 Paid annual premiums on property and casualty insurance, $4,920.
15 Received cash for job completed, $13,780.

Enter the following transactions on Page 2 of the two-column journal:

21 Paid creditor a portion of the amount owed for equipment purchased on October 13, $4,560.
24 Recorded jobs completed on account and sent invoices to customers, $15,680.
26 Received an invoice for truck expenses, to be paid in November, $1,440.
27 Paid utilities expense, $1,640.
27 Paid miscellaneous expenses, $590.
29 Received cash from customers on account, $6,560.
30 Paid wages of employees, $4,360.
31 Paid dividends, $3,640.

Required:

1. Journalize and insert the posting references for each transaction in a two-column journal beginning on Page 1, referring to the following chart of accounts in selecting the accounts to be debited and credited. For a compound transaction, if an amount box does not require an entry, leave it blank.

11 Cash 31 Common Stock
12 Accounts Receivable 33 Dividends
13 Supplies 41 Fees Earned
14 Prepaid Insurance 51 Wages Expense
16 Equipment 53 Rent Expense
18 Truck 54 Utilities Expense
21 Notes Payable 55 Truck Expense
22 Accounts Payable 59 Miscellaneous Expense
General Journal Page 1
Date Description Post. Ref. Debit Credit
2018
Oct. 1 Cash
Common Stock
Oct. 4 Rent Expense
Cash
Oct. 10 Truck
Cash
Notes Payable
Oct. 13 Equipment
Accounts Payable
Oct. 14 Supplies
Cash
Oct. 15
Oct. 15
General Journal Page 2
Date Description Post. Ref. Debit Credit
2018
Oct. 21
Oct. 24
Oct. 26
Oct. 27
Oct. 27
Oct. 29
Oct. 30
Oct. 31



2. Post (in chronological order) the journal to a ledger of four-column accounts, inserting appropriate posting references in the general journal as each item is posted. Extend the balances to the appropriate balance columns after each transaction is posted. If an amount box does not require an entry, leave it blank.

General Ledger
Account Cash ACCOUNT NO. 11
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 1 1
Oct. 4 1
Oct. 10 1
Oct. 14 1
Oct. 15 1
Oct. 15 1
Oct. 21 2
Oct. 27 2
Oct. 27 2
Oct. 29 2
Oct. 30 2
Oct. 31 2
Account Accounts Receivable ACCOUNT NO. 12
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 24 2
Oct. 29 2
Account Supplies ACCOUNT NO. 13
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 14 1
Account Prepaid Insurance ACCOUNT NO. 14
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 15 1
Account Equipment ACCOUNT NO. 16
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 13 1
Account Truck ACCOUNT NO. 18
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 10 1
Account Notes Payable ACCOUNT NO. 21
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 10 1
Account Accounts Payable ACCOUNT NO. 22
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 13 1
Oct. 21 2
Oct. 26 2
Account Common Stock ACCOUNT NO. 31
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 1 1
Account Dividends ACCOUNT NO. 33
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 31 2
Account Fees Earned ACCOUNT NO. 41
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 15 1
Oct. 24 2
Account Wages Expense ACCOUNT NO. 51
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 30 2
Account Rent Expense ACCOUNT NO. 53
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 4 1
Account Utilities Expense ACCOUNT NO. 54
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 27 2
Account Truck Expense ACCOUNT NO. 55
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 26 2
Account Miscellaneous Expense ACCOUNT NO. 59
Balance
Date Item Post. Ref. Debit Credit Debit Credit
2018
Oct. 27 2

Feedback

1. Identify which accounts are affected in each transaction. Keep in mind that every transaction involves at least two accounts. Determine whether the account increases or decreases and record each increase or decrease following the rules of debit and credit. Use the Posting Reference column to enter the corresponding account number from the general ledger account. Remember total debits should equal total credits in your entries.

2. See the illustration in Exhibit 4 below. The 4-column accounts ledger is a more formal presentation of the T accounts. The Posting Reference column should have the page number from the journal where the transaction is found. The debits and credits for each journal entry are posted to the accounts in the order in which they occur in the journal. After each entry, subtotal the 4-column ledger, making sure to maintain the correct normal balance and double-checking any non-normal balances to see if they are valid or possible.

Journal Entry Account
Common Transaction Terminology Debit Credit
Received cash for services provided Cash Fees Earned
Services provided on account Accounts Receivable Fees Earned
Received cash on account Cash Accounts Receivable
Purchased on account Asset account Accounts Payable
Paid on account Accounts Payable Cash
Paid cash Asset or expense account Cash
Issued common stock Cash and/or other assets Common Stock
Paid dividends Dividends Cash

Learning Objective 1, Learning Objective 2, Learning Objective 3 and Learning Objective 4.

3. Prepare an unadjusted trial balance for Intrex Designs as of October 31, 2018. List all accounts in the order of Assets, Liabilities, Stockholders’ equity, Revenues, and Expenses.For those boxes in which no entry is required, leave the box blank. The first two account titles are filled in as an example.

Pioneer Designs
Unadjusted Trial Balance
October 31, 2018
Debit Balances Credit Balances
Cash
Accounts Receivable
Totals

4. Determine the excess of revenues over expenses for October.
$

In: Accounting

Simplify to a minimum SOP each stating the key properties used 1) f=xyz’+xyz 2) g=x’y’z’+x’y’z+x’yz+xy’z+xyz 3)...

Simplify to a minimum SOP each stating the key properties used

1) f=xyz’+xyz

2) g=x’y’z’+x’y’z+x’yz+xy’z+xyz

3) f=abc’+ab’c+a’bc+abc

4) f=(a+b’+c)(a+b’+c’)(a’+b+c)(a’+b’+c)

5) g=(x’+y’+z’)(x’+y+z’)(x’+y+z)

Find the compliment of 6, 7, 8

6) F=x’yz’+xy’z’+xyz

7) G=(w+x’+y)(w’+x+z)(w+x+y+z)

8) H=(a+b’c)d’+(a’+c’)(c+d)

For the table

a

b

c

f

0

0

0

0

0

0

1

1

0

1

0

0

0

1

1

1

1

0

0

1

1

0

1

0

1

1

0

1

1

1

1

1

1. write the canonical sum

2. Write the canonical product

3. Find the minimum SOP stating properties used Find the minimum POS stating properties used

4. Implement minimum SOP above(11) in a gate level schematic Implement minimum POS above(12) in a gate level schematic

In: Electrical Engineering