Complete combustion of 2.50g of a hydrocarbon produced 8.14g of CO2 and 2.50g of H2O. What is the empirical formula for the hydrocarbon? Insert subscripts as necessary.
In: Chemistry
Write a JAVA program that reads a text file.
Text file contains three lines.
Place each line in an array bucket location.
Add to the end of the array list.
Print the array.
In: Computer Science
The balance sheet shows your assets, liabilities, and equity of the business and is a key financial statement to analyze. If a business had cash of $200,000, accounts receivable of $500,000, a loan payable of $1,000,000, and equity of -$300,000, then what would this indicate about the business? What would be your overall thoughts on the health of this company and how could you improve its financial health? Would you want to invest in this company? Lead this company? Why or why not?
In: Accounting
what are the arrhenius definitions for an acid and base? give a chemical equation to demonstrate a strong acid and a weak acid
In: Chemistry
The net income of Thomas & Sons, a landscaping company, decreased sharply during 2018. The owner of the company, Jerry Thomas, anticipates the need for a bank loan in 2019. Late in 2018, Jerry instructs the company’s accountant to record $2,000 service revenue for landscape services for the McGrath family, even though the services will not be performed until January 2019. Jerry also tells the accountant not to make the following December 31, 2018 adjusting entries: Salaries owed to employees $900 Prepaid insurance that has expired $400
Requirements:
1) Calculate the total dollar amount of the affect on net income for the three suggested actions. Be detailed in your response so that we can follow how you calculated the total and why the amounts included in your total impact net income.
2) Of the four financial statements, which are impacted by the suggestions and where in the statement? Be specific and provide sufficient detail to suport your answer.
In: Accounting
Part 1:
Write a program that has 2 classes. The first class is a test class with 2 methods; a main method, and a static method called drinkMilk(). The drinkMilk method returns void, and will throw an exception of type OutOfMilkException. The purpose of this exercise is to demonstrate that a method can get information back to the caller through an exceptions object that is thrown inside the called method and caught in the calling method. (OutOfMilkException is the second class that you will create.)
The drinkMilk method will: save what time you start drinking your milk, here’s how:
In the System class there is a method:
public static long currentTimeMillis()
Returns the current time in milliseconds.
Then, in an infinite loop, while (true) generate random integers between 0 – 1000 and perform an int division using the random integer as the denominator. Use anything except 0 as the numerator. You must use the Random class to generate random integers, not the Math class. Eventually you will execute a divide by zero.
Each time you generate a random number print out “Gulp.” Use print instead of println. When a division by zero exception is thrown, the drinkMilk method will catch the ArithmeticException exception. Within the catch block throw an exception of type OutOfMilkException.
(You are catching one kind of exception, creating a more descriptive exception that describes the situation, and throwing that exception.)
The outOfMilkException object will contain a value that indicates how long it took to drink the milk – in milliseconds, i.e., how long it took to generate a 0 value. The main method that catches the OutOfMilkException will printout the number of milliseconds that it took to drink the milk.
This demonstrates that information is "thrown" from the drinkMilk method to the main method. Keep in mind that the purpose of this exercise is to “throw” a piece of information from one method to another without using the usual mechanisms for passing information from one method to another, i.e., parameters and return values.
Note: It is not good practice to put any calculation inside an Exception object. These objects are holders of data only! No arithmetic operators, no method calling. Maybe a String concat + once in a while. The methods in the exceptions should never contribute to the solution; their role is exclusively to know about what went wrong, and to be thrown and caught.
Part 2: Assertions
Background:
The ‘assert’ keyword was added to Java in version 1.2. That caused a problem. “assert” was used for many years in C++, and when Java did not provide that mechanism, many Java programmers added a public method called ‘assert’ into their code. When Java 1.2 came out, all of the code that used ‘assert’ wouldn’t compile, because they had a method name that matched a keyword.
assert somethingTrue; // does nothing
assert somethingThatIsFalse; // this will throw an AssertionError
It became necessary to add some qualifiers to the compile and run commands in Java, so that assertions might be used at compile time and/or at run time. Since we are doing all of our work within Eclipse, you will need to figure out how to turn these on within the Eclipse environment. Eclipse is generating the commands to compile and run the java programs – that’s good, we don’t have to type the commands, but it makes it harder when we need to change what command is generated.
The compile and run switches for Assertions are quite elaborate. Assertions are only used during development. Everyone will want to turn off this feature at run-time when the product is released.
When you have figured out how to turn Assertions on / off within Eclipse, post your solution on the discussion board. If the answer is already there, but you can add something, do it. You don’t need to re-post something that is already there.
Coding exercise:
Demonstrate using the assert keyword. Create a private method that takes an int parameter.
If the value passed in is negative, the method will assert something that is false, causing the method to throw an AssertionError.
Pass the value that was passed into the method to the constructor of the AssertionError class.
All of this is done with a single assert statement.
Why did I ask you to make this method private? It works the same with public methods. Put a comment in the code if you can find an answer that question. (It isn’t something you can figure out, you will need to read about the convention and the reason for having that convention.)
In: Computer Science
3. You are hard at work, setting up the apparatus to separate a 40:60 mixture of diethyl ether and toluene by simple distillation. Just as you are getting ready to begin the experiment, your lab partner mistakenly adds a small amount of sodium sulfate into the distillation flask. Would simple distillation still be appropriate or should you switch to fractional distillation? Explain.
In: Chemistry
Required information
[The following information applies to the questions displayed below.]
Comparative financial statements for Weaver Company follow:
| Weaver Company Comparative Balance Sheet at December 31 |
||||||||
| This Year | Last Year | |||||||
| Assets | ||||||||
| Cash | $ | 5 | $ | 13 | ||||
| Accounts receivable | 308 | 230 | ||||||
| Inventory | 156 | 196 | ||||||
| Prepaid expenses | 9 | 6 | ||||||
| Total current assets | 478 | 445 | ||||||
| Property, plant, and equipment | 505 | 426 | ||||||
| Less accumulated depreciation | (85) | (72) | ||||||
| Net property, plant, and equipment | 420 | 354 | ||||||
| Long-term investments | 26 | 32 | ||||||
| Total assets | $ | 924 | $ | 831 | ||||
| Liabilities and Stockholders' Equity | ||||||||
| Accounts payable | $ | 304 | $ | 224 | ||||
| Accrued liabilities | 70 | 77 | ||||||
| Income taxes payable | 74 | 64 | ||||||
| Total current liabilities | 448 | 365 | ||||||
| Bonds payable | 196 | 171 | ||||||
| Total liabilities | 644 | 536 | ||||||
| Common stock | 160 | 200 | ||||||
| Retained earnings | 120 | 95 | ||||||
| Total stockholders’ equity | 280 | 295 | ||||||
| Total liabilities and stockholders' equity | $ | 924 | $ | 831 | ||||
| Weaver Company Income Statement For This Year Ended December 31 |
||||||
| Sales | $ | 753 | ||||
| Cost of goods sold | 450 | |||||
| Gross margin | 303 | |||||
| Selling and administrative expenses | 219 | |||||
| Net operating income | 84 | |||||
| Nonoperating items: | ||||||
| Gain on sale of investments | $ | 6 | ||||
| Loss on sale of equipment | (2) | 4 | ||||
| Income before taxes | 88 | |||||
| Income taxes | 23 | |||||
| Net income | $ | 65 | ||||
During this year, Weaver sold some equipment for $19 that had cost $31 and on which there was accumulated depreciation of $10. In addition, the company sold long-term investments for $12 that had cost $6 when purchased several years ago. Weaver paid a cash dividend this year and the company repurchased $40 of its own stock. This year Weaver did not retire any bonds.
1. Using the indirect method, determine the net cash provided by/used in operating activities for this year. (List any deduction in cash and cash outflows as negative amounts.)
2. Using the information in (1) above, along with an analysis of the remaining balance sheet accounts, prepare a statement of cash flows for this year. (List any deduction in cash and cash outflows as negative amounts.)
In: Accounting
Phosphoric acid H3PO4 is manufactured by treating mineral phosphates with concentrated sulfuric acid H2SO4. A typical phosphate mineral, Ca5(PO4)3F, reacts with sulfuric acid as shown by the equation:
Ca5(PO4)3F
+
5H2SO4
3H3PO4
+
5CaSO4·2H2O
+ HF
If 5.00 tons of this mineral is treated with 6.00 tons of sulfuric
acid to produce 2.70 tons of
phosphoric acid, what is the percent yield of phosphoric acid?
In: Chemistry
An object of mass 0.50 kg is released from the top of a building of height 6 m. The object experiences a horizontal constant force of 1.2 N due to a wind blowing parallel to the face of the building.
(a) Find the time it takes for the object to strike the ground. s
(b) What is the magnitude of the acceleration of the object? m/s2
c) Through what horizontal distance does the object move before it hits the ground?
In: Physics
What kind of structural reforms should Latin American countries promote in order to encourage more foreign direct investment and promote sustained economic growth?
In: Economics
I am having problems with variables on both sides. I get most of the concepts but I need help with adding fractions into the equations.
In: Chemistry
In: Operations Management
A laser beam of wavelength 580nm is incident normally on a transmission grating having 440lines/mm .
Find the angles of deviation in the first, second, and third orders of bright spots.
In: Physics
Sketch the overlap of orbitals between the HOMO and LUMO that would result in the formation of the preferred product. (anthracene and maleic anhydride diels-alder reaction)
In: Chemistry