Questions
Given a list of positive integers c[0...n − 1], and a positive integer v, decides whether...

Given a list of positive integers c[0...n − 1], and a positive integer v, decides whether we can use numbers from c[0...n − 1] to make a sum of v, allowing any particular number in the list to be used multiple times. Or, mathematically, this means that there exists non-negative integer coefficients, x0, x1, ..., xn−1, such that v = x0c[0] + x1c[1] + ...xn−1c[n − 1].

For example, given c[0...3] = {2, 4, 6, 10}, and v = 17, the function shall return false, as it’s impossible to use numbers from c to add up to 17.

Given c[0...3] = {2, 4, 6, 10}, and v = 34, the function shall return true, as 34 can be expressed as 17 2’s added up (there are other ways to make value 34 as well).

Based upon the pseudocode given at the end,

(a) implement and test the following C++ function (minimally, you shall test the function with examples given above.

       /* Return true if v can be expressed as sums of values from coins (repetition is allowed)
       @param coins is a vector of positive int values
       @param v is a positive int
       @return true if v can be written as a sum of values from coins, return false otherwise
       */
       bool CoinChange (vector<int> coins, int v)

(b) In comment of your code, provide a tracing of the function’s execution with input: coins[0...3] = {3, 4, 6, 10}, and v = 14. You should:

• list in order the recursive calls made, with the parameters passed and values returned for each call.

• Comment on when backtracking happens.

Pseudocode

/*
Return true if v can be expressed as sum of values from c[0...n-1] @param c[0...n-1]: stores n positive integers
@param v: non-negative integers

2

*/
bool CoinChange (c[0...n-1], v) {

if (v==0)

for i=0 to n-1: if (c[i]==v)

//fill in the blank here
 //fill in the blank here

else if (c[i]<v)
//Think: if we include c[i] to make change amount of
// v, then we only need to make change amount of _____
if (CoinChange (c, ) == True): //fill in the parameter for the

                   return true; //function call above
    // If we haven’t returned true by now, return false
    return false;

}

In: Computer Science

Henry Hawkins uses an accrual-based accounting system. That means they report sales revenues on the income...

Henry Hawkins uses an accrual-based accounting system. That means they report sales revenues on the income statement in the period the revenues are earned and they report expenses on the income statement in the period the expenses were incurred to earn the revenue.

Based on the following information, calculate the cash received from customers for 2016.

Sales for 2016 (all on account) $1,545,000

Accounts receivable, January 1, 2016 $81,600

Accounts receivable, December 31, 2016 $100,800

Cash received from customers in 2016

Assume that the only thing happening in Accounts Payable is the purchase and payment of inventory. Based on the following information, calculate the cash paid for inventory for 2016:

Cost of goods sold $525,000

Inventory, January 1, 2016 $158,600

Accounts payable, January 1, 2016 $66,700

Inventory, December 31, 2016 $130,400

Accounts payable, December 31, 2016 $82,000

Cash paid for inventory in 2016

In: Accounting

Ascorbic asic (0.0100 M) was added to 10.0 mL of 0.0200 M Fe3+ at pH =...

Ascorbic asic (0.0100 M) was added to 10.0 mL of 0.0200 M Fe3+ at pH = 0.30, and the potential was monitored with Pt and saturated Ag/AgCl electrodes.

Dehydroascorbic acid + 2H+ + 2e- --> ascorbic acid + H2O (Eo = 0.390 V)

Using Eo = 0.767 V for the Fe3+/Fe2+ couple, calculate the cell voltage when 5.0, 10.0, and 15.0 mL of ascorbic acid have been added.

Correct answers are: 0.570 V, 0.307 V, and 0.184 V but not sure how to get there

In: Chemistry

Problem 2.3 Suppose that we take the universal set U to be the integers. Let S...

Problem 2.3 Suppose that we take the universal set U to be the integers. Let S be the even integers, letT be the integers that can be obtained by tripling any one integer and adding one to it, and let V be the set of numbers that are whole multiples of both two and three.

(i) Write S, T, and V using symbolic notation.

(ii) ComputeS∩T, S∩V andT∩V and give symbolic representations that do not use the symbols S, T, or V on the right-hand side of the equals sign.

In: Math

Some reasons firms internationalize are ___________ I. Narcissistic CEOs II. Trade barriers III. Imperfect Labor Markets...

Some reasons firms internationalize are ___________

I. Narcissistic CEOs
II. Trade barriers
III. Imperfect Labor Markets
IV. Intangible Assets
V. Vertical Integration
VI. Product Life Cycle
VII. Ethnocentrism

Group of answer choices

A)I, II, III, V, VI

B)II, III, IV, V, VI

C)I, II, III, IV, V, VI, VII

D)II, III, IV, V, VI, VII

E)I, II, III, IV only

In: Finance

Consider a particle with initial velocity v? that has magnitude 12.0 m/s and is directed 60.0...

Consider a particle with initial velocity v? that has magnitude 12.0 m/s and is directed 60.0 degrees above the negative x axis.

A) What is the x component v? x of v? ? (Answer in m/s)

B) What is the y component v? y of v? ? (Answer in m/s)

C) Now, consider this applet. Two balls are simultaneously dropped from a height of 5.0 m.How long tg does it take for the balls to reach the ground? Use 10 m/s2 for the magnitude of the acceleration due to gravity.

In: Physics

Exercise 10.7. On Jul 31, 2016, the payroll register of Reed Wholesale Company showed the following...

Exercise 10.7. On Jul 31, 2016, the payroll register of Reed Wholesale Company showed the following totals for the month: gross earnings, $39,600; social security tax, $2,455.20; Medicare tax, $574.20; income tax, $3,135.16; and net amount due, $33,435.44. Of the total earnings, $31,258.46 was for sales salaries and $8,341.54 was for office salaries. Prepare a general journal entry to record the monthly payroll of the firm on July 31, 2016. Use 20 as the page number for the general journal.

Problem 10.2A. City Place Movie Theaters has four employees and pays them on an hourly basis. During the week beginning June 24 and ending June 30, 2016, these employees worked the hours shown below. Information about hourly rates, marital status, withholding allowances, and cumulative earnings prior to the current pay period also appears below.

Employee

Regular Hours Worked

Hourly Rate

Marital Status

Withholding Allowances

Cumulative Earnings

Nelda Anderson

48

$12.70

M

1

$17,640

Earl Benson

48

$11.50

M

4

$16,975

Frank Cortez

40

$11.20

M

1

$16,080

Winnie Wu

50

$10.70

S

2

$14,660

Instructions

  1. Enter the basic payroll information for each employee in a payroll register. Record the employee’s name, number of withholding allowances, marital status, total and overtime hours, and regular hourly rate. Consider any hours worked beyond 40 in the week as overtime hours.
  2. Compute the regular, overtime, and gross earnings for each employee. Enter the figures in the payroll register.
  3. Compute the amount of social security tax to be withheld from each employee’s earnings. Assume a 6.2 percent social security rate on the first $113,700 earned by the employee during the year. Enter the figures in the payroll register.
  4. Compute the amount of Medicare tax to be withheld from each employee’s earnings. Assume a 1.45 percent Medicare tax rate on all salaries and wages earned by the employee during the year. Enter the figures in the payroll register.
  5. Determine the amount of federal income tax to be withheld from each employee’s total earnings. Use the tax tables in Figure 10.2 on pages 309-310. Enter the figures in the payroll register.
  6. Compute the net pay of each employee and enter the figures in the payroll register.
  7. Total and prove the payroll register.
  8. Prepare a general journal entry to record the payroll for the week ended June 30, 2016. Use 15 as the page number for the general journal.
  9. Record the general journal entry to summarize payment of the payroll on July 3, 2016.

Analyze: What are Nelda Anderson’s cumulative earnings on June 30, 2016?

In: Accounting

Obtain the supporting information from your Portfolio Project option. You will also use the Schedule A...

Obtain the supporting information from your Portfolio Project option. You will also use the Schedule A template included under that same option as applicable. If Schedule A is not applicable, state so on the form.

Show all calculations within the cells of the template. This means that you must use formulas and links so that your thought process can be examined. Make good use of comments to convey your thought process as well. No hard coding of solutions. Submit a single MS Excel file for grading.

Review the Portfolio Project Milestone Rubric to understand how you will be graded on the project.

The deliverables are as follows:
The completed Form 1040-Schedule A template.

Case:

Brian and Sheila Williams were married in October of 2008. They live at 1000 Main Street, Atlanta, GA 33127. Brian is a postal service worker. Sheila is a teacher at Grady High School. Brian’s social security number is 555-11-1111 and Sheila’s social security number is 555-22-2222. They have a dependent daughter Jayla who is 10 years old (Born on May 12th). Jayla’s social security number is 555-33-3333. In 2016, Brian's wages was $45,860 while Sheila's was $43,590.
Included or Excluded Items Reasoning for Including or Excluding and if Including, Indicate amount to include
Two years ago, the taxpayer loaned a friend $2000. The friend has filed for bankruptcy this year and will not be able to repay
Earned $100 interest on county municipal bonds
Found a diamond worth $1000 on the ground
Received $500 in death benefits fron Brian's father
Received $4,000 court settlement. $1,000 was punitive damanges.
Brian paid $400/month in child support
Received a $1000 gift from his brother
Sheila won $100 playing bingo
Brian paid $200/month in alimony to his ex-wife
Sheila received a $1000 gift from her mother
Sheila spent $300 on supplies for her classroom
Portfolio Investments
Stock Acquired Sold Sales Price Cost (Basis) Qualified Dividends
Red Stock 2/1/2016 10/5/2016 $6,000 $2,500 $0
White Stock 6/11/2009 10/15/2016 $5,000 $4,000 $100
Blue Stock 10/1/2005 8/3/2016 $2,000 $10,000 $0
Black Stock 3/6/2016 12/15/2016 $3,000 $5,000 $0
Yellow Stock 4/5/2006 N/A N/A $5,000 $300
Interest Income Source Amount
Money Market Account $200
Savings Account $25
State Municipal Bonds $35
Rental Property
They own and rent two pieces of residential real estate in Miami, FL. These properties were acquired with cash (so there are no mortgages on the homes). They both have real estate broker licenses in Georgia and Florida. They dedicate enough hours (through their business) to qualify as a “real estate professional” with regard to these properties.
Property 1
The first property is located at 17750 NW 17th Ave, Miami, FL. They collect $1,000 monthly in rent. The property was purchased June 30, 2016 for $150,000. The tax records show that the value of the land is $30,000 and the value of the home was $90,000 when purchased. They actively participate in the management of the real property.
The property has the following expenditures:
Property tax $7,000/yr
Repairs $   900/yr
Insurance $1,200/yr
Washing Machine $300 (purchased 6/2/2015)
Refrigerator $700 (purchased 7/1/2016)
Furniture $2,000 (purchased 4/1/2014)
Property 2
The second property is located at 5610 NW 11th Ave, Miami, FL. They collect $1,500 monthly in rent. The property was purchased on June 12, 2016 for $100,000. The tax records show that the value of the land is $20,000 and the value of the home was $80,000 when purchased. They actively participate in the management of the real property.
The property has the following expenditures:
Property tax $6,200/yr
Repairs $3,000/yr
Insurance $1,200/yr
Legal fees $   500/yr
Advertising Expense $   500/yr

Schedule A:

SCHEDULE A OMB No. 1545-0074
(Form 1040) Itemized Deductions 2016
Department of the Treasury Internal Revenue Service (99) ? Information about Schedule A and its separate instructions is at www.irs.gov/schedulea      Attachment
? Attach to Form 1040.      Sequence No. 07
Name(s) shown on Form1040     Your social security number
                                            Medical                   and                        Dental               Expenses                                                                                                                                                                          Caution. Do not include expenses reimbursed or paid by others.
1 Medical and dental expenses (see instructions)..... 1
2 Enter amount from Form 1040, line 38 2
3 Multiply line 2 by 10% (.10). But if either you or your spouse was
born before January 2, 1949, multiply line 2 by 7.5% (.075) instead 3
4 Subtract line 3 from line 1. If line 3 is more than line 1, enter -0-.   .   .   .   .   .    .   .     4
Taxes You                                           Paid 5 State and local (check only one box):
a ?   Income tax or } .   .   .   .   .    .   .
b ? General sales tax 5
6 Real estate taxes (see instructions) . . . . . . . . . 6
7 Personal Property taxes. .   .   .   .   .   .   .   .   .   .   . 7
8 Other taxes. List type and amount > .
8
9 Add lines 5 through 8 9
Interest You Paid     
Note.                          Your mortgage interest deduction may be limited (see instructions).
10 Home mortgage interest and points reported to you on Form 1098 10
11 Home mortgage interest not reported to you on Form 1098. If paid
to the person from whom you bought the home, see instructions
and show that person’s name, identifying no., and address ?
11
12 Points not reported to you on Form 1098. See instructions for
special rules   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 12
13 Mortgage insurance premiums (see instructions)   .   .   .   . . 13
14 Investment interest. Attach Form 4952 if required. (See instructions.) 14
15 Add lines 10 through 14.   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 15
Gifts to 16 Gifts by cash or check. If you made any gift of $250 or more,
Charity see instructions.   .   .   .   .   .   .   .   . . .   .   .   .   .   . 16
if you made a 17 Other than by cash or check. If any gift of $250 or more, see
gift and got a instructions. You must attach Form 8283 if over $500   .   .   . 17
benefits for it ., 18 Carryover from prior year   .   .   .   .   .   .   .   .   .   .   .   . 18
see instructions 19 Add lines 16 through 18.   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 19
Casualty and Theft Losses 20 Casualty or theft loss(es). Attach Form 4684. (See instructions.)   . .   .   .   .   .   .   . 20
Job Expenses                         and Certain                    Miscellaneous                   Deductions
21 Unreimbursed employee expenses—job travel, union dues, 21
ob education, etc. Attach Form 2106 or 2106-EZ if required. 22
(see instructions) ?
22 Tax preparation fees   .   .   .   .   .   .   .   .   .   .   .   . .
23 Other expenses—investment, safe deposit box, etc. List type
and amount ? 23
24
24 Add lines 21 through 23   .   .   .   .   .   .   .   .   .   .   . .
25 Enter amount from Form 1040, line 38 25
26 Multiply line 25 by 2% (.02).   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . 26
27 Subtract line 26 from line 24. If line 26 is more than line 24, enter -0-.   .   .   .   . . 27
Other Miscellaneous Deductions 28 Other—from list in instructions. List type and amount ?
28
Total                                                       Itemized                                          Deductions 29 Is Form 1040, line 38, over $150,000?
? No. Your deduction is not limited. Add the amounts in the far right column }
for lines 4 through 28. Also, enter this amount on Form 1040, line 40.
?   Yes. Your deduction may be limited. See the Itemized Deductions .   . 29
Worksheet in the instructions to figure the amount to enter.
30 If you elect to itemize deductions even though they are less than your standard
deduction, check here .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   . ? ?
For Paperwork Reduction Act Notice, see Form 1040 instructions.                Cat. No. 17145C Schedule A (Form 1040) 2016

Form 1040

Form 1040 Department of the Treasury Internal Revenue Service 2016
U.S. Individual Tax Form
OMB No.1545-0074 IRS Use Only--Do not write or staple in this space
For the year Jan.1--Dec. 31,2016, or any other tax year beginning ,2016, ,20 See Separate Instructions
Your first name and initial Last name Social Security Number
If a joint return, spouses first name and initial Last name Spouse Social Security Number
Home address( number and street). If you have a P.O. Box, see instructions Make Sure that the SSN(s) above
and on line 6c are correct .
City, town, or post office, state, and zip code. If you have a foreign address, also complete spaces below (see instructions). Presidential Election Campaign
Check here if you, or your spouse if filing jointly,
Foreign country name Foreign province/state/country Foreign postal code checking this box below will not change your tax
refund. you spouse
Filing Status 1. Single 4.Head of Household (with qualifying person.) (See instructions.) If
Check only one box 2.. married filing jointly the qualifying person is a child but not your dependent, enter this
3. Married filing separately. Enter spouse's SSN above child's name here
and full name here. 5. Qualifying Window(er) with dependent child
Exemptions 6a Yourself. If someone can claim you as a dependent, do not check box 6a ] Boxes checked
b spouse ] on 6a and 6b
If more than four c. Dependents
dependents, see (1) First name Last name (2) dependents (3) dependents (4) check if child under age 17 No. of children
instructions and social security number relationship to you qualifying for tax credit see on 6c who:
check here instructions. lived with you
did not live with you
due to divorce or
separation
(see instructions)
Dependents on
6c not entered
above
d. Total number of Exemptions Claimed Add numbers on lines above
Income 7 Wages, salaries, tips, etc. Attach Forms (W-2) 7 7000
8a Taxable interest. Attach Schedule B if required 8a
Attach Form(s) b Tax-exempt interest. Do not include on line 8a 8b
W-2 here. Also 9a Ordinary dividends. Attach Schedule B if required 9a
attach Forms(s) b Qualified dividends 9b
W-2 and 1099-R 10 Taxable refunds, credits, or offsets state or local income taxes 10
if tax was withheld. 11 Alimony received 11
12 Business income or (loss). Attach Schedule C or C-EZ 12
If you did not 13 Capital gain or (loss). Attach Schedule D if required. If not required, check here 13
get a W-2, 14 other gains or (losses). Attach Form 4797 14
see instructions 15a IRA distributions 15a b Taxable amount 15b
16a Pensions and annuities 16a b Taxable amount 16b
17 Rental real estate, royalties, partnerships, S corporations, trusts, etc. Attach Schedule E 17
18 Farm income or (loss). Attach Schedule F 18
19 Unemployment compensation 19
20a Social security benefits 20a b Taxable amount 20b
21 other income. List type and amount 21 300
22 combine the amounts in the far right column for lines 7 through 21. This is your total income This is your total income. 22
Adjusted 23 Educator expenses 23
Gross 24 Certain business expenses of reservists, performing artists, and fee-basis government. Attach Form 2106 or 2106-EZ 24
Income
25 Health-savings account deduction. Attach Form 8889 25
26 Moving Expenses. Attach Form 3903 26
27 Deductible part of self-employment tax. Attach Schedule SE 27
28 Self-employed SEP, SIMPLE, and qualified plans 28
29 Self-employed health insurance deduction 29
30 Penalty on early withdrawal of savings 30
31a Alimony paid b. Recipient's SSN 31a
32 IRA deduction 32
33 Student loan interest deduction 33
34 Tuition and fees. Attach Form 8917 34
35 Domestic production activities deduction. Attach Form 8903 35
36 Add lines 23 through 35 36
37 Subtract line 36 from line 22. This is your adjusted gross income. 37

In: Accounting

4. Let’s assume that your experiment in question 3 shows co-localization. However, your advisor suggests that...

4. Let’s assume that your experiment in question 3 shows co-localization. However, your advisor suggests that co-localization is not the same things as demonstrating protein-protein interactions between protein X and protein Y. She’s right. Propose a different experiment that can determine if these proteins actually interact as opposed to just co-localize. As always, describe the experiment, the expected data, and the controls you’d use.

In: Biology

Propose a new 'enzyme exercise' which could be adapted to online learning (i.e, perhaps an experiment...

Propose a new 'enzyme exercise' which could be adapted to online learning (i.e, perhaps an experiment that can be conducted in the kitchen). The experiment teaches the main concepts about enzymes and you describe an experiment with independent and dependent variables and controls. Feel free to submit something you found online and suggest modifications. Make sure to reference your sources. You may use your lab manual as a reference.

In: Biology