Questions
In a metabolic experiment a 229 gm rat consumed 30 ml of oxygen in 7 min....

In a metabolic experiment a 229 gm rat consumed 30 ml of oxygen in 7 min. Calculate the oxygen consumption per hour. Calculate the metabolic rate in ml O2/Kg/hr.

In: Anatomy and Physiology

A motivational speaker claims that wearing red on the day of an exam “energizes” the brain...

A motivational speaker claims that wearing red on the day of an exam “energizes” the brain and improves performance. Your psychology professor doubts that this is true. Design an experiment that would test whether the speaker is correct.

In: Psychology

For a pharmalogical experiment you need 1L of a drug at a concentration of 10x10-6 in...

For a pharmalogical experiment you need 1L of a drug at a concentration of 10x10-6 in saline. You have aliquots of a stock solution at a concentration of 10mM. How do you make the working solution?

In: Chemistry

1. You measure the Gravity constant which is g= 9.8 m/s2. If your experiment yields a...

1. You measure the Gravity constant which is g= 9.8 m/s2. If your experiment yields a value for g=8.85 m/s2, what is the percentage error in the value of g?

In: Physics

Is there any general relation between the amount of charge possesses and its range in air?...

Is there any general relation between the amount of charge possesses and its range in air? Were any bremsstrahlung produced in an experiment of absorption of beta particles ? How may bremsstrahlung production be minimized?

In: Physics

Intro to Python I'm getting trouble obtaining the solution for the following questions: "How many babies...

Intro to Python

I'm getting trouble obtaining the solution for the following questions:

"How many babies were born with names starting with that least-common letter?" For the file used it is "U"

"How many babies were born with names starting with that-common letter"? For the file used it is "A"

"How many people have that name?" (This follows the question "By default, the Social Security Administration's data separates out names by gender. For example, Jamie is listed separately for girls and for boys. If you were to remove this separation, what would be the most common name in the 2010s regardless of gender?" And the file I used it is "Isabella")

"What name that is used for both genders has the smallest difference in which gender holds the name most frequently? In case of a tie, enter any one of the correct answers."

This is the problem:

#-----------------------------------------------------------
#The United States Social Security Administration publishes
#a list of all documented baby names each year, along with
#how often each name was used for boys and for girls. The
#list is used to see what names are most common in a given
#year.
#
#We've grabbed that data for any name used more than 25
#times, and provided it to you in a file called
#babynames.csv. The line below will open the file:

names_file = open('../resource/lib/public/babynames.csv', 'r')

#We've also provided a sample subset of the data in
#sample.csv.
#
#Each line of the file has three values, separated by
#commas. The first value is the name; the second value is
#the number of times the name was given in the 2010s (so
#far); and the third value is whether that count
#corresponds to girls or boys. Note that if a name is
#given to both girls and boys, it is listed twice: for
#example, so far in the 2010s, the name Jamie has been
#given to 611 boys and 1545 girls.
#
#Use this dataset to answer the questions below.


#Here, add any code you want to allow you to answer the
#questions asked below over on edX. This is just a sandbox
#for you to explore the dataset: nothing is required for
#submission here.

//

This is the format of the file but this is not file the problem is based on:

Isabella,42567,Girl
Sophia,42261,Girl
Jacob,42164,Boy
Emma,35951,Girl
Ethan,34523,Boy
Mason,34195,Boy
William,34130,Boy
Olivia,34128,Girl
Jayden,33962,Boy
Ava,30765,Girl

I found the solution and it's this:

baby_list=[]

for line in names_file:
line=line.strip().split(",")
name=line[0]
count=int(line[1])
gender=line[2]
baby_list.append([name,count,gender])

#How many total names are listed in the database?
print('Total names:',len(baby_list))

#How many total births are covered by the names in the database?
births=0
for data in baby_list:
births=births+data[1]

print('total births:',births)

#How many different boys' names are there that begin with the letter Z?
#(Count the names, not the people.)
names_with_z=0
for data in baby_list:
if data[0][0]=='Z' and data[2]=='Boy':
names_with_z=names_with_z+1

print('Different boys names are there that begin with the letter Z:',names_with_z)

#What is the most common girl's name that begins with the letter Q?
names_with_Q=0
for data in baby_list:
if data[0][0]=='Q' and data[2]=='Girl' and data[1]> names_with_Q:
girl_name=data[0]
names_with_Q=data[1]

print('The most common girl\'s name that begins with the letter Q:',names_with_Q)

#How many total babies were given names that both start and end with vowels (A, E, I, O, or U)?
vowels='AEIOUaeiou'
total_names=0
for data in baby_list:
if data[0][0] in vowels and data[0][-1] in vowels:
total_names=total_names+ data[1]

print('The total babies were given names that both start and end with vowels(A,E,I,O,or U):'\
,total_names)

#Here, add any code you want to allow you to answer the
#questions asked below over on edX. This is just a sandbox
#for you to explore the dataset: nothing is required for
#submission here.

#What letter is the least common first letter of a baby's name
name_list = {}
for i in range(len(baby_list)):
fl = list(baby_list[i][0])[0]
if fl not in name_list.keys():
name_list[fl] = 1
else:
name_list[fl] = int(name_list[fl]) + 1
#What letter is the least common first letter of a baby's name
leastKey = 9999
mostKey = 0
least=''
most=''
print(name_list.keys())
for key in name_list.keys():
if name_list[key] < leastKey:
least = key
leastKey = name_list[key]
if name_list[key] > mostKey:
most = key
mostKey = name_list[key]
print('\nThe letter is the least common first letter of a baby\'s name is: ',least)
#How many babies were born with names starting with that least-common letter?
print('\nNumber of babie names starting with that least-common letter',name_list[least])
#What letter is the most common first letter of a baby's name
print("\nThe letter is the most common first letter of a baby's name is: ",most)
#How many babies were born with names starting with that most-common letter?
print('\nNumber of babie names starting with that most-common letter: ',name_list[most])

'''
#By default, the Social Security Administration's data separates out names by gender.
#For example, Jamie is listed separately for girls and for boys.
#If you were to remove this separation, what would be the most common name
in the 2010s regardless of gender?
'''
name_list = {}
for i in range(len(baby_list)):
name = baby_list[i][0]
ctr = baby_list[i][1]
gndr = baby_list[i][2]
if name in name_list.keys():
name_list[name] = int(name_list[name]) + 1
else:
name_list[name] = 1
mostKey = 0
most=''
for key in name_list.keys():
if name_list[key] > mostKey:
most = key
mostKey = name_list[key]
print('\nThe most common name in the 2010s regardless of gender: ',most)

#How many people would have that name?
print('\nThe number of people have most common name regardless of gender: ',mostKey)

'''
What name that is used for both genders has the smallest difference in
which gender holds the name most frequently? In case of a tie,
enter any one of the correct answers.
'''
mini = name_list[most]
name_list = {}
for i in range(len(baby_list)):
name = baby_list[i][0]
ctr = baby_list[i][1]
gndr = baby_list[i][2]
if name in name_list.keys() and gndr != name_list[name][1]:
name_list[name] = [int(name_list[name][0]) -1, gndr, 1]
else:
name_list[name] = [1, gndr, 0]

for x in name_list.keys():
if name_list[x][2] == 1 and name_list[x][0] < mini:
mini = name_list[x][0]
nme = x
print('Name that is used for both genders has the smallest difference: ',x)

In: Computer Science

The ledger of Tyler Lambert and Jayla Yost, attorneys-at-law, contains the following accounts and balances after...

The ledger of Tyler Lambert and Jayla Yost, attorneys-at-law, contains the following accounts and balances after adjustments have been recorded on December 31, 2016:

Lambert and Yost

ADJUSTED TRIAL BALANCE

December 31, 2016

ACCOUNT TITLE DEBIT CREDIT

1

Cash

33,700.00

2

Accounts Receivable

47,400.00

3

Supplies

1,900.00

4

Land

120,100.00

5

Building

157,300.00

6

Accumulated Depreciation-Building

67,000.00

7

Office Equipment

63,500.00

8

Accumulated Depreciation-Office Equipment

22,200.00

9

Accounts Payable

27,700.00

10

Salaries Payable

5,600.00

11

Tyler Lambert, Capital

134,700.00

12

Tyler Lambert, Drawing

49,700.00

13

Jayla Yost, Capital

88,200.00

14

Jayla Yost, Drawing

60,000.00

15

Income Summary

16

Professional Fees

393,400.00

17

Salary Expense

154,200.00

18

Depreciation Expense-Building

15,800.00

19

Property Tax Expense

12,500.00

20

Heating and Lighting Expense

8,300.00

21

Supplies Expense

6,100.00

22

Depreciation Expense-Office Equipment

4,500.00

23

Miscellaneous Expense

3,800.00

24

Totals

738,800.00

738,800.00

The balance in Yost’s capital account includes an additional investment of $9,500 made on April 10, 2016.

Required:
1. Prepare an income statement for 2016. Create a separate statement indicating the division of net income to the partners. The partnership agreement provides for salary allowances of $44,600 to Lambert and $55,200 to Yost, allowances of 10% on each partner’s capital balance at the beginning of the fiscal year, and equal division of the remaining net income or net loss.*
2. Prepare a statement of partnership equity for 2016.*
3. Prepare a balance sheet as of the end of 2016.*
* Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If a net loss is incurred or there is a decrease in partner’s equity, enter that amount as a negative number using a minus sign.

Labels and Amount Descriptions

Labels Amount Descriptions
Current assets Add partner withdrawals
Current liabilities Balance, December 31, 2016
Operating expenses Balance, January 1, 2016
Plant assets Balances after realization
Balances before realization
Capital additions
Less partner withdrawals
Net income
Net loss
Net income for the year
Net loss for the year
Payment of liabilities
Sale of assets and division of gain
Total assets
Total current assets
Total liabilities
Total liabilities and partners’ equity
Total partners’ equity
Total plant assets
Total operating expenses

Income Statement and Allocation to Partners

1. Prepare an income statement for 2016. Create a separate statement indicating the division of net income to the partners. The partnership agreement provides for salary allowances of $44,600 to Lambert and $55,200 to Yost, allowances of 10% on each partner’s capital balance at the beginning of the fiscal year, and equal division of the remaining net income or net loss. Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If a net loss is incurred, enter that amount as a negative number using a minus sign.

Lambert and Yost

Income Statement

For the Year Ended December 31, 2016

1

2

3

4

5

6

7

8

9

10

11

Lambert and Yost

Allocation of Net Income to Partners

For the Year Ended December 31, 2016

1

Tyler Lambert

Jayla Yost

Total

2

Division of net income:

3

Salary allowance

4

Interest allowance

5

Remaining income (loss) (1:1)

6

Net income

Statement of Partnership Equity

2. Prepare a statement of partnership equity for 2016. Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If there is a decrease in partner’s equity, enter that amount as a negative number using a minus sign.

Lambert and Yost

Statement of Partnership Equity

For the Year Ended December 31, 2016

1

Tyler Lambert

Jayla Yost

Total

2

3

4

5

6

Balance Sheet

3. Prepare a balance sheet as of the end of 2016. Refer to the information given and the lists of Labels and Amount Descriptions for the exact wording of the answer choices for text entries. Enter current assets in order of liquidity. Enter plant assets in the order in which they appear on the adjusted trial balance.

Lambert and Yost

Balance Sheet

December 31, 2016

1

Assets

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Liabilities

16

17

18

19

20

Partners’ Equity

21

22

23

24

In: Accounting

The ledger of Tyler Lambert and Jayla Yost, attorneys-at-law, contains the following accounts and balances after...

The ledger of Tyler Lambert and Jayla Yost, attorneys-at-law, contains the following accounts and balances after adjustments have been recorded on December 31, 2016:

Lambert and Yost

ADJUSTED TRIAL BALANCE

December 31, 2016

ACCOUNT TITLE DEBIT CREDIT

1

Cash

34,000.00

2

Accounts Receivable

47,900.00

3

Supplies

1,900.00

4

Land

119,800.00

5

Building

157,200.00

6

Accumulated Depreciation-Building

67,300.00

7

Office Equipment

63,500.00

8

Accumulated Depreciation-Office Equipment

21,500.00

9

Accounts Payable

28,200.00

10

Salaries Payable

4,700.00

11

Tyler Lambert, Capital

134,700.00

12

Tyler Lambert, Drawing

50,000.00

13

Jayla Yost, Capital

88,500.00

14

Jayla Yost, Drawing

60,500.00

15

Income Summary

16

Professional Fees

394,600.00

17

Salary Expense

154,300.00

18

Depreciation Expense-Building

15,500.00

19

Property Tax Expense

11,800.00

20

Heating and Lighting Expense

8,700.00

21

Supplies Expense

6,000.00

22

Depreciation Expense-Office Equipment

5,000.00

23

Miscellaneous Expense

3,400.00

24

Totals

739,500.00

739,500.00

The balance in Yost’s capital account includes an additional investment of $9,600 made on April 10, 2016.

Required:
1. Prepare an income statement for 2016. Create a separate statement indicating the division of net income to the partners. The partnership agreement provides for salary allowances of $45,400 to Lambert and $55,100 to Yost, allowances of 10% on each partner’s capital balance at the beginning of the fiscal year, and equal division of the remaining net income or net loss.*
2. Prepare a statement of partnership equity for 2016.*
3. Prepare a balance sheet as of the end of 2016.*
* Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If a net loss is incurred or there is a decrease in partner’s equity, enter that amount as a negative number using a minus sign.

Labels and Amount Descriptions

Labels

Amount Descriptions

Current assets Add partner withdrawals
Current liabilities Balance, December 31, 2016
Operating expenses Balance, January 1, 2016
Plant assets Balances after realization
Balances before realization
Capital additions
Less partner withdrawals
Net income
Net loss
Net income for the year
Net loss for the year
Payment of liabilities
Sale of assets and division of gain
Total assets
Total current assets
Total liabilities
Total liabilities and partners’ equity
Total partners’ equity
Total plant assets
Total operating expenses

Income Statement and Allocation to Partners

1. Prepare an income statement for 2016. Create a separate statement indicating the division of net income to the partners. The partnership agreement provides for salary allowances of $45,400 to Lambert and $55,100 to Yost, allowances of 10% on each partner’s capital balance at the beginning of the fiscal year, and equal division of the remaining net income or net loss. Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If a net loss is incurred, enter that amount as a negative number using a minus sign.

Lambert and Yost

Income Statement

For the Year Ended December 31, 2016

1

2

3

4

5

6

7

8

9

10

11

Lambert and Yost

Allocation of Net Income to Partners

For the Year Ended December 31, 2016

1

Tyler Lambert

Jayla Yost

Total

2

Division of net income:

3

Salary allowance

4

Interest allowance

5

Remaining income (loss) (1:1)

6

Net income

Statement of Partnership Equity

2. Prepare a statement of partnership equity for 2016. Refer to the information given and the lists of Labels and Amount Descriptions provided for the exact wording of the answer choices for text entries. If there is a decrease in partner’s equity, enter that amount as a negative number using a minus sign.

Lambert and Yost

Statement of Partnership Equity

For the Year Ended December 31, 2016

1

Tyler Lambert

Jayla Yost

Total

2

3

4

5

6

Balance Sheet

3. Prepare a balance sheet as of the end of 2016. Refer to the information given and the lists of Labels and Amount Descriptions for the exact wording of the answer choices for text entries. Enter current assets in order of liquidity. Enter plant assets in the order in which they appear on the adjusted trial balance.

Lambert and Yost

Balance Sheet

December 31, 2016

1

Assets

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Liabilities

16

17

18

19

20

Partners’ Equity

21

22

23

24

In: Accounting

Summary Figure 3–79 shows an example page containing two applications of floating objects. In the first...

Summary

Figure 3–79 shows an example page containing two applications of floating objects. In the first line of Lincoln’s second inaugural speech a drop capital is created by floating the first letter of the first paragraph next to the surrounding text. The text of the speech is wrapped around the image of Lincoln using an irregular line wrap. This effect is created by cutting the Lincoln image into separate strips which are floated and stacked on top of each other. In this Coding Challenge you will explore how to create both effects.

Figure 3-79

Do the following:

1. Open the files code3-1.html and code3-1_float.css and in the comment section enter your name (First + Last) and the date (MM/DD/YYYY) into the Author: and Date: fields of the file.

2. Go to the code3-1.html file in your editor. Within the head section insert a link element linking the page to the code3-1_float.css style sheet file. Take some time to study the content of the page.

3.lOpen the file code3-1_float.css, and for all img elements create a style rule to set the height of the image to 3.3em. Float all img elements on the right margin, but only when the right margin is first cleared of any floats. (Hint: clear: right).

4. To create a drop cap insert a style rule for the selector p:first-of-type::first-letter and add the following styles:

  1. Float the element on the left margin.
  2. Set the font size to 4em and the line height to 0.8em.
  3. Set the size of the right margin and padding space to 0.1em. Set the bottom padding to 0.2em.

5. Display the first line of the speech in small caps by adding a style rule for the selector p:first-of-type::first-line that changes the font variant to small-caps and the font size to 1.4em.

6. Open the page in the browser preview and verify the layout of the page resembles that shown in Figure 3-79.

Code 3-1.HTML to be edited:

<!doctype html>

<html lang="en">

<head>

   <!--

   New Perspectives on HTML5 and CSS3, 8th Edition

   Tutorial 3

   Coding Challenge 1

   

   Author:

   Date:

   Filename: code3-1.html

   -->

   <meta charset="utf-8">

   <title>Coding Challenge 3-1</title>

   <link href="code3-1.css" rel="stylesheet" />

</head>

<body>

   <h1>Lincoln's Second Inaugural</h1>

   <p>The Almighty has his own purposes. "Woe unto the world because of offenses! For

      <img src="lincoln01.png" alt="" />

      <img src="lincoln02.png" alt="" />

      <img src="lincoln03.png" alt="" />

      <img src="lincoln04.png" alt="" />

      <img src="lincoln05.png" alt="" />

      <img src="lincoln06.png" alt="" />

      <img src="lincoln07.png" alt="" />

      <img src="lincoln08.png" alt="" />

      <img src="lincoln09.png" alt="" />

      <img src="lincoln10.png" alt="" />

      it must needs be that offenses come; but woe to that man by whom the offense

      cometh." If we shall suppose that American slavery is one of those offenses which,

      in the providence of God, must needs come, but which, having continued through his

      appointed time, he now wills to remove, and that he gives to both North and South

      this terrible war, as the woe due to those by whom the offense came, shall we discern

      therein any departure from those divine attributes which the believers in a living

      God always ascribe to him?

   </p>

   <p>Fondly do we hope &mdash; fervently do we pray &mdash; that this

      mighty scourge of war may speedily pass away. Yet, if God wills that it continue

      until all the wealth piled by the bondsman's two hundred and fifty years of unrequited

      toil shall be sunk, and until every drop of blood drawn by the lash shall be paid by

      another drawn with the sword, as was said three thousand years ago, so still it must

      be said, "The judgments of the Lord are true and righteous altogether."

   </p>

   <p>With malice toward none; with charity for all; with firmness in the right, as God

      gives us to see the right, let us strive on to finish the work we are in; to bind up

      the nation's wounds; to care for him who shall have borne the battle, and for his

      widow, and his orphan &mdash; to do all which may achieve and cherish a just and lasting peace

      among ourselves, and with all nations.

   </p>

</body>

</html>

Code 3-1.css to be edited:

@charset "utf-8";

/*

   New Perspectives on HTML5 and CSS3, 8th Edition

   Tutorial 3

   Coding Challenge 1

   Author:

   Date:   

   

   Filename: code3-1.css

*/

body {

   width: 900px;

   margin: 20px auto;

   font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";

   font-size: 1.25em;

   padding-bottom: 30px;

}

h1 {

   font-size: 2.2em;

   text-align: center;

}

Code 3-1_float.css to be edited:

@charset "utf-8";

/*

   New Perspectives on HTML5 and CSS3, 8th Edition

   Tutorial 3

   Coding Challenge 1

   Author:

   Date:   

   

   Filename: code3-1_float.css

*/


Images being used:

  • lincoln01.png
  • lincoln02.png
  • lincoln03.png
  • lincoln04.png
  • lincoln05.png
  • lincoln06.png
  • lincoln07.png
  • lincoln08.png
  • lincoln09.png
  • lincoln10.png

In: Computer Science

Mad Co. Has these data regarding the main product it manufactures and sells: 2015 sales 360,000...

Mad Co. Has these data regarding the main product it manufactures and sells:
2015 sales 360,000
2016 Gross Profit 109,200
Cost Variance 100,800 Unfavorable

For the year ended December 31, 2015, the firm sold the product at 100% above cost. Unit cost of product increased by 20% during 2016. What is the percentage increase or decrease in units sold?

In: Accounting