Questions
craft corp's production function is given by q = 5min(K, 2L),where q is the quantity...

craft corp's production function is given by q = 5min(K, 2L), where q is the quantity produced and K and L are the amounts of capital and labor input. Input prices are r = 2 and w = 6.

a) find the long run cost function

b) draw the isoquants and isocost and show the equilibrium when q = 2000. what is the total cost to produce q = 2000? what is the labor cost to produce q = 2000? what is the capital cost to produce q = 2000?

c) supposed in the short run K is fixed @ 20. find the short run cost function. represent the short-run and long-run cost functions in a diagram together.

In: Economics

craft corp's production function is given by q = 5min(K, 2L), where q is the quantity...

craft corp's production function is given by q = 5min(K, 2L), where q is the quantity produced and K and L are the amounts of capital and labor input. Input prices are r = 2 and w = 6.

a) find the long run cost function

b) draw the isoquants and isocost and show the equilibrium when q = 2000. what is the total cost to produce q = 2000? what is the labor cost to produce q = 2000? what is the capital cost to produce q = 2000?

c) supposed in the short run K is fixed @ 20. find the short run cost function. represent the short-run and long-run cost functions in a diagram together.

In: Economics

Caspian Sea Drinks is considering buying the J-Mix 2000. It will allow them to make and...

Caspian Sea Drinks is considering buying the J-Mix 2000. It will allow them to make and sell more product. The machine cost $1.78 million and create incremental cash flows of $820,427.00 each year for the next five years. The cost of capital is 10.84%. What is the net present value of the J-Mix 2000?

Caspian Sea Drinks is considering buying the J-Mix 2000. It will allow them to make and sell more product. The machine cost $1.61 million and create incremental cash flows of $540,694.00 each year for the next five years. The cost of capital is 10.41%. What is the internal rate of return for the J-Mix 2000?

In: Finance

Q7. General Electric Corp. (GE) paid cash dividends totaling $0.57 per share in 2000. Over the...

Q7. General Electric Corp. (GE) paid cash dividends totaling $0.57 per share in 2000. Over the previous three years, GE's dividends grew at an annual rate of 15.4 per-cent. Assume that this growth rate will continue for five more years, after which dividend growth will revert to a normal annual rate of 8 percent into perpetuity. Also assume that the appropriate discount rate for GE is 11 percent. a. Compute the value of GE's stock at year-end 2000. b. The actual price of GE stock at year-end 2000 was $47.9375. Comparing this price to your calculation of GE's value in (a), was GE overpriced or underpriced at year-end 2000?

In: Finance

Q7. General Electric Corp. (GE) paid cash dividends totaling $0.57 per share in 2000. Over the...

Q7. General Electric Corp. (GE) paid cash dividends totaling $0.57 per share in 2000. Over the previous three years, GE's dividends grew at an annual rate of 15.4 per-cent. Assume that this growth rate will continue for five more years, after which dividend growth will revert to a normal annual rate of 8 percent into perpetuity. Also assume that the appropriate discount rate for GE is 11 percent. a. Compute the value of GE's stock at year-end 2000. b. The actual price of GE stock at year-end 2000 was $47.9375. Comparing this price to your calculation of GE's value in (a), was GE overpriced or underpriced at year-end 2000?

In: Finance

The Consumer Price Index (CPI) is the most popular indicator of inflation.  Consider the price and consumption...

The Consumer Price Index (CPI) is the most popular indicator of inflation.  Consider the price and consumption data given below.

Product

Quantity

Purchased

2000

Price per Unit

2000

2003

2004

Oranges (kg)

5

$ 2.00

$ 2.50

$ 2.60

Flour (lbs)

10

1.30

1.80

2.00

CD’s

2

18.00

20.00

23.00

Draft Beer

3

1.00

1.70

1.80

(a)     Using 2000 as the base year compute the value of the CPI for the years 2003 and 2004            (2000 = 100).

(b)     Briefly interpret your results using the CPI that you have calculated.

(c)     Compute the annual inflation rate for the years 2003 and 2004.

In: Economics

Below is the asset section of common-size balance sheets for Nike for a consecutive five-year period....

Below is the asset section of common-size balance sheets for Nike for a consecutive five-year period.   

      NIKE (NKE) 2019      2018     2017       2016        2015

Current Assets

Cash and Equivalents 15.8%    10.5%      9.4%       8.9%        5.2%

Receivables 25.7%    26.9%   31.3%     28.0%      27.9%

Inventories 20.6%    20.7%   22.6%     21.3%      24.5%

Other Current Assets 10.1% 11.8% 6.4% 6.2% 4.7%

Total Current Assets 72.2% 69.8%    69.7%      64.5%     62.3%

Non-Current Assets

P P & E, Net 18.3% 20.1% 24.1% 25.1% 27.8%

Intangibles                                6.2% 6.4% 2.7% 6.8%        6 .8%

Other Non-Curr Assets 3.4% 3.7% 3.4% 3.6% 3.1%

Total Non-Curr Assets 27.8% 30.2% 30.3% 35.5% 37.7%

Total Assets                          100.0% 100.0% 100.0%   100.0%    100.0%

Based on these statements alone, which of the following statements is most accurate?

Nike’s Debt consisted mostly of short-term debt in 2019.

Based on analysis of its assets, Nike was more liquid in 2019 than in 2015.

Nike had less money invested in inventory in 2019 than in 2015.

Nike had relatively more money invested in PP&E in 2019 than in 2015

In: Accounting

).Modify the project so that records are inserted into the random access file in ascending order...

).Modify the project so that records are inserted into the random access file in ascending order using an insertion sort methodology with the Social Security Number acting as the key value. This requires defining the method compareTo() in the Personal and Student classes to be used in a modified method add() in Database. The method finds a proper position for a record d, moves all the records in the file to make room for d, and writes d into the file.

2. With the new organization of the data files. find() and modify() must also be modified. Both methods should now stop their sequential search when they encounter a record greater than the record looked for, or they reach the end of the file.

Can somebody check the compareTo() and help me out with the add() method in this question.

Personal.java

import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Comparator;

public class Personal extends IOmethods implements DbObject, Comparable {
   protected final int nameLen = 10, cityLen = 10;
   protected String SSN, name, city;
   protected int year;
   protected long salary;
   protected final int size = 9 * 2 + nameLen * 2 + cityLen * 2 + 4 + 8;

   Personal() {
   }

   Personal(String ssn, String n, String c, int y, long s) {
       SSN = ssn;
       name = n;
       city = c;
       year = y;
       salary = s;
   }

   public int size() {
       return size;
   }

   public void writeToFile(RandomAccessFile out) throws IOException {
       writeString(SSN, out);
       writeString(name, out);
       writeString(city, out);
       out.writeInt(year);
       out.writeLong(salary);
   }

   public void writeLegibly() {
       System.out.print("SSN = " + SSN + ", name = " + name.trim() + ", city = " + city.trim() + ", year = " + year
               + ", salary = " + salary);
   }

   public void readFromFile(RandomAccessFile in) throws IOException {
       SSN = readString(9, in);
       name = readString(nameLen, in);
       city = readString(cityLen, in);
       year = in.readInt();
       salary = in.readLong();
   }

   public void readKey() throws IOException {
       System.out.print("Enter SSN: ");
       SSN = readLine();
   }

   public void readFromConsole() throws IOException {
       System.out.print("Enter SSN: ");
       SSN = readLine();
       System.out.print("Name: ");
       name = readLine();
       for (int i = name.length(); i < nameLen; i++)
           name += ' ';
       System.out.print("City: ");
       city = readLine();
       for (int i = city.length(); i < cityLen; i++)
           city += ' ';
       System.out.print("Birthyear: ");
       year = Integer.valueOf(readLine().trim()).intValue();
       System.out.print("Salary: ");
       salary = Long.valueOf(readLine().trim()).longValue();
   }

   public void copy(DbObject[] d) {
       d[0] = new Personal(SSN, name, city, year, salary);
   }

   // compare by ssn
   public static Comparator ssnComparator = new Comparator() {

       public int compare(Personal p1, Personal p2) {
           String ssnP1 = p1.SSN.toUpperCase();
           String ssnP2 = p2.SSN.toUpperCase();

           // ascending order
           return ssnP1.compareTo(ssnP2);

       }
   };

   @Override
   public int compareTo(Personal o) {

       if (Integer.parseInt(this.SSN) < Integer.parseInt(o.SSN)) {

           return -1;
       } else if (Integer.parseInt(this.SSN) > Integer.parseInt(SSN)) {

           return 1;
       } else {
           return 0;
       }

   }
}


Student.java

import java.io.*;

public class Student extends Personal {
public int size() {
return super.size() + majorLen*2;
}
protected String major;
protected final int majorLen = 10;
Student() {
super();
}
Student(String ssn, String n, String c, int y, long s, String m) {
super(ssn,n,c,y,s);
major = m;
}
public void writeToFile(RandomAccessFile out) throws IOException {
super.writeToFile(out);
writeString(major,out);
}
public void readFromFile(RandomAccessFile in) throws IOException {
super.readFromFile(in);
major = readString(majorLen,in);
}
public void readFromConsole() throws IOException {
super.readFromConsole();
System.out.print("Enter major: ");
major = readLine();
for (int i = major.length(); i < nameLen; i++)
major += ' ';
}
public void writeLegibly() {
super.writeLegibly();
System.out.print(", major = " + major.trim());
}
public void copy(DbObject[] d) {
d[0] = new Student(SSN,name,city,year,salary,major);
}
public int compareTo() {
  
}
}

DbObject.java

import java.io.*;

public interface DbObject {
   public void writeToFile(RandomAccessFile out) throws IOException;
public void readFromFile(RandomAccessFile in) throws IOException;
public void readFromConsole() throws IOException;
public void writeLegibly() throws IOException;
public void readKey() throws IOException;
public void copy(DbObject[] db);
public int size();
}

IOmethods,java

import java.io.*;

public class IOmethods {
public void writeString(String s, RandomAccessFile out) throws IOException {
for (int i = 0; i < s.length(); i++)
out.writeChar(s.charAt(i));
}
public String readString(int len, RandomAccessFile in) throws IOException {
String s = "";
for (int i = 0; i < len; i++)
s += in.readChar();
return s;
}
public String readLine() throws IOException {
int ch;
String s = "";
while (true) {
ch = System.in.read();
if (ch == -1 || (char)ch == '\n') // end of file or end of line;
break;
else if ((char)ch != '\r') // ignore carriage return;
s = s + (char)ch;
}
return s;
}
}
Database.java

import java.io.*;
public class Database {
   private RandomAccessFile database;
private String fName = new String();;
private IOmethods io = new IOmethods();
Database() throws IOException {
System.out.print("File name: ");
fName = io.readLine();
}
private void add(DbObject d) throws IOException {
database = new RandomAccessFile(fName,"rw");
database.seek(database.length());
d.writeToFile(database);
database.close();
}
private void modify(DbObject d) throws IOException {
DbObject[] tmp = new DbObject[1];
d.copy(tmp);
database = new RandomAccessFile(fName,"rw");
while (database.getFilePointer() < database.length()) {
tmp[0].readFromFile(database);
if (tmp[0].equals(d)) {
tmp[0].readFromConsole();
database.seek(database.getFilePointer()-d.size());
tmp[0].writeToFile(database);
database.close();
return;
}
}
database.close();
System.out.println("The record to be modified is not in the database");
}
private boolean find(DbObject d) throws IOException {
DbObject[] tmp = new DbObject[1];
d.copy(tmp);
database = new RandomAccessFile(fName,"r");
while (database.getFilePointer() < database.length()) {
tmp[0].readFromFile(database);
if (tmp[0].equals(d)) {
database.close();
return true;
}
}
database.close();
return false;
}
private void printDb(DbObject d) throws IOException {
database = new RandomAccessFile(fName,"r");
while (database.getFilePointer() < database.length()) {
d.readFromFile(database);
d.writeLegibly();
System.out.println();
}
database.close();
}
public void run(DbObject rec) throws IOException {
String option;
System.out.println("1. Add 2. Find 3. Modify a record; 4. Exit");
System.out.print("Enter an option: ");
option = io.readLine();
while (true) {
if (option.charAt(0) == '1') {
rec.readFromConsole();
add(rec);
}
else if (option.charAt(0) == '2') {
rec.readKey();
System.out.print("The record is ");
if (find(rec) == false)
System.out.print("not ");
System.out.println("in the database");
}
else if (option.charAt(0) == '3') {
rec.readKey();
modify(rec);
}
else if (option.charAt(0) != '4')
System.out.println("Wrong option");
else return;
printDb(rec);
System.out.print("Enter an option: ");
option = io.readLine();
}
}
}

UseDatabase.java

import java.io.IOException;

public class UseDatabase {
static public void main(String a[]) throws IOException {
// (new Database()).run(new Personal());
(new Database()).run(new Student());
}
}

In: Computer Science

I'm writing about environmental health. And these are my thesis, (1)physical factors that affect health, (2)...

I'm writing about environmental health. And these are my thesis, (1)physical factors that affect health, (2) biological factors that affect health, (3) chemical factors that affect halth. You should please help me to attach citations. It should be about two pages

In: Nursing

Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART,...

Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART, and k-NN find at least one different predictive modeling approach and one classification approach. Using scholarly citations, describe how each method is used in practice.

In: Statistics and Probability