Questions
////Fixme(1) add a statement to import ArrayList class public class ListManipulation { public static void main(String[]...

////Fixme(1) add a statement to import ArrayList class

public class ListManipulation {
public static void main(String[] args) {

//Fixme(2) create an ArrayList of integers and name the ArrayList list.

//Fixme(3) add the following numbers to the list: 10, 15, 7, -5, 73, -11, 100, 20, 5, -1

  
displayList(list);
System.out.println();
displayListBackwards(list);
  
  
}
  
public static void displayList(ArrayList<Integer> list) {

for(Integer i: list)
System.out.print(i + " ");
  
}
//Fixme(4) define a method displayListBackwards, which takes an ArrayList as a parameter and returns nothing.
//The method displays each element in the list in the reverse order, and adds a space after each element.



//Fixme(5) define a method maxElement, which takes an ArrayList as a parameter and returns the maximum element in the list.
  
  
//Fixme(6) define a method searchElement, which takes two parameters.
//The first parameter is an ArrayList and the second is an int type value.
//The method searches for value in the list.
//If the value is found in the list, the method returns its index, otherwise, it returns -1.


  
//Fixme(7) define a method eventCount, which takes an ArrayList as a parameter and returns the number of even element in the list.

}

In: Computer Science

Your friend wants to secure a desktop PC with a biometric access control. Provide several recommendations...

  1. Your friend wants to secure a desktop PC with a biometric access control. Provide several recommendations and explain the advantages and disadvantages of each.
  2. Identify your preferred recommendation and your reasons for making that recommendation.

In: Computer Science

Rank the four customer service factors (time, dependability, communication, and convenience) from most important to least...

Rank the four customer service factors (time, dependability, communication, and convenience) from most important to least important from customers’ point of view in any industry of your own selection.

In: Operations Management

3. Bond valuation The process of bond valuation is based on the fundamental concept that the...

3. Bond valuation

The process of bond valuation is based on the fundamental concept that the current price of a security can be determined by calculating the present value of the cash flows that the security will generate in the future.

There is a consistent and predictable relationship between a bond’s coupon rate, its par value, a bondholder’s required return, and the bond’s resulting intrinsic value. Trading at a discount, trading at a premium, and trading at par refer to particular relationships between a bond’s intrinsic value and its par value. This also results from the relationship between a bond’s coupon rate and a bondholder’s required rate of return.

Remember, a bond’s coupon rate partially determines the interest-based return that a bond   pay, and a bondholder’s required return reflects the return that a bondholder   to receive from a given investment.

The mathematics of bond valuation imply a predictable relationship between the bond’s coupon rate, the bondholder’s required return, the bond’s par value, and its intrinsic value. These relationships can be summarized as follows:

When the bond’s coupon rate is equal to the bondholder’s required return, the bond’s intrinsic value will equal its par value, and the bond will trade at par.
When the bond’s coupon rate is greater than the bondholder’s required return, the bond’s intrinsic value will     its par value, and the bond will trade at a premium.
When the bond’s coupon rate is less than the bondholder’s required return, the bond’s intrinsic value will be less than its par value, and the bond will trade at   .

For example, assume Amelia wants to earn a return of 9.00% and is offered the opportunity to purchase a $1,000 par value bond that pays a 9.00% coupon rate (distributed semiannually) with three years remaining to maturity. The following formula can be used to compute the bond’s intrinsic value:

Intrinsic ValueIntrinsic Value =  = A(1+C)1+A(1+C)2+A(1+C)3+A(1+C)4+A(1+C)5+A(1+C)6+B(1+C)6A1+C1+A1+C2+A1+C3+A1+C4+A1+C5+A1+C6+B1+C6

Complete the following table by identifying the appropriate corresponding variables used in the equation.

Unknown

Variable Name

Variable Value

A      
B    $1,000
C Semiannual required return   

Based on this equation and the data, it is   to expect that Amelia’s potential bond investment is currently exhibiting an intrinsic value equal to $1,000.

Now, consider the situation in which Amelia wants to earn a return of 12%, but the bond being considered for purchase offers a coupon rate of 9.00%. Again, assume that the bond pays semiannual interest payments and has three years to maturity. If you round the bond’s intrinsic value to the nearest whole dollar, then its intrinsic value of    (rounded to the nearest whole dollar) is   its par value, so that the bond is   .

Given your computation and conclusions, which of the following statements is true?

When the coupon rate is less than Amelia’s required return, the bond should trade at a discount.

A bond should trade at par when the coupon rate is less than Amelia’s required return.

When the coupon rate is less than Amelia’s required return, the intrinsic value will be greater than its par value.

When the coupon rate is less than Amelia’s required return, the bond should trade at a premium.

In: Finance

Does Trader Joe's have a dual advantage? Briefly describe why or why not?

Does Trader Joe's have a dual advantage? Briefly describe why or why not?

In: Operations Management

Question 1 Men are viewed as more attractive by women when they are _________. A. introverted...

Question 1

Men are viewed as more attractive by women when they are _________.

A.

introverted

B.

agoraphobic

C.

submissive

D.

fond of children

Question 2

According to social psychologists, to __________ is to change one’s behavior to adhere to social norms.

A.

obey

B.

reciprocate

C.

conform

D.

discriminate

Question 3

Research has shown that mere __________ to any stimulus increases the likelihood that people will like it and react favorably to it.

A.

repeated exposure

B.

incidental similarity

C.

relating

D.

initial introduction

Question 4

The first time that Timko drove a certain pickup truck, he immediately liked the way it performed. Later, he learned that its performance was good, but not as good as he had first thought. His initial attitude, by which he judged later ideas about the truck, is what social psychologists call a __________.

A.

frontal cognition

B.

conservative attitude

C.

cognitive attitude

D.

cognitive anchor

Question 5

Your friend was recently killed by a drunk driver. Students from an organization against drunk drivers ask you to sign their petition and donate to their cause. You are more than happy to comply because of your friend’s recent demise. This demonstrates how the __________ of your attitude influences your behavior.

A.

accessibility

B.

specificity

C.

universality

D.

conformity

Question 6

When members of a group share similar attitudes, these attitudes can become intensified and decisions are more likely to involve __________.

A.

no-risk

B.

risk

C.

splits among members

D.

none of these

Question 7

You observe two strangers in a heated argument that results in a physical fight. You will most likely assume _________.

A.

one probably took something and the other is merely trying to get it back

B.

one has treated the other unfairly

C.

they are very aggressive individuals

D.

any of the above are just as likely

  

Question 8

In __________ terms, prejudice is connected with fear, dislike or hatred.

A.

cognitive

B.

emotional

C.

behavioral

D.

all of these

Question 9

The area of social psychology concerned with first impressions, attribution theory, body language and ways in which we perceive other people is _________.

A.

social attitude formation

B.

social perception

C.

social persuasion

D.

social obedience

Question 10

Persuasive communicators usually have a good deal of __________.

A.

expertise

B.

attractiveness

C.

trustworthiness

D.

all of these

Question 11

When you see a classmate in class or at a study session, they are always very friendly towards you. However, when you run into them at an upscale party, they act as if they do not know you. Since you know they are a friendly person, you are most likely to attribute your classmate’s behavior to _________.

A.

fundamental attribution error

B.

a stereotype

C.

situational attributions

D.

a dispositional attribution

Question 12

Women are generally more likely than men to help people in need. The major reason for this is that _________.

A.

women have a genetic predisposition to serve others

B.

women are anatomically disposed to help others

C.

women are more likely than men to be empathic

D.

none of these

  

Question 13

If a clothing company wants to sell their product to adolescents, it would be best to have a _________ endorse their product.

A.

teenager

B.

famous teenager

C.

parent

D.

child

Question 14

Conforming to the outright commands of another is called __________.

A.

deindividuation

B.

polarization

C.

obedience

D.

none of these

Question 15

You are about to give your first speech. You are nervous and hope you don’t do something foolish in front of the whole class. The presence of the class is not likely to facilitate your performance due to __________.

A.

social pressure

B.

evaluation apprehension

C.

deindividuation

D.

diffusion of responsibility

In: Psychology

What are the two basic communication paradigms used in the Internet? Give six characteristics of Internet...

  1. What are the two basic communication paradigms used in the Internet?
  2. Give six characteristics of Internet stream communication.
  3. Give six characteristics of Internet message communication.
  4. If a sender uses the stream paradigm and always sends 1024 bytes at a time, what size blocks can the Internet deliver to a receiver
  5. If a sender wants to have copies of each data block being sent to three recipients, which paradigm should the sender choose?
  6. What are the four surprising aspects of the Internet’s message delivery semantics?
  7. Give the general algorithm that a connection-oriented system uses.
  8. When two applications communicate over the Internet, which one is the server?
  9. Compare and contrast a client and server application by summarizing characteristics of each.
  10. What is the difference between a server and a server-class computer?
  11. Can data flow from a client to a server? Explain.
  12. What performance problem motivates peer-to-peer communication?
  13. Name two operating systems that offer the socket API.
  14. Once a socket is created, how does an application reference the socket?
  15. What are the main functions in the socket API?
  16. What is packet-switching, and why is packet switching relevant to the Internet?
  17. What is a communication protocol? Conceptually, what two aspects of communication does a protocol specify.
  18. What is a protocol suite, and what is the advantage of a suite?
  19. Describe the TCP/IP layering model, and explain how it was derived.
  20. List the layers in the TCP/IP model, and give a brief explanation of each.
  21. List major standardization organizations that create standards for data communications and computer networking.

In: Computer Science

Does the Maxwell’s demon violate the 2nd law of thermodynamics? If not, why?

Does the Maxwell’s demon violate the 2nd law of thermodynamics? If not, why?

In: Physics

give an arbitrary list of integers, how many are 3? (in scheme)

give an arbitrary list of integers, how many are 3? (in scheme)

In: Computer Science

Write a program in Python jupyter notebook for following: Part1: Course grade calculation: Course grades for...

Write a program in Python jupyter notebook for following:
Part1:
Course grade calculation: Course grades for CIS 1100 are calculated based on two assignments, a midterm exam, and a final exam. Here are the weights of these.

Assignments 25%

Midterm exam 35%

Final exam 40%

Ask the user for the scores they received for the two assignments, midterm exam, and the final exam. Then calculate and display their total weighted score they received for the course.

Based on the weighted score, calculate and display the letter grade. Here are the grading guidelines:

Score >=90: A

Score >=80: B

Score >=70: C

Score <70: F

Part 2:

The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown here:

  • When you mix red and blue, you get purple.

  • When you mix red and yellow, you get orange.

  • When you mix blue and yellow, you get green.

Design a program that prompts the user to enter the names of two primary colors to mix. If the user enters anything other than “red,” “blue,” or “yellow,” the program should display an error message. Otherwise, the program should display the name of the secondary color that results.

In: Computer Science

Write a function void reverse(char * s) that reverses the string passed as an argument. Your...

Write a function 
               void reverse(char * s)
that reverses the string passed as an argument. Your code should use pointer arithmetic (it may increment and decrement pointers, but it may not use array indexing). 
 
Here is a piece of code that shows the behavior of reverse:
char buf[100];
strcpy(buf, “hello”);
reverse(buf);
printf(“%s\n”, buf);  // output should be olleh
 
 

In: Computer Science

Why is it important to remember that even the bad management that you experience can teach...

Why is it important to remember that even the bad management that you experience can teach you things, even if it's what not to do.

Please don't hand write.

Thank you.

In: Operations Management

Calculate A+B, A-B, AxB, and A/B for each of the following pairs of binary numbers. (Assume...

Calculate A+B, A-B, AxB, and A/B for each of the following pairs of binary numbers. (Assume the first number in each pair = A and the second number =B). Append all numbers to 8 bits. Subtraction is not2’s complement.

a.1010101, 011010

b.101101, 10101

c.11001, 1100

d.1010101, 1110

In: Computer Science

Describe the factors that influence pricing decisions in practice.

Describe the factors that influence pricing decisions in practice.

In: Accounting

Create a Java method that does the following: 1) Ask the user for a dividend and...

Create a Java method that does the following:

1) Ask the user for a dividend and a divisor both of "int" type.

2) Computes the remainder of the division. The quotient (answer) must be of the "int" type.

Do NOT use the method " % " provided in Java in your code. Remember that it gives wrong answers when some of the inputs are negative.

Here is the code that I have so far I can't seem to get it correct. Here is the feedback from the instructor: It appears you are computing the quotient here. This program is supposed to compute the remainder. This can be fixed easily with one line of code.

Which line of code needs to be corrected to determine the remainder?

import java.util.Scanner;

public class Main {

   //method to get the floor value

   static int floorDivide(int a, int b)

   {

   if(a % b != 0 && ((a < 0 && b > 0) || (a > 0 && b < 0)))

   {

   return (a / b - 1);

   }

   else

   {

   return (a / b);

   }

   }

public static void main(String args[]) {

int a,b, result;

Scanner sc=new Scanner(System.in);

System.out.println("Please Enter a Dividend: ");

a=sc.nextInt();

System.out.println("Please Enter a Divisor: ");

b=sc.nextInt();

result= floorDivide(a,b);

System.out.println("The Result is: "+result);

}

}

In: Computer Science