Write a function in JAVASCRIPT that accepts an array as argument. The function should loop through the array elements and accumulate the sum of ASCII value of each character in element and return the total. For example: function([‘A’, ‘bc’, 12]); // returns 361 which is the sum of 65 + 98 + 99 + 49 + 50
Use of any built in string functions or built in array functions is not allowed,
Any help would be much appreciated
In: Computer Science
A motor with an internal resistance of R(motor) = 50 Ohms
requires a potential difference of V(motor)=20V to work properly.
As you don't have a 20V power source, you place two 12V batteries
in series with a custom-built resistor with resistance R1.
(a) How much current moves through the motor when it is working
properly?
(b) What must be the resistance of your custom-built resistor so
that the potential difference across the motor is 20V?
(c) If you built your resistor from aluminium wire with diameter of
0.03mm and a resisticity of 2.65*10^-8 Ohmes meter, what length of
wire must you use to create the necessary resistance of R1?
(d) What is the ratio of the power used by the motor to the power
dissipated by the resistor, P(motor)/P(R1)?
In: Physics
Record the Elijah's Home Furnishings transactions in its general journal. The company uses a perpetual inventory system.
June 1 Started business by issuing 100,000 shares of $1 par value per share common stock for $100,000.
June 1 Paid $4,500 to rent store space for the months of June, July and August
June 1 Purchased $32,000 of display equipment by paying $10,000 cash and by signing for the balance a three month note, payable in the amount of $22,000 on September 1. The note requires Elijah’s to pay interest at an annual rate of 12%.
June 2 Paid $1,000 for store supplies.
June 3 Purchased $30,000 of merchandise on account, terms 2/10, n/30, FOB destination.
June 4 Paid $500 for the delivery of merchandise purchased on June 3.
June 5 Returned merchandise purchased on June 3 for credit, $3,000
June 7 Paid $1,500 to advertise the business for June.
June 13 Paid the balance due to the seller for purchase of merchandise on June 03, less the discount.
June 17 Sold merchandise on credit for $28,000 (cost $20,000), terms 2/10, n/30, FOB shipping point.
June 18 Paid $600 for the delivery of merchandise sold on June 17.
June 20 Return of merchandise sold on June 17 accepted from the customer for full credit and returned to merchandise inventory, $1,400 (cost, $1,000)
June 21 Paid $100 for the delivery of merchandise returned on June 20.
June 26 Paid June telephone bill of $150.
June 27 Received payment in full from the customer for sale of merchandise on June 17, less the sales discount.
June 28 Purchased merchandise on credit for $5,000, terms 2/10, n/30, FOB destination.
June 29 Sold merchandise on credit for $10,000 (cost $6,000), terms 2/10, n/30, FOB shipping point.
Adjustments:
June 30 June’s prepaid rent has expired
June 30 Store supplies on hand were $300.
June 30 Accrued salaries and wages for June amount to $2,000. Payment to the employees will be made on July 1.
June 30 Display equipment has an estimated used life of 60 months. The residual value of the display equipment is estimated to be $2,000.
June 30 Income taxes for June were estimated to be $600. Taxes will be paid in July.
Required:
In: Accounting
Your company is a global seller or home furnishings called Worldwide Home Stuff Unlimited (WHSU). (Yes, they need some more creative people in their company.) Complete a seven-year planning model for WHSU for the period 2016 through 2022. Use the structure shown at the end of this assignment. Proceed as follows:
Take the 2016, 2017, and 2018 values from the data at the end of this assignment. Enter the ACTUAL VALUES even for the various lines that can be calculated from other lines (e.g., the Gross Profit or the EBT).
Place all growth rates and other input variables at the top left corner of the worksheet. Use formulas and/or functions to perform all necessary calculations.
Important Note: Most or all of the growth factors and other input values you will be using in this model are calculated in steps 3 through 7 below. So put the formulas for calculating these values in the appropriate cells at the top left corner of the worksheet.
Starting with 2019 and beyond, for the following line-items (a thru d below), assume a constantPERCENTAGE growth from one year to the next—e.g., from 2018 to 2019. That percentage change is equal to the Average Annual Percentage Change from 2016 to 2018. Calculate this value by averaging the percentage change from 2016 to 2017 and the percentage change from 2017 to 2018.
Net Sales/Sales Revenue
Selling, General, and Administrative (SG&A)
Depreciation and Amortization
Other Expenses
Starting with 2019 and beyond, assume that Advertising will change by the same dollar amount (not the same percentage) from one year to the next—e.g., from 2018 to 2019. That amount is equal to the Average Annual Change (in dollars) between 2016 and 2018.
Starting with 2018 and beyond, assume that Rent Expense will be unchanged (that is, constant) from one year to the next, so the values in 2019 through 2022 will be the same as the 2018 value.
Assume that the Cost of Goods Sold (CGS) as a percentage of Net Sales/Sales Revenue (that is, the ratio of CGS to Net Sales) will be constant in years 2018 through 2022 and equal to the percentage in 2018. You will need to calculate that percentage (ratio).
Assume that the tax rate will be constant in years 2018 through 2022 and equal to the tax rate in 2018. You will need to calculate that value (that is, the tax expense as a percentage of the EBT).
2
Note that your formulas should allow for the possibility that your company may lose money in any given year (whether or not it is not the case with the current data).
Be sure to note somewhere on the spreadsheet that all figures are in millions.
Format financial data with commas (but no decimal places), using dollar signs only for the Net Sales/Sales Revenue, Gross Profit, Total Expenses, Earnings Before Taxes, and Net Income lines. Format growth rates as percentages. Properly format all columns and numbers.
When creating the spreadsheet, be sure to copy cell formulas rather than entering similar formulas many times (for example, you can use the autofill handle to copy cell formulas from year to year).
Use Excel to place a footer on your spreadsheet with your last name and section (e.g., Jones—INSY 2299 RZQ—where you substitute your last name for Jones and your section for RZQ).
Be sure to follow these instructions carefully!
|
2016 |
2017 |
2018 |
2019 |
2020 |
2021 |
2022 |
|
|
REVENUE |
|||||||
|
Net Sales/Sales Revenue |
$29,241 |
$32,567 |
$34,444 |
||||
|
Cost of Goods Sold (CGS) |
11,634 |
16,600 |
21,200 |
||||
|
Gross Profit |
$17,607 |
$15,967 |
$13,244 |
||||
|
EXPENSE |
|||||||
|
Selling, General, and Administrative (SG&A) |
1,250 |
1,450 |
2,210 |
||||
|
Advertising |
1,250 |
1,100 |
1,675 |
||||
|
Depreciation and Amortization |
3,266 |
3,482 |
3,300 |
||||
|
Rent Expense |
1,880 |
1,880 |
1,880 |
||||
|
Other Expenses |
3,130 |
3,200 |
3,350 |
||||
|
Total Expenses |
$10,776 |
$11,112 |
$12,415 |
||||
|
Earnings before Taxes (EBT) |
$6,831 |
$4,855 |
$829 |
||||
|
Tax Expense |
$2,134 |
$1,265 |
$220 |
||||
|
Net Income |
$4,697 |
$3,590 |
$609 |
In: Finance
1) A public good is described, in part, as a good
A) that has a marginal cost at or near zero.
B) that is essential to life.
C) which has all of these characteristics.
D) that may be depleted if demand is heavy.
2) The optimal output of a public good occurs where
A) the marginal benefit of the consumer who values the good most should equal the marginal cost of the good.
B) the sum of the marginal benefit of each consumer at a given output equals the marginal cost of the good.
C) the total cost of the good equals the cumulated benefits of all consumers.
D) the horizontal sum of the consumer benefits of the good should equal the marginal cost of producing the good.
3) Which is not a good method of providing public type goods by private means?
A) Private contracts
B) Clubs
C) Free markets with competing entrepreneurs
C) Funding by donation
Please answer all of the questions
In: Economics
|
Samuelson and Messenger (S&M) began 2013 with 220 units of its one product. These units were purchased near the end of 2012 for $22 each. During the month of January, 110 units were purchased on January 8 for $25 each and another 220 units were purchased on January 19 for $27 each. Sales of 130 units and 120 units were made on January 10 and January 25, respectively. There were 300 units on hand at the end of the month. S&M uses a periodic inventory system. |
|
Calculate ending inventory and cost of goods sold for January using (1) FIFO, and (2) average cost. (Round your intermediate calculations to 1 decimal place. Round your average cost values to the nearest dollar amount.) |
| FIFO | Average cost | |
| Ending inventory | $ | $ |
| Cost of goods sold | $ | $ |
In: Accounting
Many lakes in the Adirondack State Park in New York are carefully managed. At some lakes, fines are levied for introducing non-intended fish into the lake. Why would such a rule exist? (Answer this question from an externality perspective!)
In: Economics
Many hotels have implemented aggressive recycling programs. Assume an employee within the hotel approached you about starting a comprehensive recycling program. What factors would influence the hotel’s decision to make a commitment to such a program?
In: Operations Management
Explain what is meant by the Theme Park internal and external business environment and use the acronym P.E.S.T with appropriate examples to clarify your explanation. Also, discuss using how new rides can be both interactive and educational.
In: Operations Management
Homes in a certain town have a mean value of $88,950. It is assumed that homes in the vicinity of the school have a higher value. A sample of 12 homes near the school is selected and it appears as if the population is normal. Their mean value is $92,460 with a standard deviation of $5200. Can we prove with 95% certainty that homes near the school do indeed have a higher value?
In: Statistics and Probability