Consider an array A[1 · · · n] which is sorted and then rotated k steps to the right. For example, we might start with the sorted array [1, 4, 5, 9, 10], and rotate it right by k = 3 steps to get [5, 9, 10, 1, 4]. Give an O(log n)-time algorithm that finds and returns the position of a given element x in array A, or returns None if x is not in A. Your algorithm is given the array A[1 · · · n] but does not know k. Use Java to solve this problem
In: Computer Science
Why has the HRM function increased in stature and influence in many organizations and How has increased globalization influenced the way HRM is practiced in the United States?
In: Economics
Culture shock how does it affect life in two paragraphs?
In: Psychology
Endless Mountain Company manufactures a single product that is popular with outdoor recreation enthusiasts. The company sells its product to retailers throughout the northeastern quadrant of the United States. It is in the process of creating a master budget for 2017 and reports a balance sheet at December 31, 2016 as follows:
Endless Mountain Company |
||||||
Balance Sheet |
||||||
December 31, 2016 |
||||||
Assets |
||||||
Current assets: |
||||||
Cash |
$ |
46,200 |
||||
Accounts receivable (net) |
260,000 |
|||||
Raw materials inventory (4,500 yards) |
11,250 |
|||||
Finished goods inventory (1,500 units) |
32,250 |
|||||
Total current assets |
$ |
349,700 |
||||
Plant and equipment: |
||||||
Buildings and equipment |
900,000 |
|||||
Accumulated depreciation |
(292,000 |
) |
||||
Plant and equipment, net |
608,000 |
|||||
Total assets |
$ |
957,700 |
||||
Liabilities and Stockholders’ Equity |
||||||
Current liabilities: |
||||||
Accounts payable |
$ |
158,000 |
||||
Stockholders’ equity: |
||||||
Common stock |
$ |
419,800 |
||||
Retained earnings |
379,900 |
|||||
Total stockholders’ equity |
799,700 |
|||||
Total liabilities and stockholders’ equity |
$ |
957,700 |
||||
The company’s chief financial officer (CFO), in consultation with various managers across the organization has developed the following set of assumptions to help create the 2017 budget:
ALL I NEED HELP WITH IS FILLING OUT THE CHART BELOW
:)
Prepare the ending finished goods inventory budget at December 31, 2017. (Round your answers to 2 decimal places.)
|
In: Accounting
In: Civil Engineering
Match each example with the correct input control.
|
|
In: Accounting
Write a class named Rat (to simulate rational or fraction number) such that it works as in the main below.
int main()
{
Rat a(3, 4), b(1, 2);
a.print(); // output: 3/4
b.print(); // output: 1/2
Rat c = a.add(b);
c.print(); // output: 5/4
// Hint: 3/4 + 1/2 = 6/8 + 4/8 = 10/8 = 5/4
Rat d = a.multiply(b);
d.print(); // output: 3/8
// Hint: 3/4 x 1/2 = 3/8
return 0;
}
In: Computer Science
In: Computer Science
List and briefly explain each step of the production planning process.
In: Operations Management
Does Khan-Cullors tell a fuller mission of Black Lives Matter than what is commonly portrayed in mainstream media?
In: Psychology
For each of the following indicate whether the statement is TRUE or FALSE.
a. ____ A resident alien may be a shareholder of an S-Corporation.
b. ____ An LLC can be taxed as an S-Corporation.
c. ____ A shareholder’s basis in the stock of an S-Corporation can be increased when the corporation borrows money from a bank.
d. ____ A calendar-year C-Corporation which is in its third year of operations can make an S-corporation election on May 15 which will be effective for a partial year beginning June 1st.
e. ____ Section 1245 recapture income of an S-Corporation is reported as a separately stated item shareholders via the K-1
In: Accounting
Match each phrase with the appropriate term.
|
|
In: Accounting
Suppose we have a piece of metal sheet of length l = 5.8 cm, and width w = 10.2 cm to make a capacitor.
(a) If we cut it in two equal halves and make it into a parallel
capacitor with plate separation d = 0.4 cm, find the
capacitance in pF.
=____ pF
(b) If we cut it into two sections with widths
2?a and 2?b instead (a
< b), and roll them up to form a cylindrical capacitor
with two shells separated by the same distance d radially,
find a and b (in cm).
a =___ cm
In: Physics
The educational model at UoPeople places a great emphasis on examinations. Does your culture or country have the same emphasis? Do you personally agree with the emphasis placed on examinations?
In: Psychology
Modify your program from Learning Journal Unit 7 to read
dictionary items from
a file and write the inverted dictionary to a file. You will need
to decide on
the following:
* How to format each dictionary item as a
text string in the input file.
* How to convert each input string into a
dictionary item.
* How to format each item of your inverted
dictionary as a text string in
the output file.
Create an input file with your original three-or-more items and
add at least
three new items, for a total of at least six items.
------------------------------------------------------------------------------------------------------------------
The Unit 7 program:
Dr_Appointments = {'Mom':[2, 'April', 2020], 'Brother':[6, 'July', 2020], 'Sister':[6, 'January', 2021], }
def invert_dict(d):
inverse = dict()
for key in d:
val = d[key]
for val in val:
if val not in inverse:
inverse[val] =
[key]
else:
inverse[val].append(key)
return inverse
print('Dr. Appointments:', Dr_Appointments)
print('Inverted Dr. Appointments:')
Invert_Appointments = invert_dict(Dr_Appointments)
print(Invert_Appointments)
This is the expanded dictionary: the Unit 7 plus three more:
Mom: 2, April, 2020,
Brother: 6, July, 2020,
Sister: 6, January, 2021,
Aunt: 2, December, 2021,
Uncle: 6, November, 2021,
Niece: 2, December, 2020
In: Computer Science