C++ program for :
1. Given an array of real numbers and the dimension n (n...
C++ program for :
1. Given an array of real numbers and the dimension n (n is
entered from the keyboard). B form an array, each element bi -
arithmetic mean of the array elements and excluding ai.
2. Given an array of integers dimension n. Change the array so that
all the elements of the module which is not equal to the maximum
element of the array, replaced by zero, and equal - unit.
3. Given an array of...
Consider the following array: 2, 13, 16, 3, 7, 23, 12, 25. Show
a trace of...
Consider the following array: 2, 13, 16, 3, 7, 23, 12, 25. Show
a trace of execution for top-down mergesort using the method shown
in lecture (where both sides are updated at once). Illustrate how
the array is broken down, and then merged into an ordered
state.
does this look correct?
1 (initial): [2, 13, 16, 3, 7, 23, 12, 25]
2 (down): [[2, 13, 16, 3],[7, 23, 12, 25]]
3 (down): [[[2, 13], [16, 3]],[[7, 23], [12, 25]]]
4...
1. Given an
n-element array A, Algorithm X executes an
O(n)-time computation for each even
number...
1. Given an
n-element array A, Algorithm X executes an
O(n)-time computation for each even
number in A and an O(log n)-time computation for
each odd number in A.
What is the best-case running time of Algorithm X?
What is the worst-case running time of Algorithm X?
2. Given an array,
A, of n integers, give an O(n)-time algorithm that finds
the longest subarray of A such that all the numbers in that
subarray are in sorted order. Your algorithm...
1) Consider the function
k(x)=ax−12,
where a is a constant. Given k(2)=24, calculate a.
Provide your...
1) Consider the function
k(x)=ax−12,
where a is a constant. Given k(2)=24, calculate a.
Provide your answer below:
2) Snappys, Inc. is a company that produces digital cameras.
They are planning to release a new line of camera.
Snappys pays a fixed cost of $200,000 to introduce the new line,
plus $100 per camera. They are planning to sell the cameras for
$250 each.
What is the total revenue at the breakeven point? Give your answer
to the nearest thousand...
Suppose the population consists of FIVE individuals and the
elements are: S= {3, 6, 9, 12,...
Suppose the population consists of FIVE individuals and the
elements are: S= {3, 6, 9, 12, and 15} Obtain samples of size 3
(use counting rule). Obtain the population mean and variance,
sample means and variances of the distribution. Would the mean and
variance change if the sample size were to increase? Prepare two
excel tables.
a) In an excel table show the various samples (Table-1).
b) Calculate the population mean and variance (Table-1).
c) Calculate the sample mean and...
3) Recipe Costing
Using the information provided below, calculate:
a) total recipe cost
b) cost per...
3) Recipe Costing
Using the information provided below, calculate:
a) total recipe cost
b) cost per serving
As Purchased (A.P.) Ingredient Costs/Prices
butter
454
g
4.99
Olive oil
500
ml
6.38
onion
908
g
2.69
bay leaves
60
g
3.99
basmati rice
4.54
kg
12.99
vegetable bouillon
41
ea
7.99
salt
1
kg
2.49
STANDARDIZED RECIPE:
Recipe Name: Rice Pilaf
Serves
6
Serving Size
1 large ramekin full (250 ml)
Total Cost per recipe
Total Cost per serving
Product
size...
Calculate the average cost per unit, using a perpetual inventory
system. Assume a sale of 420...
Calculate the average cost per unit, using a perpetual inventory
system. Assume a sale of 420 units occurred on June 15 for a
selling price of $8 and a sale of 50 units on June 27 for $9.
(Round answers to 3 decimal places, e.g. 5.125.)
Date
Explanation
Units
Unit Cost
Total Cost
June 1
Inventory
150
$5
$750
12
Purchases
350
6
2,100
23
Purchases
240
7
1,680
30
Inventory
270
June 1 $enter a dollar amount 5
June...
43. Using the information in question 42, what is the cost of
goods sold for the...
43. Using the information in question 42, what is the cost of
goods sold for the period ended 12/31/2018?
Select one:
a. $2,080
b. $1,870
c. $2,110
d. $1,970
42. Given the following data, calculate the cost of ending
inventory on 12/31/2018 using a periodic inventory system and a
LIFO cost flow assumption:
1/1
Beginning
inventory 50 units
at $10 per unit
3/5
Purchases
50 units at $12 per unit
5/30
Purchases
40 units at...
2. Cost pass-through in the perfectly competitive market
Consider a perfectly competitive market in which the...
2. Cost pass-through in the perfectly competitive market
Consider a perfectly competitive market in which the demand
function is q = 100 – 4 p and the supply function
is q = - 20 + 2 p.
Calculate the market equilibrium price and quantity.
Calculate the price elasticity of demand, η, and the price
elasticity of supply, ε, at the market equilibrium.
Calculate the percentage of pass-through P by using the
formulae P = ε/(ε-η).
Now, suppose due to government...