Create an array of 10,000 elements, use sorted, near sorted, and unsorted arrays. Implement find the kth smallest item in an array. Use the first item as the pivot. Compare sets of results using a static call counter. Reset counter before running another search. Create a Test drive to exhaustively test the program.
// Assume all values in S are unique.
kSmall(int [] S, int k): int (value of k-smallest element)
pivot = arbitrary element from S: let’s use the first element.
S1 = < all elements from S less than pivot > // these two steps will require some thought
S2 = < all elements from S greater than pivot > // and need to be implemented
if k <= S1.length
return kSmall(S1, k)
else if k == S1.length + 1
return pivot
else
return kSmall(S2, k – S1.length – 1)
In: Computer Science
The Yum and Yee food truck near the business school serves customers during lunch hour by taking orders and making fresh batches of stir-fry. Customers have only one choice during the lunch hour so that Y&Y can maximize the number of customers served. Assume that each customer places just one lunch order, and all lunch orders are the same size: one unit of stir-fry. The stir-fry cooking works in this manner. First, one person cooks a batch of orders in a wok. The cooking depends upon the number of orders in the batch. The time to cook just one order is 3.4 minutes. For each additional order in the batch, it takes 0.4 minute more to cook. Thus, cooking two orders in a batch takes 3.8 minutes, cooking three orders takes 4.2 minutes, and so on. The other process is bagging and accepting payments (done by a separate person), which takes 0.7 minute per order.
a.What is the Setup time
b.If Y&Y operates with bath sizes of 7 units, what is their process capacity (in orders per minute)?
c.If Yum an Yee operates with batch sizes of 12 units, what is the utilization of the wok?
d. Calculate the batch size (in orders) that maximizes the overall flow rat (assume there is ample demand)? Do NOT round the batch size (i.e., assume for this calculation that a noninteger batch size is possible.
In: Operations Management
The Yum and Yee food truck near the business school serves customers during lunch hour by taking orders and making fresh batches of stir-fry. Customers have only one choice during the lunch hour so that Y&Y can maximize the number of customers served. Assume that each customer places just one lunch order, and all lunch orders are the same size: one unit of stir-fry. The stir-fry cooking works in this manner. First, one person cooks a batch of orders in a wok. The cooking depends upon the number of orders in the batch. The time to cook just one order is 3 minutes. For each additional order in the batch, it takes 0.5 minute more to cook. Thus, cooking two orders in a batch takes 3.5 minutes, cooking three orders takes 4 minutes, and so on. The other process is bagging and accepting payments (done by a separate person), which takes 0.80 minute per order.
a. What is the setup time of this process?
b. If Y&Y operates with batch sizes of 6 units, what is their process capacity (in orders per minute)?
c. If Yum and Yee operates with sizes of 10 units, what is the utilization of the work (assume there is sample demand)?
d. Calculate the batch size (in orders) that maximizes the overall flow rate (assume these is sample demand)?
In: Operations Management
The Yum and Yee food truck near the business school serves customers during lunch hour by taking orders and making fresh batches of stir fry. Customers have only one choice during the lunch hour, since the objective is to maximize the number of customers served. Assume that each customer places just one lunch order, and all lunch orders are the same size –one unit of stir-fry. The stir fry cooking works in this manner. First, a batch of orders is cooked in a wok by one person. The cooking depends upon the number of orders in the batch. The time to cook just one order is 3 minutes. For each additional order in the batch, it takes 0.5 minutes more to cook. Thus, cooking two orders in a batch takes 3.5 minutes, cooking three orders takes 4 minutes, and so on. The other activity is bagging and accepting payments (done by a separate person), which takes 0.80 minutes per order.
If Yum and Yee operates with batch sizes of 9 units, what is their process capacity (in orders per miute)?
In: Operations Management
Low concentrations of Ni-EDTA near the detection limit gave the following counts in a mass spectral measurement: 184, 148, 148, 148, 136, 170., 196, 152, 156, 175. Ten measurements of a blank had a mean of 45 counts. A sample containing 1.00 µM Ni-EDTA gave 1797 counts.
(a) Find the mean.
___ counts
(b) Find the standard deviation.
___ counts
(c) Estimate the detection limit for Ni-EDTA.
___ counts
___ M
In: Chemistry
|
Wally’s Widget Company (WWC) incorporated near the end of 2011. Operations began in January of 2012. WWC prepares adjusting entries and financial statements at the end of each month. Balances in the accounts at the end of January are as follows: |
| Cash | $ | 18,920 | Unearned Revenue (30 units) | $ | 4,450 | ||
| Accounts Receivable | $ | 9,950 | Accounts Payable (Jan Rent) | $ | 1,500 | ||
| Allowance for Doubtful Accounts | $ | (1,000) | Notes Payable | $ | 14,500 | ||
| Inventory (35 units) | $ | 2,800 | Contributed Capital | $ | 5,200 | ||
| Retained Earnings – Feb 1, 2012 | $ | 5,020 | |||||
| • | WWC establishes a policy that it will sell inventory at $165 per unit. |
| • | In January, WWC received a $4,450 advance for 30 units, as reflected in Unearned Revenue. |
| • | WWC’s February 1 inventory balance consisted of 35 units at a total cost of $2,800. |
| • | WWC’s note payable accrues interest at a 12% annual rate. |
| • | WWC will use the FIFO inventory method and record COGS on a perpetual basis. |
| February Transactions | |
| 02/01 |
Included in WWC’s February 1 Accounts Receivable balance is a $1,700 account due from Kit Kat, a WWC customer. Kit Kat is having cash flow problems and cannot pay its balance at this time. WWC arranges with Kit Kat to convert the $1,700 balance to a note, and Kit Kat signs a 6-month note, at 12% annual interest. The principal and all interest will be due and payable to WWC on August 1, 2012. |
| 02/02 |
WWC paid a $600 insurance premium covering the month of February. The amount paid is recorded directly as an expense. |
| 02/05 |
An additional 130 units of inventory are purchased on account by WWC for $9,750 – terms 2/15, n30. |
| 02/05 |
WWC paid Federal Express $260 to have the 130 units of inventory delivered overnight. Delivery occurred on 02/06. |
| 02/10 |
Sales of 100 units of inventory occurred during the period of 02/07 – 02/10. The sales terms are 2/10, net 30. |
| 02/15 |
The 30 units that were paid for in advance and recorded in January are delivered to the customer. |
| 02/15 |
15 units of the inventory that had been sold on 2/10 are returned to WWC. The units are not damaged and can be resold. Therefore, they are returned to inventory. Assume the units returned are from the 2/05 purchase. |
| 02/16 | WWC pays the first 2 weeks wages to the employees. The total paid is $2,400. |
| 02/17 |
Paid in full the amount owed for the 2/05 purchase of inventory. WWC records purchase discounts in the current period rather than as a reduction of inventory costs. |
| 02/18 | Wrote off a customer’s account in the amount of $1,100. |
| 02/19 |
$3,000 of rent for January and February was paid. Because all of the rent will soon expire, the February portion of the payment is charged directly to expense. |
| 02/19 |
Collected $8,200 of customers’ Accounts Receivable. Of the $8,200, the discount was taken by customers on $4,500 of account balances; therefore WWC received less than $8,200. |
| 02/26 |
WWC recovered $420 cash from the customer whose account had previously been written off (see 02/18). |
| 02/27 |
A $600 utility bill for February arrived. It is due on March 15 and will be paid then. |
| 02/28 | WWC declared and paid a $800 cash dividend. |
| Adjusting Entries: |
| 02/29 |
Record the $2,400 employee salary that is owed but will be paid March 1. |
| 02/29 |
WWC decides to use the aging method to estimate uncollectible accounts. WWC determines 8% of the ending balance is the appropriate end of February estimate of uncollectible accounts. |
| 02/29 | Record February interest expense accrued on the note payable. |
| 02/29 | Record one month’s interest earned Kit Kat’s note (see 02/01). |
| Required: |
| 1-a. |
Prepare all February journal entries and adjusting entries. (If no entry is required for a transaction/event, select "No Journal Entry Required" in the first account field.) |
| No. | Date | General Journal | Debit | Credit |
| 1 | Feb. 1 | Accounts Payable | ||
| Accounts Receivable | ||||
| 2 | Feb. 2 | Insurance Expense | ||
| Cash | ||||
| 3 | Feb. 5 | Inventory | ||
| Accounts Payable | ||||
| 4 | Feb. 6 | Inventory | ||
| Cash | ||||
| 5 | Feb. 10a | Accounts Receivable | ||
| Sales Revenue | ||||
| 6 | Feb. 10b | Cost of Goods Sold | ||
| Inventory | ||||
| 7 | Feb. 15a | Unearned Revenue | ||
| Sales Revenue | ||||
| 8 | Feb 15b | Cost of Goods Sold | ||
| Inventory | ||||
| 9 | Feb 15c | Inventory | ||
| Cost of Goods sold | ||||
| 10 | Feb 15d | Sales Returns and Allowance | ||
| Accounts Receivable | ||||
| 11 | Feb. 16 | Wages Expense | ||
| Cash | ||||
| 12 | Feb 17 | Accounts Payable | ||
| Cash | ||||
| Inventory | ||||
| 13 | Feb 18 | Allowance for Doubtful Accounts | ||
| Accounts Receivable | ||||
| 14 | Feb 19a | Accounts Payable | ||
| Rent Expense | ||||
| Cash | ||||
| 15 | Feb. 19b | Cash | ||
| Sales Discounts | ||||
| Accounts Receivable | ||||
| 16 | Feb. 26a | Accounts Receivable | ||
| Allowance for Doubtful Accounts | ||||
| 17 | Feb. 26b | Cash | ||
| Accounts Receivable | ||||
| 18 | Feb. 27 | Utility Expense | ||
| Accounts Payable | ||||
| 19 | Feb. 28 | Dividends Declared | ||
| Cash | ||||
| 20 | Feb. 29a | Wages Expense | ||
| Accounts Payable | ||||
| 21 | Feb. 29b | Bad Debt Expense | ||
| Allowance or Doubtful Accounts | ||||
| 22 | Feb. 29c | Interest Expense | ||
| Interest Payable | ||||
| 23 | Feb. 29d | Interest Receivable | ||
| Interest Revenue | ||||
In: Accounting
Near the equator, the Sun is approximately straight overhead at noon, and around 1000 W/m2 solar irradiance reaches Earth. Around this time of day, assuming ambient temperature of 40C, and a 10m x 10m x 2m-tall greenhouse with ¼”-thick glass walls that reflect away 20% of the incoming sunlight, and only thinking of conductive losses, estimate the maximum temperature reached in the interior of the greenhouse. Hint: when are losses and sources balanced?
glass conductivity is 1.05 W/(m k)
In: Physics
Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5 reported cases of larceny per year. Assume that σ is known to be 40.9 cases per year.
(a) Find a 90% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
(b) Find a 95% confidence interval for the population mean annual
number of reported larceny cases in such communities. What is the
margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
(c) Find a 99% confidence interval for the population mean annual
number of reported larceny cases in such communities. What is the
margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
In: Statistics and Probability
The following transactions involving intangible assets of Francis Corporation occurred on or near December 31, 2020. Prepare the journal entry(ies) needed at that date to record the transaction, and at December 31, 2021 to record any resultant amortization. If no entry is required at a particular date, write "None needed."
1) Francis paid Jericho Company $ 200,000 for the exclusive right to market a particular product, using the Jericho name and logo in promotional material. The franchise runs for as long as Francis is in business. Francis decided to amortize the franchise over 25 years.
2) Francis spent $ 300,000 developing a new manufacturing process and has applied for a patent. It believes that its application will be successful and that the process will be successfully implemented and used for 10 years.
3) Francis spent $ 300,000 developing a new manufacturing process and has applied for a patent. It believes that its application will be successful and that the process will be successfully implemented and used for 10 years.
4) Francis incurred $ 90,000 in successfully defending another of its patents in an infringement suit. The patent expires during December 2024.
5) Francis incurred $ 200,000 in an unsuccessful patent defence. As a result of the adverse verdict, the patent, with a remaining unamortized cost of $ 99,000, is deemed worthless.
6) Francis paid Mexico Laboratories $ 52,000 for research work performed by Mexico under contract for Francis.
In: Accounting
Three former college classmates decided to open a store near campus to sell wireless equipment to students. They created a public company, The Wire, and issued stock to interested investors. They plan on creating monthly financial statements.
Several transactions occurred in March. Each is described separately in this folder. For each transaction, indicate the accounts for The Wire that are affected, whether they increase or decrease, and the amount of the increase or decrease.
When you record the dollar amounts, be sure to use a minus sign to indicate a decrease in the account.
ACCOUNT OPTIONS:
| Cash | Accounts Receivable | Inventory | Prepaid Rent | Fixtures and Equipment | Accounts Payable | Interest Payable | Wages Payable | Notes Payable | Paid in capital | Retained Earnings |
Transaction 1: On March 1, the three classmates opened a checking account for The Wire at a local bank. They each deposited $25,000 in exchange for shares of stock. A few of their friends also purchased stock totaling $12,000 that was deposited in The Wire account.
Transaction 2: The company quickly acquired $38,000 in inventory, 60% of which was acquired on open accounts that were payable after 30 days. The rest was paid for in cash.
Transaction 3: A one-year store rental lease was signed on March 1 for $12,000 for the year, and rent for the first 3 months was paid in advance. [Note: Record the complete entry for the March 1 transaction first and the complete adjusting entry on March 31 second.]
Transaction 4: The owners paid $3,000 for website advertising. They were able to get a good deal because one of the company's owners also owns stock in the website company. The owners also paid $5,000 for some advertising in local newspapers. [Note: Combine both transactions into one entry].
Transaction 5: Sales were $60,000. Cost of merchandise sold was 50% of its sales price. 35% of the sales were for cash. [Note: Record the complete entry for the sales first and the complete entry for the expenses second]
Transaction 6: Wages and salaries in March were $11,200, of which $8,800 was actually paid to employees.
Transaction 7: Miscellaneous expenses were $2,000, all paid for with cash
Transaction 8: On March 1, fixtures and equipment were purchased for $5,000 with a downpayment of $1,000 and a $4,000 note, payable in one year. Interest of 6.5% per year was due when the note was repaid. The estimated life of the fixtures and equipment is 11 years with no expected salvage value. [Note:Record the complete entry for the March 1 equipment purchase first, the March 31 depreciation adjusting entry second, and the March 31 interest adjusting entry third. Also, round all answers to the nearest cent.]
In: Accounting