Questions
1. For the following, predict the products (if any). If there is no reaction, write “no...

1. For the following, predict the products (if any). If there is no reaction, write “no rxn”. For the

questions where reaction occurs, write:

 balanced molecular equation

 balanced complete ionic equation

 balanced net ionic equation

 classify the reaction as either precipitation or acid base resulting in a gas

Include phases for all species.

a) NaI(aq) + Pb(ClO4)2(aq)

b) Ba(NO3)2(aq) + (NH4)2SO4(aq)

c) HCl(aq) + NaHSO3(aq)

d) Cu(CH3COO)2(aq) + Rb2CO3(aq)

e) aqueous potassium carbonate + hydrobromic acid

f) Mg(NO3)2(aq) + Zn(CH3COO)2(aq)

g) aqueous silver perchlorate + aqueous magnesium bromide

h) NH4Cl(aq) + KOH(aq)

In: Chemistry

7. A farsighted man uses eyeglasses with a refractive power of 2.00 diopters. Wearing the glasses...

7. A farsighted man uses eyeglasses with a refractive power of 2.00 diopters. Wearing the glasses 0.020 m from his eyes, he is able to read books held no closer than 0.304 m from his eyes. He would like a prescription for contact lenses to serve the same purpose. What is the correct contact lens prescription, in diopters?
diopters

In: Physics

A 1270-kg cannon shoots a 34.3-kg shell at an angle of 24.7° above the horizontal and...

A 1270-kg cannon shoots a 34.3-kg shell at an angle of 24.7° above the horizontal and a speed of 491 m/s. What is the recoil velocity of the cannon?

In: Physics

A fair coin is tossed 25 times. What is the probability that at least 1 tail...

A fair coin is tossed 25 times. What is the probability that at least 1 tail occurs?

a) 1

b) 0.00000075

c) 0.99999923

d) 0.00000003

e) 0.99999997

f) None of the above.

A business organization needs to make up a 5 member fund-raising committee. The organization has 9 accounting majors and 7 finance majors. What is the probability that at most 2 accounting majors are on the committee?

a) 0.0151

b) 0.0048

c) 0.3654

d) 0.0103

e) 0.3606

f) None of the above.

A classroom of children has 17 boys and 19 girls in which five students are chosen at random to do presentations. What is the probability that more boys than girls are chosen?

a) 0.4448

b) 0.0164

c) 0.3249

d) 0.1199

e) 0.4284

f) None of the above.

A toy manufacturer inspects boxes of toys before shipment. Each box contains 9 toys. The inspection procedure consists of randomly selecting three toys from the box. If one or more of the toys are defective, the box is not shipped. Suppose that a given box has two defective toys. What is the probability that it will be shipped?

a) 0.4365

b) 0.0833

c) 0.0714

d) 0.5833

e) 0.4167

f) None of the above.

In: Math

A chemist is working with a formic acid � formate ion buffer system. HCHO2(aq) + H2O(l)...

A chemist is working with a formic acid � formate ion buffer system.

HCHO2(aq) + H2O(l) <=> CHO2-(aq) + H3O+(aq) with Ka = 1.7�10-4

One liter of the buffer contains 0.745 moles of formic acid and 0.385 moles of formate ion. What is the pH of the buffer? (Answer to 3 significant figures, no units.)

______________________________________________________

Solid sodium hydroxide (6.83 grams) is added to one liter of the formic acid � formate ion buffer described in the previous question. Assume the total volume has not changed significantly once the strong base has dissolved. What is the new pH of the buffer? (Answer to 3 significant figures, no units.)

In: Chemistry

WE ARE USING PYTHON TO COMPLETE THIS ASSIGNMENT :) THANK YOU! In this programming assignment, you...

WE ARE USING PYTHON TO COMPLETE THIS ASSIGNMENT :) THANK YOU!

In this programming assignment, you will write functions to encrypt and decrypt messages using simple substitution ciphers. Your solution MUST include:

  • a function called encode that takes two parameters:
    • key, a 26-character long string that identifies the ciphertext mapping for each letter of the alphabet, in order;
    • plaintext, a string of unspecified length that represents the message to be encoded.

    encode will return a string representing the ciphertext.

  • a function called decode that takes two parameters:
    • key, a 26-character long string that identifies the ciphertext mapping for each letter of the alphabet, in order;
    • ciphertext, a string of unspecified length that represents the message to be decoded.

    decode will return a string representing the plaintext.

Copy and paste the following statements into your file as the first two statements of your main program. These lines represent Python lists of messages for you to encode and decode to test the functions you write.

    plaintextMessages = [
        ["This is the plaintext message.",
         "bcdefghijklmnopqrstuvwxyza"],
        ["Let the Wookiee win!",
         "epqomxuagrdwkhnftjizlcbvys"],
        ["Baseball is 90% mental. The other half is physical.\n\t\t- Yogi Berra",
         "hnftjizlcbvysepqomxuagrdwk"],
        ["I used to think I was indecisive, but now I'm not too sure.",
         "mqncdaigyhkxflujzervptobws"],
        ["Einstein's equation 'e = mc squared' shows that mass and\n\t\tenergy are interchangeable.",
         "bludcmhojaifxrkzenpsgqtywv"] ]

    codedMessages = [
        ["Uijt jt uif dpefe nfttbhf.",
         "bcdefghijklmnopqrstuvwxyza"],
        ["Qnhxgomhqm gi 10% bnjd eho 90% omwlignh. - Zghe Xmy",
         "epqomxuagrdwkhnftjizlcbvys"],
        ["Ulj njxu htgcfj C'gj jgjm mjfjcgjt cx, 'Ep pej jyxj veprx rlhu\n\t\t uljw'mj tpcez jculjm'. - Mcfvw Zjmghcx",
         "hnftjizlcbvysepqomxuagrdwk"],
        ["M 2-wdme uxc yr kylc ua xykd m qxdlcde, qpv wup cul'v gmtd mlw\n\t\t vuj aue yv. - Hdeew Rdyladxc",
         "mqncdaigyhkxflujzervptobws"] ]

You may alter the spacing or indentation of the two lines to conform to the rest of your code, but you are not allowed to change the strings or structure of the lists.

plaintextMessages is a list consisting of five items. Each item is a list of two strings corresponding to a plaintext message and a key. For each of these five items, you should:

  • print the plaintext message.
  • encode the message and print the ciphertext.
  • decode the ciphertext message you just calculated and print the plaintext message again. The purpose of this is to demonstrate that your encode and decode functions work properly as inverses of each other.

If you have done this correctly, the output from your program for the first data item should look like the following:

plaintext:   This is the plaintext message.
encoded:     Uijt jt uif qmbjoufyu nfttbhf.
re-decoded:  This is the plaintext message.

Then print a blank line to separate this block of three lines from the next block.

codedMessages is a list consisting of four items. Each item is a list of two strings corresponding to a ciphertext message and a key. For each of these four items, you should:

  • print the ciphertext message.
  • decode the message and print the ciphertext.

If you have done this correctly, the output from your program for the first data item should look like the following:

encoded:  Uijt jt uif dpefe nfttbhf.
decoded:  

Then print a blank line to separate this block of two lines from the next block.

Special notes:

  • Encrypted and decrypted lower-case letters should map to lower-case letters, as defined by the key.
  • Encrypted and decrypted upper-case letters should map to upper-case letters. Note that upper-case letters do not appear in the key! (Look at the first character in the expected output shown above: the upper-case "T" maps to an upper-case "U" in the encoded message.) Your program must detect when an upper-case letter appears in the data, and figure out how to convert it to the correct upper-case letter based on the corresponding lower-case letters in the key.
  • Non-alphabetic characters, such as numbers, spaces, tabs, punctuation, etc. should not be changed by either encode() or decode().

In: Computer Science

Income Statements under Absorption Costing and Variable Costing Joplin Industries Inc. manufactures and sells high-quality sporting...

Income Statements under Absorption Costing and Variable Costing

Joplin Industries Inc. manufactures and sells high-quality sporting goods equipment under its highly recognizable J-Sports logo. The company began operations on May 1 and operated at 100% of capacity (61,600 units) during the first month, creating an ending inventory of 5,600 units. During June, the company produced 56,000 garments during the month but sold 61,600 units at $115 per unit. The June manufacturing costs and selling and administrative expenses were as follows:

Number of Units Unit Cost Total
Cost
Manufacturing costs in June 1 beginning inventory:
Variable 5,600 $46.00 $257,600
Fixed 5,600 17.00 95,200
Total $63.00 $352,800
Manufacturing costs in June:
Variable 56,000 $46.00 $2,576,000
Fixed 56,000 18.70 1,047,200
Total $64.70 $3,623,200
Selling and administrative expenses in June:
Variable 61,600 22.10 $1,361,360
Fixed 61,600 7.00 431,200
Total 29.10 $1,792,560

a. Prepare an income statement according to the absorption costing concept for June.

Joplin Industries Inc.
Absorption Costing Income Statement
For the Month Ended June 30
$
Cost of goods sold:
$
$
$

b. Prepare an income statement according to the variable costing concept for June.

Joplin Industries Inc.
Variable Costing Income Statement
For the Month Ended June 30
$
$
$
Fixed costs:
$
$

c. What is the reason for the difference in the amount of income from operations reported in (a) and (b)?

Under the   method, the fixed manufacturing cost included in the cost of goods sold is matched with the revenues. Under  , all of the fixed manufacturing cost is deducted in the period in which it is incurred, regardless of the amount of inventory change. Thus, when inventory decreases, the   income statement will have a lower income from operations.

In: Accounting

Lane Company manufactures a single product that requires a great deal of hand labor. Overhead cost...

Lane Company manufactures a single product that requires a great deal of hand labor. Overhead cost is applied on the basis of standard direct labor-hours. The budgeted variable manufacturing overhead is $2.40 per direct labor-hour and the budgeted fixed manufacturing overhead is $384,000 per year.

The standard quantity of materials is 4 pounds per unit and the standard cost is $4.00 per pound. The standard direct labor-hours per unit is 1.5 hours and the standard labor rate is $12.20 per hour.

The company planned to operate at a denominator activity level of 60,000 direct labor-hours and to produce 40,000 units of product during the most recent year. Actual activity and costs for the year were as follows:

Actual number of units produced 48,000
Actual direct labor-hours worked 78,000
Actual variable manufacturing overhead cost incurred $ 124,800
Actual fixed manufacturing overhead cost incurred $ 429,000

Required:

1. Compute the predetermined overhead rate for the year. Break the rate down into variable and fixed elements.

2. Prepare a standard cost card for the company’s product.

3a. Compute the standard direct labor-hours allowed for the year’s production.

3b. Complete the following Manufacturing Overhead T-account for the year.

4. Determine the reason for any underapplied or overapplied overhead for the year by computing the variable overhead rate and efficiency variances and the fixed overhead budget and volume variances.

In: Accounting

Prepare journal entries to record the December transactions in the General Journal Tab in the excel...

Prepare journal entries to record the December transactions in the General Journal Tab in the excel template file "Accounting Cycle Excel Template.xlsx". Use the following accounts as appropriate: Cash, Accounts Receivable, Supplies, Prepaid Insurance, Equipment, Accumulated Depreciation, Accounts Payable, Wages Payable, Common Stock, Retained Earnings, Dividends, Service Revenue, Depreciation Expense, Wages Expense, Supplies Expense, Rent Expense, and Insurance Expense. 1-Dec Began business by depositing $7000 in a bank account in the name of the company in exchange for 700 shares of $10 per share common stock. 1-Dec Paid the rent for the current month, $600 . 1-Dec Paid the premium on a one-year insurance policy, $720 . 1-Dec Purchased Equipment for $4800 cash. 5-Dec Purchased office supplies from XYZ Company on account, $300 . 15-Dec Provided services to customers for $5800 cash. 16-Dec Provided service to customers ABC Inc. on account, $3100 . 21-Dec Received $1700 cash from ABC Inc., customer on account. 23-Dec Paid $170 to XYZ company for supplies purchased on account on December 5 . 28-Dec Paid wages for the period December 1 through December 28, $4760 . 30-Dec Declared and paid dividend to stockholders $200 . #2. Post all of the December transactions from the “General Journal” tab to the T-accounts under the “T-Accounts” tab in the excel template file "Accounting Cycle Excel Template.xlsx". Assume there are no beginning balances in any of the accounts. #3. Compute the balance for each T-account after all of the entries have been posted. These are the unadjusted balance as of December 31. #4. Prepare the unadjusted trial balance under the “Unadjusted Trial Balance” tab in the excel template file "Accounting Cycle Excel Template.xlsx" . Provide the total of the credit column from the Unadjusted Trial Balance #5. Record the following four transactions as adjusting entries under the “General Journal” tab. 31-Dec One month’s insurance has been used by the company $60. 31-Dec The remaining inventory of unused office supplies is $90. 31-Dec The estimated depreciation on equipment is $80. 31-Dec Wages incurred from December 29 to December 31 but not yet paid or recorded total $510. #6. Post all of the adjusting entries to the T-accounts under the “T-Accounts” tab. Compute the balance for each T-account after all of the adjusting entries have been posted. These are the adjusted balance as of December 31. #7. Prepare the adjusted trial balance under the “Adjusted Trial Balance” tab as of December 31 in the excel template file "Accounting Cycle Excel Template.xlsx" . Provide the following accounts balances from the Adjusted Trial Balance: Cash Accounts Receivable Supplies Prepaid Insurance Equipment Accumulated Depreciation Accounts Payable Wages Payable Common Stock Retained Earnings #8. Prepare Income Statement, Statement of Stockholder’s Equity, and Classified Balance Sheet under the “Financial Statements” tab for the month ended December 31, 20XX in the excel template file "Accounting Cycle Excel Template.xlsx". Provide the following amount from the Income Statement: Service Revenue Depreciation Expense Wages Expense Supplies Expense Rent Expense Insurance Expense Net Income Provide the following account balance from the Statement of Stockholders' Equity: Dividends Provide the following account balances from the Balance Sheet: Current Assets Long-Term Assets Total Liabilities Total Stockholder’s Equity Cash #9. Record the closing entries under the “General Journal” tab. #10. Post all of the closing entries to the T-accounts under the “T-Accounts” tab. Compute the balance for each T-account after all of the closing entries have been posted. Provide the ending balance of Cash at December 31 from the T-account Provide the balance of the Retained Earnings T-account after closing entries have been posted. Does the ending balance of the Retained Earnings T-account agree with the balance of Retained Earnings on the Balance Sheet? Check Point: Total Assets $ 10,120.00

In: Accounting

LP3.1 Assignment: Using Advanced SQL This assignment will assess the competency 3. Construct advanced SQL queries....

LP3.1 Assignment: Using Advanced SQL

This assignment will assess the competency 3. Construct advanced SQL queries.

Directions: Using the sample dataset, create three queries including a search, outer join and subquery. Create a table on how to use the query optimizer with these queries. Include screenshots and an explanation on why and when to use the optimizer.

.

In: Computer Science

You are given two arrays A1 and A2, each with n elements sorted in increasing order....

You are given two arrays A1 and A2, each with n elements sorted in increasing order. For simplicity, you may assume that the keys are all distinct from each other. Describe an o(log n) time algorithm to find the (n/2) th smallest of the 2n keys assuming that n is even.

In: Computer Science

Over 1 billion people in the world don’t have access to electricity, relying mostly on fire...

Over 1 billion people in the world don’t have access to electricity, relying mostly on fire for heat and cooking. Discuss the benefits and costs of carbon caps that limit the construction of new power plants in less developed countries.

In: Economics

You are to modify the Pez class so that all errors are handled by exceptions. The...

You are to modify the Pez class so that all errors are handled by exceptions. The constructor must be able to handle invalid parameters. The user should not be able to get a piece of candy when the Pez is empty. The user should not be able to put in more candy than the Pez can hold. I would like you to do 3 types of exceptions. One handled within the class itself, one handled by the calling method and one custom made exception. Be sure to comment in the program identifying each type of exception. You have the freedom of choosing which exception style you use where. You will need to submit 3 files, the Pez class, the custom exception class, and a tester program demonstrating that all of your exceptions work properly.

public class Pez
{
  private int candy;
  private final int MAX_PIECES = 12;
  
  public Pez()
  {
    candy = 0;
  }
  
  public Pez(int pieces) //this will need to be error-proofed
  {
    candy = pieces;
  }
  
  public int getCandy() 
  {
    return candy;
  }
  
  public void setCandy(int pieces) //this will need to be error-proofed
  {
    candy = pieces;
  }
  
  public void getAPieceOfCandy() //this will need to be error-proofed
  {
    candy = candy - 1;
  }
  
  public int fillPez() 
  {
    int piecesNeeded = MAX_PIECES - candy;
    candy = MAX_PIECES;
    return piecesNeeded;
  }
  
  public int emptyPez()
  {
    int currentPieces = candy;
    candy = 0;
    return currentPieces;
  }
  
  public void addPieces(int pieces) //this will need to be error-proofed
  {
      candy = candy + pieces;
  }
 
  public String toString()
  {
    String thisPez = "This Pez has " + candy + " pieces of candy";
    return thisPez;
  }
  
  public boolean equals(Pez pez2)
  {
    if(this.candy == pez2.candy)
      return true;
    return false;
  }
      
}

In: Computer Science

This code must be written in Java. This code also needs to include a package and...

This code must be written in Java. This code also needs to include a package and a public static void main(String[] args)

Write a program named DayOfWeek that computes the day of the week for any date entered by the user. The user will be prompted to enter a month, day, and year. The program will then display the day of the week (Sunday..Saturday). The following example shows what the user will see on the screen:

This program calculates the day of the week for any dates.

Enter month (1-12): 9

Enter day (1-31): 25

Enter year: 1998

The day of the week is Friday.

Hint: Use Zeller's congruence to compute the day of the week. Zeller's congruence relies on the following quantities:

J is the century (19, in our example)

K is the year within the century (98, in our example)

m is the month (9, in our example)

q is the day of the month (25, in our example)

The day of the week is determined by the following formula:

h = (q + 26(m + 1) / 10 + K + K / 4 + J / 4 + 5J) mod 7

where the results of the divisions are truncated. The value of h will lie between 0 (Saturday) and 6 (Friday).

Note: Zeller's congruence assumes that January and February are treated as months 13 and 14 of the previous year; this affects the values of K and m, and possibly the value of J. Note that the value of h does not match the desired output of the program, so some adjustment will be necessary. Apply Exception Handling.

In: Computer Science

Write a program that reads a text file and reports the total count of words of...

Write a program that reads a text file and reports the total count of words of each length. A word is defined as any contiguous set of alphanumeric characters, including symbols. For example, in the current sentence there are 10 words. The filename should be given at the command line as an argument. The file should be read one word at a time. A count should be kept for how many words have a given length. For example, the word “frog” is 4 bytes in length; the word “turtle” is 6 bytes in length. The program should report the total word counts of all lengths between 3 and 15 bytes. Words with lengths outside that range should not be counted

In: Computer Science