Questions
In Java, what is the advantage of using ArrayList over arrays? Write a program to perform...

In Java, what is the advantage of using ArrayList over arrays? Write a program to perform following operations
a. Create a class named Rectangle with two
properties “height” and “width”. Create a parameterized
constructor to initialize “height” and “width” values.
b. Write method area() to calculate and return area of Rectangle.
c. Create an ArrayList to store Rectangle objects.
d. Create three Rectangle objects of width and height set to
(2, 3), (3, 3) and (4, 5) and add them to ArrayList.
e. Calculate and print area of all the Rectangle objects in
ArrayList. (Hint: Area = height x width)

In: Computer Science

Activity 11: JS-Loops and Functions Task 1: Use JavaScript for loop to print the first 5...


Activity 11: JS-Loops and Functions
Task 1:
Use JavaScript for loop to print the first 5 non-zero integers on each line.
Task 2:
Use JavaScript while loop to print the first 5 non-zero integers on each line.
Task 3:
Use JavaScript for loop to print the first 5 even integers on each line.
Task 4:
Write a JavaScript function to multiple two numbers and return the result.
Task 5:
Write a JavaScript factorial that asks users to enter a positive and return the result.
i) Without using recursion ii) Using recursion Task 6:
Use a nested for or while loop to produce a table below.
1,1 1,2 1,3 1,4 1,5
2,1 2,2 2,3 2,4 2,5
3,1 3,2 3,3 3,4 3,5
4,1 4,2 4,3 4,4 4,5
5,1 5,2 5,3 5,4 5,5


In: Computer Science

Suppose there is a nation which produces and consumes just calculators and notebooks in the following...

  1. Suppose there is a nation which produces and consumes just calculators and notebooks in the following amounts:

Calculators

Notebooks

Quantity

Produced

Price of each Calculator

Quantity

Produced

Price of each Notebook

2018

5

$20

15

$5

2019

6

$30

25

$6

  1. Using the CPI, compute the percentage change in the overall price level. Use 2018 as the base year and fix the basket at 2 calculators and 6 notebooks.
  2. Using the GDP deflator, compute the percentage change in the overall price level. Also use 2018 as the base year.
  3. Is the inflation rate in 2019 the same using the two methods? Explain why or why not.

In: Economics

Topic is Spirulina. Spirulina is a micro-algae and as such has been growing naturally in our...

Topic is Spirulina.

Spirulina is a micro-algae and as such has been growing naturally in our environment for millions of years, it is a tough plant able to withstand harsh growing conditions, in fact the micro-algae cell never really dies it goes dormant when weather conditions are not favourable, and as soon as these change and the environment is once again suitable for growth, spirulina begins growing and reproducing again. Naturally growing spirulina can be found in high alkaline lakes and in general it is said that where flamingos are, spirulina is sure to be found.

Question:

Describes your audience and how you will reach them. Share who you plan to sell your product/service to, being as specific as possible. While virtually anyone could purchase your product/service, is that realistic given how you will sell/market your idea? Who is your ideal customer? Give a good description of this individual. You should include a minimum of one source that shows why this audience is ideal.

Describe the best ways to communicate with your target market. This part should clarify the best medium/channel combinations to reach your audience as described in the previous paragraph and how they will be used. You need a minimum of one source to back up why you are using the channel(s) chosen.

In: Operations Management

A 0.26 kg mass is attached to a light spring with a force constant of 36.9...

A 0.26 kg mass is attached to a light spring with a force constant of 36.9 N/m and set into oscillation on a horizontal frictionless surface. If the spring is stretched 5.0 cm and released from rest, determine the following.

(a) maximum speed of the oscillating mass
m/s

(b) speed of the oscillating mass when the spring is compressed 1.5 cm
m/s

(c) speed of the oscillating mass as it passes the point 1.5 cm from the equilibrium position
m/s

(d) value of x at which the speed of the oscillating mass is equal to one-half the maximum value
m

In: Physics

In the context of an event management, please explain what the 5W+H model is and indicate...

In the context of an event management, please explain what the 5W+H model is and indicate 5 reasons why it should be used.

In: Operations Management

Explain Presence, the aspect of physical availability. If you would be a manufacturer of fast moving...

Explain Presence, the aspect of physical availability. If you would be a manufacturer of fast moving consumer goods, which distribution channels would you prioritise in your marketing mix strategy? MARKETING

In: Economics

give detail information about the company. After that, give an answer to the following question: •...

give detail information about the company. After that, give an answer to the following question:

Identify the competitive strategy of the selected company, justify your answer?
Based on your supply chain knowledge, suggest a distribution network for the selected company, justify your answer?
In what aspect the selected company has become leading in the supply chain. Discuss in detail these aspects.
Explain how the selected company benefited the information technology to achieve excellence in the supply chain.
What was the supply chain management process adopted by the selected company? Discuss, how far was the effect of that approach to reach a competitive edge.

In: Operations Management

Problem 24.96 Infinite positively charged sheet 1 has uniform surface charge density σ1 = +2.0 nC/m2...

Problem 24.96 Infinite positively charged sheet 1 has uniform surface charge density σ1 = +2.0 nC/m2 and is located in the yz plane of a Cartesian coordinate system. Infinite negatively charged sheet 2 is parallel to sheet 1 and has uniform surface charge density σ2 = -5.0 nC/m2 . Sheet 2 is 4 m to the right of sheet 1 along the +x axis.

Part A

Determine the magnitude and direction of the electric field in region I, to the left of sheet 1.

Express your answer with the appropriate units. Enter positive value if the field is in positive x direction and negative value if the field is in negative x direction.

EI

EI

=

339StartFraction Upper N Over Upper C EndFractionNC

SubmitPrevious AnswersRequest Answer

Incorrect; Try Again; 4 attempts remaining

Part B

Determine the magnitude and direction of the electric field in region II, between the two sheets.

Express your answer with the appropriate units. Enter positive value if the field is in positive x direction and negative value if the field is in negative x direction.

EII

EII

=

nothingnothing

SubmitRequest Answer

Part C

Determine the magnitude and direction of the electric field in region III, to the right of sheet 2.

Express your answer with the appropriate units. Enter positive value if the field is in positive x direction and negative value if the field is in negative x direction.

EIII

EIII

=

nothingnothing

In: Physics

Definition of pesticides and its related terms (Insecticide, herbicides, etc…) About four Major Classes of Pesticides...

  1. Definition of pesticides and its related terms (Insecticide, herbicides, etc…)
  2. About four Major Classes of Pesticides and Insecticides. In what ways they are similar, and what ways are the four classes of pesticides are different? Which group is the safest to humans and the environment and why?
  3. Describe major provision of FIFRA?
  4. About environmental sustainable pest control methods
  5. What is a monoculture? Why do they cause problems with pest control? Where can one see it?

In: Other

.The integrated ownership of pipelines was initially used by some oil companies to gain control of...

.The integrated ownership of pipelines was initially used by some oil companies to gain control of oil-producing area. How did they use their transportation network to gain market control? What other reasons can be offered for integrated ownership? Are these reasons valid in today’s business environment?

In: Operations Management

(a)One end of a string is attached to a wall and the other end is attached...

(a)One end of a string is attached to a wall and the other end is attached to a mass sitting on a ramp tilted at an angle of 35 degrees. It takes a pulse 10 ms to travel the length of the 1 m string. The string has a mass 1.5 g. What is the mass that is attached to the string?

 

(b) The string is replaced by two strings that are knotted together, L1 has a length 60 cm and L2 has a length of 40 cm. They have a linear mass density of of mu1 = 1.4 x 10-4 kg/m and mu2 = 2.8 x 10-4 kg/m. Like before, they are attached to the mass you found in part a. A pulse is sent from each end of the string. Which pulse meets the knot first?

In: Physics

A voltaic cell utilizes the following reaction and operates at 298 K. 3 Ce4+(aq) + Cr(s)...

A voltaic cell utilizes the following reaction and operates at 298 K. 3 Ce4+(aq) + Cr(s) 3 Ce3+(aq) + Cr3+(aq)

(a) What is the emf of this cell under standard conditions? V

(b) What is the emf of this cell when [Ce4+] = 2.0 M, [Ce3+] = 0.014 M, and [Cr3+] = 0.011 M? V

(c) What is the emf of the cell when [Ce4+] = 0.56 M, [Ce3+] = 0.82 M, and [Cr3+] = 1.3 M? V

In: Chemistry

The International Air Transport Association surveys business travelers to develop quality ratings for transatlantic gateway airports....

The International Air Transport Association surveys business travelers to develop quality ratings for transatlantic gateway airports. The maximum possible rating is 10. Suppose a simple random sample of 50 business travelers is selected and each traveler is asked to provide a rating for the Miami International Airport. The ratings obtained from the sample of 50 business travelers follow.

4 8 9 10 1 1 1 8 8 8 8 7 6
7 8 8 10 9 1 8 7 8 7 9 8 10
6 4 8 1 1 8 8 7 10 9 7 1 7
5 8 4 1 9 8 9 1 1 7 7

Develop a 95% confidence interval estimate of the population mean rating for Miami (to 2 decimals).

( , )

In: Math

CTC is an on-line retailer of prescription drugs and health supplements. Vitamin-C represents a significant percentage...

CTC is an on-line retailer of prescription drugs and health supplements. Vitamin-C represents a significant percentage of its sales. Demand for Vitamin-C is 12000 bottles per year. CTC incurs a fixed order placement, transportation, and receiving cost of $150 each time an order for Vitamin-C is placed with the manufacturer. CTC incurs a holding cost of 25 percent. The price charged by the manufacturer is $4/bottle. Each time CTC places an order, the manufacturer has to process, pack, and ship the order. The manufacturer has a line packing bottles at a steady rate and does not keep any inventory. The fixed cost of filling each order is $350 for manufacturer.

1. Under the non-collaborative environment, the above supply chain uses CTC’s EOQ policy. Please evaluate CTC’s annual ordering and holding costs and Manufacturer’s annual ordering cost and holding cost under the CTC’s EOQ policy. What is the total annual ordering and holding cost for this supply chain under this non-collaborative policy?

In: Operations Management