Questions
write a python code that Returns a string composed of characters drawn, in strict alternation, from...

write a python code that Returns a string composed of characters drawn, in strict alternation, from s1 and s2.
If one string is longer than the other, the excess characters are added to the end
of the string as shown in the examples below

#Example 1 - blend("ape", "BANANA") returns "aBpAeNANA"
#Example 2 - blend("BOOT", "gold") returns "BgOoOlTd"

In: Computer Science

Kevin Hall just received a cash gift from his grandfather. He plans to invest in a...

Kevin Hall just received a cash gift from his grandfather. He plans to invest in a five-year bond issued by Wildhorse Corp. that pays an annual coupon rate of 4.5 percent. If the current market rate is 8.50 percent, what is the maximum amount Kevin should be willing to pay for this bond?

In: Finance

House Class The first class you should develop is a House class, as defined in the...

House Class The first class you should develop is a House class, as defined in the assignment specification. As we have not yet covered inheritance or association, we will not be integrating Banner this week — you will still be writing it for later usage though. Hence, the complete class should be implemented as defined in the UML below (please see the note on interpreting UML). You should maintain the order of the class fields in field declarations, and parameter orders (alternate constructor and setters). House - name - years - bannermen - castle + clone(): House + toString(): String The validation requirements for all of these fields can be found in the assignment specification. Begin by specifying the class name, constants (there should be a couple), and class fields. Next develop the default constructor, remember the default constructor should take no parameters and construct a valid object, what constitutes appropriate values for a default constructor is left to your discretion. Now complete your alternate constructor, remember to deal with validation as necessary and to indicate when/if the submodule can FAIL. The parameter order should be the same as the order in which your class fields are declared. The final constructor to complete is the copy constructor. A copy constructor should take in an object of the same class, use the accessors to retrieve the object state and initialise the class fields. The next method to focus on is clone. Clone should take no imports and return a copy of the current object. You may do this by using the copy constructor and passing it this. Clone is very similar to the copy constructor but without the requirement to specify the class name, this will be extremely useful once we cover inheritance. Complete the getters, equals, toString (see the note), and mutators (in that order) as per the examples and lecture slides. Take note that at this point you cannot yet implement battleStrengthand population, this method will be added in and completed in a later practical. Once your design is checked by a tutor you can convert your design to java.

Testing House Class, you need to develop a test harness for your House class. Your test harness should test (either directly or indirectly) every submodule you wrote for House.

Army Class

Next you need to develop Army, again the details for validation can be found in the assignment specification. you should continue to follow the order of, constructors, accessors, equals, toString, mutators in that order. Army - name - years - footmen - archers - history + clone(): Army + toString(): String Follow the same process as above to develop the design and then convert it to Java. Do not forget to create a test harness for this class as well.

Banner Class

The last class you need to develop this week is Banner, approach this class in the same manner as the previous two classes. Once again the validation details can be found in the assignment specification, the class should be implemented according to the following UML: Banner - sigil - bannerColour - sigilColour + clone(): Banner + toString(): String Once you have completed your pseudcode design and implemented in Java you need to create a test harness for this class as well.

In: Computer Science

Cullumber Corp is issuing a 10-year bond with a coupon rate of 11 percent. The interest...

Cullumber Corp is issuing a 10-year bond with a coupon rate of 11 percent. The interest rate for similar bonds is currently 5 percent. Assuming annual payments, what is the value of the bond?

In: Finance

You own three​ stocks: 1 comma 000 shares of Apple​ Computer, 10 comma 000 shares of...

You own three​ stocks:

1 comma 000

shares of Apple​ Computer,

10 comma 000

shares of Cisco​ Systems, and

5 comma 000

shares of Goldman Sachs. The current share prices and expected returns of​ Apple, Cisco, and Goldman Sachs​ are, respectively,

$ 136

​,

$ 22

​,

$ 122

and

12 %

​,

10 %

​,

10.5 %

.

a. What are the portfolio weights of the three stocks in your​ portfolio?

b. What is the expected return of your​ portfolio?

c. Suppose the price of Apple stock goes up by

$ 5

​,

Cisco rises by

$ 3

​,

and Goldman Sachs falls by

$ 9

.

What are the new portfolio​ weights?

d. Assuming the​ stocks' expected returns remain the​ same, what is the expected return of the portfolio at the new​ prices?

In: Finance

Often time when businessmen or women find themselves in positions of power, they use that power...

Often time when businessmen or women find themselves in positions of power, they use that power for personal gain instead of for the betterment of the company and its employees. Explain in your own words why you think this appears to happen quite often in today’s global marketplace? Do you think the problem is more prevalent than it was a decade ago? Two decades? Support your answer with sound research and real-life examples.

In: Psychology

c# language Create a class “Person” which included first name, last name, age, gender, salary, and...

c# language
Create a class “Person” which included first name, last name, age, gender, salary, and havekids (Boolean) variables. You have to create constructors and prosperities for the class.
Create a “MatchingDemo” class. In the main function, the program reads the number of people in the database from the “PersonInfo.txt” file and creates a dynamic array of the object. It also reads the people's information from “PersonInfo.txt” file and save them into the array.
Give the user the ability to search gender, age, salary or havekids and then display the result in descending order. If there is no matching result, the program displays “No Matching Found”.
Create a search function with the parameters for search that one person the user wanted.
Create a sorting function to display the result in descending order.

8

Mario

Lopez

25

M

200000

Y

Emanuel

Goldstein

45

M

100000

N

Emily

Autumn

26

F

200000

Y

Betty

White

57

F

130000

N

Nancy

White

21

F

80000

Y

Irene

Godinez

25

F

5200

N

Brad

Pitt

60

M

0

Y

Cee

Garza

26

F

40000

N

visual studio

If you cant help stop responding with comments, I provided as much information as I could.

In: Computer Science

What do you know about the integrated development environment (IDE)? Please explain in detail. Please answer...

What do you know about the integrated development environment (IDE)? Please explain in detail.

Please answer the question in text.

In: Computer Science

Conduct research online to find a high-profile example of both charismatic leadership and transformational leadership. Explain...

Conduct research online to find a high-profile example of both charismatic leadership and transformational leadership. Explain how each of the two people brings to life their style of leadership.

In: Psychology

When you drop a rock into a well, you hear the splash 1.9 s s later....

When you drop a rock into a well, you hear the splash 1.9 s
s
later.
Part A Part complete
If the distance to the water in the well were doubled, would the time required to hear the splash be greater than, less than, or equal to 3.8 s
s
?

equal to 3.8 s
s
greater than 3.8 s
s
less than 3.8 s
s
Part B
How far down was the water originally?

In: Physics

Electronics, Inc., is a high-volume, wholesale merchandising company. Most of its inventory turns over four or...

Electronics, Inc., is a high-volume, wholesale merchandising company. Most of its inventory turns over four or five times a year. The company has had 50 units of a particular brand of computers on hand for over a year. These computers have not sold and probably will not sell unless they are discounted 60 to 70%. The accountant is carrying them on the books at cost and intends to recognize the loss when they are sold. This way, she can avoid a significant write-down in inventory on the current year’s financial statements. Question 1: Is the accountant correct in her treatment of the inventory? Why or why not? Question 2: Explain what is meant by conservatism and how it ties in with the lower-of-cost-or-market method of accounting for inventory. Question 3: What are some reasons why the inventories of electronic equipment might have to be written down.

In: Accounting

Briefly explain the three theories of media. 3 to 4 sentences for the answer

Briefly explain the three theories of media.

3 to 4 sentences for the answer

In: Psychology

Problem 1 ✓ Problem 2 Problem 3 ✓ Problem 4 … Problem 5 … Problem 6...

  • Problem 1 ✓
  • Problem 2
  • Problem 3 ✓
  • Problem 4 …
  • Problem 5 …
  • Problem 6 ✓
  • Problem 7
  • Problem 8
  • Problem 9

close sidebar

  • webwork
  • /
  • f2019stat213
  • /
  • stat_213_assignment_3
  • /
  • 5

STAT 213 Assignment 3: Problem 5

Previous Problem Problem List Next Problem

(1 point)

To examine the effectiveness of its four annual advertising promotions, a mail order company has sent a questionnaire to each of its customers, asking how many of the previous year's promotions prompted orders that would not have otherwise been made. The accompanying table lists the probabilities that were derived from the questionnaire, where X is the random variable representing the number of promotions that prompted orders. If we assume that overall customer behavior next year will be the same as last year, what is the expected number of promotions that each customer will take advantage of next year by ordering goods that otherwise would not be purchased?

X 0 1 2 3 4
P(X) 0.072 0.221 0.347 0.176 0.184

Expected value =

equation editor

Equation Editor

A previous analysis of historical records found that the mean value of orders for promotional goods is 35 dollars, with the company earning a gross profit of 22% on each order. Calculate the expected value of the profit contribution next year.

Expected value =

equation editor

Equation Editor

The fixed cost of conducting the four promotions is estimated to be 17000 dollars with a variable cost of 2 dollars per customer for mailing and handling costs. What is the minimum number of customers required by the company in order to cover the cost of promotions? (Round your answer to the next highest integer.)

Breakeven point =

equation editor

Equation Editor

In: Math

For the set of tasks given below, do the following: Task Task Time(seconds) Immediate Predecessor A...

For the set of tasks given below, do the following:

Task Task
Time(seconds)
Immediate
Predecessor
A 45 -
B 11 A
C 9 B
D 50 -
E 26 D
F 11 E
G 12 C
H 10 C
I 9 F, G, H
J 10 I
193


b. Determine the minimum and maximum cycle times in seconds for a desired output of 500 units in a seven-hour day. (Round your answers to 1 decimal place.)
  

The minimum cycle time seconds
The maximum cycle time seconds


c. Determine the minimum number of workstations for output of 500 units per day. (Round up your answer to the next whole number.)
  
Minimum number of workstations            

d. Balance the line using the greatest positional weight heuristic. Break ties with the most following tasks heuristic. Use a cycle time of 50 seconds.

Work stations Following Tasks
I (Click to select)  E  B  C  A  D
II (Click to select)  D  F  C  B  A
III (Click to select)  A  C  B, E, C  B  A, E, C
IV (Click to select)  G  F, A, G  G, H  G, F, H, I  C
V (Click to select)  J  A  B  D  C


e. Calculate the percentage idle time for the line using the 50 second cycle time. (Round your answer to 1 decimal place. Omit the "%" sign in your response.)
  
Percentage of idle time             %

In: Operations Management

Provide explanation about Iterations. Give examples and write a program.

Provide explanation about Iterations. Give examples and write a program.

In: Computer Science