Questions
Please use java language in an easy way and comment as much as you can! Thanks...

Please use java language in an easy way and comment as much as you can! Thanks

  1. (Write a code question) Write a generic method called "findMin" that takes an array of Comparable objects as a parameter. (Use proper syntax, so that no type checking warnings are generated by the compiler.) The method should search the array and return the index of the smallest value.

  2. (Analysis of Algorithms question) Determine the growth function and time complexity (in Big-Oh notation) of the findMin method from the previous problem. Please show your work by annotating the code.

In: Computer Science

ENCODE THE FOLLOWING STREAM OF BITS USING 4B/5B encoding :- 1101011011101111 what is the ratio of...

ENCODE THE FOLLOWING STREAM OF BITS USING 4B/5B encoding :-

1101011011101111

what is the ratio of redundant bits in 4B/5B?

In: Computer Science

1. Write a python program to create a list of integers using random function. Use map...

1. Write a python program to create a list of integers using random function. Use map function to process the list on the expression: 3x2+4x+5 and store the mapped elements in another list. Now use filter to do sum of all the elements in another list.

2. Write a function that takes n as input and creates a list of n lists such that ith list contains first 10 multiples of i.

3. Write a function that takes a number as input parameter and returns the corresponding text in word. For example, on input 458, the function should return ‘Four Five Eight’. Use dictionary for mapping digits to their string representation.

4. Write a program to create two sets of integer type using random function. Perform following operations on these two sets:

a) Union

b) Intersection

c) Difference

d) Symmetric difference

In: Computer Science

What is PDCA? And briefly say how it works in a Restaurant?                           (3 marks) Outline the...

  1. What is PDCA? And briefly say how it works in a Restaurant?                           
  2. Outline the 7 Management Principles according to ISO 9001:2015                   

In: Operations Management

Elizabeth College, a small private college, had the following transactions in fiscal year 2017. 1. Gross...

Elizabeth College, a small private college, had the following transactions in fiscal year 2017.
1.

Gross tuition and fees revenue totaled $5,600,000. Tuition waivers and scholarships of $346,000 were granted. Of the tuition waivers granted $276,400 was for teaching assistantships, which is an instruction expense.

2. Students received tuition refunds of $101,670.
3.

During the year the college received $1,891,000 cash in unrestricted private gifts, $575,200 cash in temporarily restricted grants, and $1,000,000 in securities for an endowment.

4.

A pledge campaign generated $1,090,000 in pledges. Of the amount pledged, $573,200 was for the capital construction campaign, $300,000 was for endowments, and the remainder of the pledges had no purpose restrictions. The pledges will all be collected in 2018.

5. Auxiliary enterprises provided goods and services that generated $94,370 in cash.
6. Collections of tuition receivable totaled $5,080,000.
7. Unrestricted cash of $1,000,000 was invested.
8. The college purchased computer equipment at a cost of $10,580.
9. During the year the following expenses were paid:
  Instruction $ 3,566,040
  Academic support 1,987,000
  Student services 87,980
  Institutional support 501,130
  Auxiliary enterprises 92,410
10. Instruction provided $450,000 in services related to the temporarily restricted grant recorded in transaction 3.
11.

At year-end, the allowance for uncollectible tuition and fees was increased by $7,200. The fair value of investments had increased $11,540; of this amount, $3,040 was allocated to permanently restricted net assets, the remainder was allocated to unrestricted net assets. Depreciation on plant
and equipment was allocated $34,750 to instruction, $41,000 to auxiliary enterprises, and $12,450 to academic support.

12. All nominal accounts were closed.
a-1.

Prepare journal entries to record the foregoing transactions for the fiscal year ended June 30, 2017. (If no entry is required for a transaction/event, select "No Journal Entry Required" in the first account field.)

In: Accounting

The following are BAC Bhd.’s year end statement of financial position and statement of profit and...

The following are BAC Bhd.’s year end statement of financial position and statement of profit and loss for 2016 and 2017:
2017 ($) 2016 ($)
Non Current Assets:   
Gross Non Current assets 317,503 232,179
Less accumulated depreciation 54,045 34,187
Net Non Current assets 263,458 197,992
Current Assets:
ICLBAT/JANUARY2019
7

Cash and equivalents 208,323 102,024
Accounts receivable 690,294 824,979
Inventories 942,374 715,414
Total Current Aassets 1,840,991 1,642,417
Total Assets 2,104,449 1,840,409
Non Current Liabilities   
Long term debt 410,769 372,931
Total Non Current Liabilities 410,769 372,931
Current Liabilites   
Short term borrowings 288,798 296,149
Accounts payable 636,318 414,611
Accruals 106,748 103,362
Total Current Liabilities 1,031,864 814,122
Total Liabilities 1,442,633 1,187,053
Shareholders’ Equity   
Common stock (100,000 shares) 550,000 550,000

Retained earnings 111,816 103,356
Total Shareholders’ Equity 661,816 653,356
Total Liabilities and Shareholders’ Equity 2,104,449 1,840,409






  
ICLBAT/JANUARY2019
8


2017 ($) 2016 ($)
Sales 2,325,967 2,220,607 (-) Cost of goods sold 1,869,326 1,655,827 Other expenses 287,663 273,870 Total operating costs excluding depreciation and amortization 2,156,989 1,929,697 Depreciation and amortization 25,363 26,341 Total operating costs 2,182,352 1,956,038 EBIT 143,615 264,569 (-) Interest expense 31,422 13,802 EBT 112,193 250,767 (-) Taxes (30%) 33,658 75,230 Net income 78,535 175,537

Related items:
2017 2016 Total dividends paid $70,075 $150,000 Stock price per share $15.60 $21.80

Required:
(a) Calculate the after tax operating income (i.e. after-tax EBIT) for 2016 and 2017.

(b) Calculate the net working capital (NWC) that is supported by non-free sources for 2016 and 2017, and the changes in NWC between these two years.

(c) What is free cash flow (FCF)? Calculate the FCF for 2017. Is a negative FCF always a bad sign?

(d) Calculate the following for the company for 2017: (i) Earnings per share (1 mark) (ii) Dividends per share (1 mark) (iii) Book value per share (1 mark) (Total: 15 marks)

In: Accounting

Mrs Solly signed as a surety for her nephew that wanted to start a panel beating...

Mrs Solly signed as a surety for her nephew that wanted to start a panel beating company. Mrs Solly’s nephew has being lying about his business doing poorly and continuously borrows money from Mrs Solly. Due to this lie, Mrs Solly does not want to fulfil her obligations in terms of the Suretyship Agreement. Legally advise Mrs Solly on the following:

1.1 The nature of a Surety Agreement

1.2 The benefits available to a Surety

1.3 The various ways in which a Surety Agreements may be terminated

In: Accounting

You are an eager and ambitious young graduate of the Reginal F. Lewis College of Business...

You are an eager and ambitious young graduate of the Reginal F. Lewis College of Business at Virginia State University with a new Accounting degree and a great life ahead of you. One of your closest friends is an inventor and an entrepreneur who wants to start a business selling a break-through new drywall screw that he has invented and that he believes works much better than the drywall screws currently on the market. He wants to start the business by opening a factory to produce the screws which can then be sold to either wholesalers or retailers who will then sell them to the general public. After searching all over creation for the right sized building in the perfect location to properly meet the needs of his target customers, he found that the ideal building in which to put up his factory was right here in Petersburg all along.                                            

To begin, he was able to purchase the building he needed outright for $525,000. Useful life of the building is 40 years and it is depreciated on a straight-line basis. Estimated salvage value is $25,000. Property taxes on the building each year are $3,500.                                                                                                                                                                                                               

There is a new machine that another fellow VSU grad has invented that takes the metal for the screws and molds them into their proper size and shape, and takes the plastic for the anchors and molds them into their proper size and shape; an assembly line is attached to the machine where workers put the screws and anchors into boxes. The finished product is a box of 32 drywall screws and their plastic anchors that work unlike any that have come before them. He purchased this machine outright for $175,000. The machine has a useful life of 25 years with no residual value and is depreciated on a straight-line basis. The machine can produce 23,000 boxes of screws and anchors per year. He is sure that he can sell every unit produced.                                                                                                                                                                                                                                     

It is determined that to produce the 32 screws in each box will require 112 ounces of metal which is the only material used to make the screws and to produce the 32 anchors in each box will take 48 ounces of plastic which is the only material used to make the anchors. The metal you need is produced by multiple suppliers and you've found one so far that will allow you to buy it at $1.50 per pound. The plastic used is also produced by multiple suppliers and you've found one so far that will allow you to buy it at $.15 per pound. It takes 15 minutes for the workers on the assembly line to box the screws and anchors because they are put in there in a way that prevents them from becoming disorderly. This is part of the quality aspect of the product. Assembly line workers are paid at a rate of $17.00 per hour.                                                                                                                                    

Your friend hired a Vice President (VP) who has a degree in Marketing from VSU. She did some market research and determined that in order to be competitive with your new product you are going to charge $20.75 per box of screws and anchors. The Vice President is paid $58,000 per year. He also hired a Chief Operating Officer who will be paid $58,000 per year. Your friend has also asked you to serve as a consultant to his company to make sure that the business gets off to a good start. Your fee has not yet been determined and is not part of this problem.               

Questions

Prepare a variable costing format income statement assuming that the company makes and sells the maximum possible number of units. If the income is negative, what is the reason? Your friend asks you for advice on how to increase the company income. Give him at least two possible solutions to the problem.Which solution did you recommend to your friend? Why did you choose this particular solution?

Prepare a memo addressed to your friend/client explaining your options and your recommendation. This memo should be no more than one page long.               

What is the new break-even point after implementing your solution?

What is the maximum income the company can make after implementing your solution? Is this enough profit to justify going into business? Why or why not?                                                                                                     

Prepare both an absorption costing income statement and a variable costing income statement to reflect your solution. State your assumptions about the number of units produced and the number sold.     

In: Accounting

can someome investigate my program that utilizes semaphores that can result in deadlock due to programming...

can someome investigate my program that utilizes semaphores that can result in deadlock due to programming errors and help in finding out if the solution meet all criteria for the critical section
  • If yes, then comment code identifying the parts of code that do
  • If no, could you help in fixing the code wherever given solution fails criteria in the code below

#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <unistd.h>

#define N 5
#define THINKING 2
#define HUNGRY 1
#define EATING 0
#define LEFT (phnum + 4) % N
#define RIGHT (phnum + 1) % N

int state[N];
int phil[N] = { 0, 1, 2, 3, 4 };

sem_t mutex;
sem_t S[N];

void test(int phnum)
{
if (state[phnum] == HUNGRY
&& state[LEFT] != EATING
&& state[RIGHT] != EATING) {
// state that eating
state[phnum] = EATING;

sleep(2);

printf("Philosopher %d takes fork %d and %d\n",
phnum + 1, LEFT + 1, phnum + 1);

printf("Philosopher %d is Eating\n", phnum + 1);

// sem_post(&S[phnum]) has no effect
// during takefork
// used to wake up hungry philosophers
// during putfork
sem_post(&S[phnum]);
}
}

// take up chopsticks
void take_fork(int phnum)
{

sem_wait(&mutex);

// state that hungry
state[phnum] = HUNGRY;

printf("Philosopher %d is Hungry\n", phnum + 1);

// eat if neighbours are not eating
test(phnum);

sem_post(&mutex);

// if unable to eat wait to be signalled
sem_wait(&S[phnum]);

sleep(1);
}

// put down chopsticks
void put_fork(int phnum)
{

sem_wait(&mutex);

// state that thinking
state[phnum] = THINKING;

printf("Philosopher %d putting fork %d and %d down\n",
phnum + 1, LEFT + 1, phnum + 1);
printf("Philosopher %d is thinking\n", phnum + 1);

test(LEFT);
test(RIGHT);

sem_post(&mutex);
}

void* philospher(void* num)
{

while (1) {

int* i = num;

sleep(1);

take_fork(*i);

sleep(0);

put_fork(*i);
}
}

int main()
{

int i;
pthread_t thread_id[N];

// initialize the semaphores
sem_init(&mutex, 0, 1);

for (i = 0; i < N; i++)

sem_init(&S[i], 0, 0);

for (i = 0; i < N; i++) {

// create philosopher processes
pthread_create(&thread_id[i], NULL,
philospher, &phil[i]);

printf("Philosopher %d is thinking\n", i + 1);
}

for (i = 0; i < N; i++)

pthread_join(thread_id[i], NULL);
}

In: Computer Science

Titanic Corporation has 10 million share outstanding, selling currently at a price of $50 per share....

Titanic Corporation has 10 million share outstanding, selling currently at a price of $50 per share. The company expects earnings per share next year to be $7.50. The company retains one-third of each year's earnings and reinvests these funds in projects with an expected return of 15% (thus, ROE is 15%)

What Rate of return do the shareholders require?

Suppose that, unexpectedly, the company announces plans to retain an additional $3 per share for the next ten years. These additional funds will be invested in ten separate perpetual projects, each with an expected rate of return of 9%. The required rate of return on the new projects would be the same as the current required return. As a result of this announcement. Titans Stock price is?

Do you think Titanic is more of a growth company before or after this announcement?

In: Finance

What is the NLRB? What is it and what is it's role? "Fair labor standards Act"....

  • What is the NLRB? What is it and what is it's role?

  • "Fair labor standards Act". Provide an overview.

  • "Espoused" versus "in use" cultural values. Define these terms. Why are these terms important to organizations/HR?

  • Please answer all of them in details

In: Operations Management

Point charges of 6.25 µC and −3.50 µC are placed 0.350 m apart. (Assume the negative...

Point charges of 6.25 µC and −3.50 µC are placed 0.350 m apart. (Assume the negative charge is located to the right of the positive charge. Include the sign of the value in your answers.)

(a)Where can a third charge be placed so that the net force on it is zero?

  m to the right of the −3.50 µC charge

(b)What if both charges are positive?

  m to the right of the 3.50 µC charge

In: Physics

Bass - Samples: The bass in Clear Lake have weights that are normally distributed with a...

Bass - Samples: The bass in Clear Lake have weights that are normally distributed with a mean of 1.9 pounds and a standard deviation of 0.8 pounds.

(a) If you catch 3 random bass from Clear Lake, find the probability that the mean weight is less than 1.0 pound. Round your answer to 4 decimal places.


(b) If you catch 3 random bass from Clear Lake, find the probability that the mean weight it is more than 3 pounds. Round your answer to 4 decimal places.

In: Math

How political opponents became enemies in the U.S. ?

How political opponents became enemies in the U.S. ?

In: Psychology

A.) Calculate the pH of 1.0 L of the solution, upon addition of 49.00 mL of...

A.) Calculate the pH of 1.0 L of the solution, upon addition of 49.00 mL of 1.0 MHCl.

Calculate the pH of the solution upon addition of 19.1 mL of 1.00 MHCl to the original buffer

B.)For each of the following solutions, calculate the initial pH and the final pH after adding 0.005 mol of NaOH.

1.) 300.0 mL of pure water

2.)300.0 mL of a buffer solution that is 0.210 M in HCHO2 and 0.290 M in KCHO2

3.)300.0 mL of a buffer solution that is 0.295 M in CH3CH2NH2 and 0.270 M in CH3CH2NH3Cl

In: Chemistry