1. Implement the faster algorithm for integer multiplication in C++ as a function, called “multiply”, that takes 2 unsigned integers and returns their multiplication as an unsigned integer.
2. Test your code in main.
Hints: Represent integers as strings.
Write a utility function that pads integers with zeros, this will be useful If the 2 integers differ in length In calculating ??10^? and (??+??) 10^(?/2)
In: Computer Science
The Ste. Marie Division of Pacific Media Corporation just started operations. It purchased depreciable assets costing $35 million and having a four-year expected life, after which the assets can be salvaged for $7 million. In addition, the division has $35 million in assets that are not depreciable. After four years, the division will have $35 million available from these nondepreciable assets. This means that the division has invested $70 million in assets with a salvage value of $42 million. Annual depreciation is $7 million. Annual operating cash flows are $27.5 million. In computing ROI, this division uses end-of-year asset values in the denominator. Depreciation is computed on a straight-line basis, recognizing the salvage values noted. Ignore taxes. Assume that all cash flows increase 10 percent at the end of each year. This has the following effect on the assets’ replacement cost and annual cash flows.
End of Year | Replacement Cost | Annual Cash Flow | |||||||||
1 | $ | 70,000,000 | × 1.1 = | $ | 77,000,000 | $ | 27,500,000 | × 1.1 = | $ | 30,250,000 | |
2 | $ | 77,000,000 | × 1.1 = | $ | 84,700,000 | $ | 30,250,000 | × 1.1 = | $ | 33,275,000 | |
3 | Etc. | Etc. | |||||||||
4 | |||||||||||
Depreciation is as follows.
Year | For the Year | "Accumulated" | ||||||
1 | $ | 7,700,000 | $ | 7,700,000 | (= 10% × $77,000,000) | |||
2 | 8,470,000 | 16,940,000 | (= 20% × 84,700,000) | |||||
3 | 9,317,000 | 27,951,000 | ||||||
4 | 10,248,700 | 40,994,800 | ||||||
Note that "accumulated" depreciation is 10 percent of the gross book value of depreciable assets after one year, 20 percent after two years, and so forth.
Required:
a. & b. Compute ROI using historical cost, net book value and gross book value.
c. & d. Compute ROI using current cost, net book value and gross book value.
A&B | ||||||||||||||||||||||||||||||
|
Compute ROI using current cost, net book value and gross book value. (Enter your answers as a percentage rounded to 1 decimal place (i.e., 32.1).)
C&D | ||||||||||||||||||||||||||||||
|
In: Accounting
Please use Java eclipse
Find pair in an array with given sum
Given an array of integers A and an integer S, determines whether there exist two elements in the array whose sum is exactly equal to S or not.
Display 1 a pair is found in an array with matching sum S else 0.
Input
6
5
1 -2 3 8 7
Where,
Output
1
For the given array, A[1] + A[3] = -2 + 8 = 6 which is equal to the given number S=6
In: Computer Science
What would be the speed of the following particles if they had the same wavelength as a photon of orange light (λ = 625.0 nm)?
1.Proton (mass = 1.673 × 10–24 g)
2.Neutron (mass = 1.675 × 10–24 g)
3.Electron (mass = 9.109 × 10–28 g)
4.Alpha particle (mass = 6.645 × 10–24 g)
In: Chemistry
Hypothesis testing terminology
a. Level of Significance | d. Power | g. Test Statistic |
b. Alternative Hypothesis | e. Effect Size | h. Type I Error |
c. Null Hypothesis | f. Type II Error | i. Significant Effect |
Match each of the following descriptions with its corresponding term from the list above. Enter the letter corresponding to the correct term in the blank.
A mistake researchers can make when they don’t conclude, for example, that a treatment has an effect when it actually does | |
The hypothesis for a hypothesis test that predicts that the independent variable has an effect | |
The probability of rejecting the null hypothesis when it is false | |
A treatment has this if the decision from the hypothesis test is to reject the null hypothesis | |
An indication of the magnitude of the treatment effect | |
A value computed using sample data that is used to decide whether to reject the null hypothesis | |
A mistake researchers can make when they conclude, for example, that a treatment has an effect when it does not | |
The hypothesis for a hypothesis test that predicts that the independent variable has no effect | |
The maximum probability the researcher is willing to accept of making a Type I error |
In: Math
In: Computer Science
Your state is developing a new probation initiative in an effort to reduce the risk of probation revocation and offender recidivism. Suggest at least three elements that should be included in such an initiative and provide support for your choices, including evidence as to how these elements will meet the goals of the new initiative.
In: Psychology
Define capacity and delay. Define causes of delay and factors that affect airport capacity. What is the annual service volume?
In: Operations Management
Brutus Auto is a thriving, independently owned and operated firm located in Westerville. It was founded in 1986 by “Brutus” Cooper. Brutus was born and raised in Westerville, OH. Brutus is well-known and trusted by the residents of the town. As a teenager, he was a star football player for the high school team. In his spare time, he enjoyed working on cars and had a special talent when it came to cars. After college, this hobby led Brutus to start his own business – Brutus Auto Tire and Lube.
Brutus does a wide variety of work on vehicles of all makes and models. The shop also offers a variety of parts and supplies at retail. Brutus spends a great deal of time conversing with customers, most of whom he has known his whole life. His reputation for honest and reliable work has earned him many repeat customers, with the positive word of mouth helping him to expand his business.
His wife, Diane, runs the office, and takes special care to acknowledge customers on their birthdays with hand-written cards that include coupons for discounted services. Customers often reflect that Brutus offers the kind of service you can only find from a small-town mechanic. While Brutus is slightly more expensive than the chain establishments that have recently moved into town, customers testify that the friendly environment and quality service are worth the price.
Operational details
Brutus’s shop has grown steadily over the years. Originally, Brutus maintained a modest three automobile bays at his shop, and he and his long-time buddy, Fred, conducted most of the work except oil changes which were handled by a part-time apprentice. Currently, Brutus shop has six bays (the layout of the shop is shown in Figure 1) and seven mechanics (as not all of the service activities require a bay). Each of the bays is identical so that any employee can work at any station.
Four of the employees (including Brutus and Fred) are full-time (work at least 40 hours per week), and three are interns who work part-time (work fewer than 40 hours per week). Brutus and Fred are the only two mechanics permitted to do work beyond the basics, and so more involved car services can take some time getting through the shop. Most mechanics at Brutus Auto were trained at the area vocational school, and those with particular skill are taken on as apprentices who work under Fred and Brutus on the more involved projects. Cooper provides all the tooling necessary, and is respected as a fair and caring boss. In return, Brutus’ employees are loyal and hard-workers; seldom is absenteeism a problem, and turnover is rare.
The employee schedule for a typical week is shown in Table 1. The numbers shown in Table 1 are all devoted to working on vehicles. The shop closes for one week in the winter.
Inventory
Although the shop is primarily a service provider, all of the services require materials in addition to labor, and so there are inventory considerations that Brutus must manage.
A variety of other parts and supplies (for example, oil filters and oil) must be kept available due to the regularity of use; it would be difficult to meet the high expectations of customers if these items are not available. This has become a particularly high priority ever since national service chains moved into town, as the speed of their services such as oil changes is already far superior to that of Brutus. As a result of these competitive pressures, Brutus sets a 98% target service level.
Brutus is dedicated to using a high-quality brand of parts and supplies, most of which are available from a single supplier. Note that these parts and supplies are not only used to support services but also sold as retail transactions to customers who wish to perform their own repair work.
Currently, a continuous review policy is used for all car parts and supplies, but Brutus believes this system may require too much time to maintain for all inventory items. A sample of some of the items offered, the volumes used in services and sold at retail, and the associated costs are shown in Table 2. Brutus has determined that to call the supplier, pay for transportation, and put a shipment away costs approximately $50. The stockroom is relatively small and does not require special equipment or personnel. There is virtually no theft of product, so the annual holding costs are approximately 25% of unit cost. Delivery of orders takes about one week from the local supplier.
Adding Tire Service
The owners believe that adding tire replacement would increase revenues with a negligible increase to fixed (facility) costs other than tire inventory. However, in order to be competitive with the discount chains, Brutus must target a maximum of 30 minutes total time for each customer visit specific to tires since pricing was already competitive. They estimate that the time between arrivals for cars needing such replacement would be ten minutes. A dedicated and secure parking lot with a limit of 6 spots is available specifically for cars awaiting tire service. While service requirements vary, they estimate that a dedicated technician should finish up 3 tire service jobs each hour.
Brutus Cooper to improve Operations and/or to lower costs.
In: Operations Management
Whirlwind Cycles is owned 100% by Daniel, a single taxpayer. Both Whirlwind Cycles
and Daniel use the cash method of accounting for tax purposes. The business incurred the
following items of income and expense in Year 2:
Cash Sales $225,000
Interest received from City of Flint Bonds
(this is a municipal bond) 3,000
Cost of Goods Sold (assume cash
paid in Year 2) 45,000
Cash payments for Year 2 utilities 3,500
Cash payments for Year 2 rent 18,000
Tax depreciation 40,000
Cash contribution to the Democratic party
(not deductible for tax purposes) 1,000
On 1/1, Year 1, Whirlwind Cycles purchased a 60-month zero coupon bond with a 5%
yield and a $20,000 maturity value for $15,670 (compounded annually).
Daniel’s taxable income is $100,000 before any profits from the business are considered.
Daniel files as a single tax payer.
Whirl Cycles is organized as a C Corporation and the corporation pays all of its after-tax
cash flows to Daniel as a dividend.
(a) How much interest income does Whirlwind cycles need to recognize from the zero
coupon bond in Year 2? (5 pts)
(b) What is the taxable income of Whirlwind Cycles in Year 2? (5 pts)
(c) What is the after-tax cash flow of Whirlwind Cycles in Year 2? (5 pts)
Hint: the total tax due in Year 2 of Whirlwind Cycles is 25,058.
(d) Calculate Daniel’s Year 2 after-tax cash flows from the Whirlwind Cycles. (5 pts)
In: Accounting
Files that are read by the computer are called ____ files.
a. |
report |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
b. |
serial |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
c. |
input |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
d. |
storage The database for a pet supply company includes the following
table, named tblCollar, that contains product data for pet collars.
The ItemDesc and Color fields contain text. The ItemNum, Price, and
Quantity fields contain numbers.
Which of the following statements would select the ItemDesc and Price fields from tblCollar for all records whose ItemDesc field begins with the word “leather” followed by zero or more characters?
|
In: Computer Science
What is Rapid provisioning and what are the tools that we use to implement rapid provisioning?
In: Computer Science
Part 1) Antuan Company set the following standard costs for one unit of its product. Direct materials (4.0 Ibs. @ $6.00 per Ib.) $ 24.00 Direct labor (1.8 hrs. @ $11.00 per hr.) 19.80 Overhead (1.8 hrs. @ $18.50 per hr.) 33.30 Total standard cost $ 77.10 The predetermined overhead rate ($18.50 per direct labor hour) is based on an expected volume of 75% of the factory’s capacity of 20,000 units per month. Following are the company’s budgeted overhead costs per month at the 75% capacity level. Overhead Budget (75% Capacity) Variable overhead costs Indirect materials $ 15,000 Indirect labor 75,000 Power 15,000 Repairs and maintenance 30,000 Total variable overhead costs $ 135,000 Fixed overhead costs Depreciation—Building 24,000 Depreciation—Machinery 70,000 Taxes and insurance 17,000 Supervision 253,500 Total fixed overhead costs 364,500 Total overhead costs $ 499,500 The company incurred the following actual costs when it operated at 75% of capacity in October. Direct materials (61,000 Ibs. @ $6.20 per lb.) $ 378,200 Direct labor (21,000 hrs. @ $11.30 per hr.) 237,300 Overhead costs Indirect materials $ 41,750 Indirect labor 176,200 Power 17,250 Repairs and maintenance 34,500 Depreciation—Building 24,000 Depreciation—Machinery 94,500 Taxes and insurance 15,300 Supervision 253,500 657,000 Total costs $ 1,272,500 Required: 1&2. Prepare flexible overhead budgets for October showing the amounts of each variable and fixed cost at the 65%, 75%, and 85% capacity levels and classify all items listed in the fixed budget as variable or fixed.
Part 2) Compute the direct materials cost variance, including its price and quantity variances. AQ = Actual Quantity SQ = Standard Quantity AP = Actual Price SP = Standard Price
Part 3) Compute the direct labor cost variance, including its rate and efficiency variances. AH = Actual Hours SH = Standard Hours AR = Actual Rate SR = Standard Rate
Part 4) Prepare a detailed overhead variance report that shows the variances for individual items of overhead.
In: Accounting
How does Genie support and refute the critical period hypothesis?
In: Psychology