Questions
To what extent can the transmedia storytelling approach be used for marketing non entertainment products? What...

To what extent can the transmedia storytelling approach be used for marketing non entertainment products? What contextual factors would determine the applicability and effectiveness of this approach?

In: Operations Management

If 1) the expected return for Litchfield Design stock is 10.66 percent; 2) the dividend is...

If 1) the expected return for Litchfield Design stock is 10.66 percent; 2) the dividend is expected to be 2.99 dollars in 2 year(s), 4.4 dollars in 4 years, and 8.08 dollars in 8 years; and 3) after the dividend is paid in 8 years, the dividend is expected to grow by 3.04 percent per year forever, then what is the current price of the stock?  If no expected dividend is mentioned for a given year, assume the expected dividend is $0 for that year.

In: Finance

using java. using eclipse. write a program that asks to enter 3 real numbers using GUI....

using java. using eclipse. write a program that asks to enter 3 real numbers using GUI. print the sum if all 3 numbers are positive, print the product of the 2 positive numbers if one is negative, use one nested if statement. all output should be to dialog and the console. ...... So i have most of this program done, i just cant figure out how to get the product of the 2 positve numbers to print to the console and dialog. Here is what I have so far.... i know the if and else if statements are correct, i just dont know how to get the if and else if to print to console and dialog correctly for the product.

import java.util.Scanner;
import javax.swing.JOptionPane;
public class Project3 {
public static float getFloat(){
  String s = JOptionPane.showInputDialog("Enter a real number");
  return Float.parseFloat(s);
}

public static void main(String[] args) {
  float x = getFloat();
  float y = getFloat();
  float z = getFloat();
  // if all three are positive print the sum
  if(x>0 && y>0 && z>0) System.out.printf("Sum:%8.2f\n", (x+y+z));
  //if two of the three are positive print the product
  else if((x>0 && y>0 && z<0)||(x>0 && y<0 && z>0)||(x<0 && y>0 && z>0));
  System.out.printf("Product:%8.2f",((x*y)||(x*z)||(y*z)));
  
  
  JOptionPane.showMessageDialog(null, "Sum:"+(x+y+z)+"\nProduct:"+((x*y)||(x*z)||(y*z)));
  
  
  Scanner scan=new Scanner(System.in);
  System.out.println("\nEnter 2 real numbers");
  // if both are negative print the quotient
  float a = scan.nextFloat();
  float b = scan.nextFloat();
  if(a<0 && b<0) System.out.printf("Quotient:%8.2f", (a/b));
  JOptionPane.showMessageDialog(null, "Quotient:"+(a/b));
  
  
  System.exit(0);
}

}

In: Computer Science

*I JUST WANT A GENERAL WALKTHROUGH OF HOW TO DO THIS. PSEUDOCODE IS FINE. THANK-YOU. THIS...

*I JUST WANT A GENERAL WALKTHROUGH OF HOW TO DO THIS. PSEUDOCODE IS FINE. THANK-YOU. THIS IS IN C THE PROGRAMMING LANGUAGE.*

The program will require the following structure:

struct _data {                                 

   char *name;

   long number;

};

The program will require command line arguments:

int main(int argv, char **argc) {

       

Where argv is the number of arguments and argc is an array

holding the arguments (each is a string). Your program must catch

any case where no command line arguement was provided and print

a warning message (see below).

You MUST include/use the following functions, defined as follows:

int SCAN(FILE *(*stream)) - this function will open the file/stream

and return an integer indicating how many lines there are. Note that

I need to pass stream, which is a pointer, by reference. So I am

passing this as a pointer to a pointer.

struct _data *LOAD(FILE *stream, int size) - this function will

rewind file, create the dynamic array (of size), and read in the

data, populating the _data struct dynamic array. Note that stream

is passed by value this time. The function then returns the populated

array of struct.

void SEARCH(struct _data *BlackBox, char *name, int size) - this function

will get the dynamic array of struct passed to it, the name we are looking

for, and the size of the array. This function will then search the dynamic

array for the name. See below for examples.

void FREE(struct _data *BlackBox, int size) - this function will free up

all of the dynamic memory we allocated. Take note of the number of times

malloc/calloc were called, as you need to free that same number.

Finally, the data file will be called hw5.data and will be formatted as:

ron 7774013

jon 7774014

tom 7774015

won 7774016

HINTS:

------

Functions that will make things much easier:

getline()

feof()

strtok()

atoi()

SAMPLE RUNS:

------------

Case 1 - No command line argument provided.

[yourname@chef junk]$ ./CS230-5

*******************************************

* You must include a name to search for. *

*******************************************

Case 2 - Provided name is NOT in the list.

[yourname@chef junk]$ ./CS230-5 joe

*******************************************

The name was NOT found.

*******************************************

Case 3 - Provided name is in the list.

*******************************************

The name was found at the 2 entry.

*******************************************

In: Computer Science

What are some advantages and disadvantages of collaborating on a development project?

What are some advantages and disadvantages of collaborating on a development project?

In: Operations Management

Recalculate the percent dissociation of 0.19M HN3 in the presence of 0.19M HCl.

Recalculate the percent dissociation of 0.19M HN3 in the presence of 0.19M HCl.

In: Chemistry

In the figure the four particles form a square of edge length a = 5.60 cm...

In the figure the four particles form a square of edge length a = 5.60 cm and have charges q1 = 9.22 nC, q2 = -21.8 nC, q3 = 21.8 nC, and q4 = -9.22 nC. What is the magnitude of the net electric field produced by the particles at the square's center?

In: Physics

One year ago, you bought a put option on 500,000 euros with an expiration date of...

One year ago, you bought a put option on 500,000 euros with an expiration date of one year. You paid a premium on the put option of $.03 per unit. The exercise price was $1.30. Assume that one year ago, the spot rate of the euro was $1.29, the one-year forward rate exhibited a discount of 3%, and the one-year futures price was the same as the one-year forward rate. From one year ago to today, the euro depreciated against the dollar by 2 percent. Today the put option will be exercised (if it is feasible for the buyer to do so).

a. Determine the total dollar amount of your profit or loss from your position in the put option.

b.Now assume that instead of taking a position in the put option one year ago, you sold a futures contract on 500,000 euros with a settlement date of one year. Determine the total dollar amount of your profit or loss.

In: Finance

Express the following bit patterns in hexadecimal. 01000101011001110100010101100111 10001001101010111000100110101011 11111110110111001111111011011100 00000010010100100000001001010010

Express the following bit patterns in hexadecimal.

  1. 01000101011001110100010101100111

  2. 10001001101010111000100110101011

  3. 11111110110111001111111011011100

  4. 00000010010100100000001001010010

In: Computer Science

Python Questions Suppose we run the Python program my_program.py from command line like this: Python my_program.py...

Python Questions

Suppose we run the Python program my_program.py from command line like this:

Python my_program.py 14 CSC121

Which of the following statement in my_program.py will display CSC121?

A.
import sys
print(sys.argv)
B.
 
 
 
import sys
print(sys.argv[0])
C.
 
 
import sys
print(sys.argv[1])
 
 
D.
import sys
print(sys.argv[2])
  1. from datetime import datetime
    dob = datetime(2015, 1, 1)
     

    Which of the following statements will change year to 2018?

    A.
    dob.year=2018
    B.
     
     
     
    dob.replace(year=2018)
    C.
     
     
    dob = dob.replace(year=2018)
     
     
    D.
    dob.set_year(2018)

10 points   

QUESTION 4

  1. from datetime import datetime
    dob = datetime(2011,12,10)
    today = datetime.now()
    age = today - dob

    What is the type of age?

    A.

    int

    B.

    float

    C.

    datetime

    D.

    timedelta

    Which of the following functions returns integers between 0 and 20 that are divisible by both 2 and 3?

    A.
    def divisible_2_3 ():
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                yield i
    B.
     
     
     
    def divisible_2_3 ():
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                return i
    C.
     
     
    def divisible_2_3 ():
        seq = []
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                yield seq
     
     
    D.
    def divisible_2_3 ():
        seq = []
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                return i

In: Computer Science

A 150.0 mL gas tank contains 51.2 g of oxygen gas and 32.6 g helium gas....

A 150.0 mL gas tank contains 51.2 g of oxygen gas and 32.6 g helium gas. What is the total pressure in the tank? What is the partial pressure of oxygen?

In: Chemistry

Answer the following questions concerning covered and uncovered interest rate differentials and parity conditions: a. Suppose...

  1. Answer the following questions concerning covered and uncovered interest rate differentials and parity conditions:

a. Suppose the spot dollar-euro exchange rate is $1.20/€ , and the 60-day forward rate is $1.24/€. Is the euro selling at a forward discount or premium? What about the dollar?

b. Now suppose the interest rates on one-year U.S. and Eurozone (EMU) bonds are rUS = 5% and rEMU = 3%. You expect that, one year from now, the dollar-euro exchange rate will be at $1.26/€. Today the rate is $1.20/€.  Which should you invest in, the U.S. or EMU bond? Explain Hint use uncovered interest rate parity to get your answer.

c. Suppose the interest rate is 4% in the US and 8% in the UK.  If the actual exchange rate is e = $2.00/£1 (home is the US), what must the expected exchange rate ee be?

In: Economics

Q:Write a Java application which allows the user to enter student information The user will enter...

Q:Write a Java application which allows the user to enter student information

The user will enter full name, address, city, province, postal code, phone number and email in text field controls. The student’s major (Computer Science or Business) will be selected from two radio buttons.
A combo box will display the list of courses for each program whenever the user selects the desired program.
A course will be added to a list box whenever the user selects a course from the corresponding combo box. Make sure that the user cannot add a course several times.
Additional information about the student will be provided from a group of check boxes (such as involvement in various activities, etc).
All the information about the student will be displayed in a text area component. Use simple SWING layout managers, such as FlowLayout, BorderLayout, and GridLayout to create the SWING GUI of this application. Provide the titles for the data that will be displayed in the text area.

Note:I know how to do most of the things from question but i do not know how to implement layouts.

In: Computer Science

What are external costs? When external costs are present, will market allocation result in too much...

What are external costs? When external costs are present, will market allocation result in too much or too little output of the good relative to the ideal efficiency level?  

​ What is a public good? Provide an example, and explain why it is a public good.

​ What is a public good? Provide an example, and explain why it is a public good.

Typed answers only

In: Economics

How did Einstein’s photoelectric effect prove that light has a wave-particle duality?

How did Einstein’s photoelectric effect prove that light has a wave-particle duality?

In: Physics