Questions
This is a homework question. It has to be done using JAVA language. And PAY ATTENTION...

This is a homework question. It has to be done using JAVA language. And PAY ATTENTION TO WHAT YOU CAN USE AND WHAT I SPECIFICALLY ADDED THAT CANT BE USED TO COMPLETE THIS.

Objective:

Write a program that takes in two words, and then it recursively determines if the letters of the first word are contained, in any order, in the second word. If the size of the first word is larger than the second then it should automatically return false. Also if both strings are empty then return true.

You May NOT: ******************************************************************************************

Use any iterative loops. In other words, no for-loops, no while-loops, no do-while-loops, no for-each loops.

Use the string method .contains(String)

You May: ******************************************************************************************

Use the string method .charAt(Index)

Hints:

Recursive methods generally attempt to solve a smaller problem then return the results of those in order to solve the larger one.

Think of how to do this with a loop, and use that to guide what parameters you’ll need for your recursive method.

Example Dialog:

Enter 2 words. I will determine if the letters of one is contained in the other

elf

self

They are contained!

Example Dialog 2:

Enter 2 words. I will determine if the letters of one is contained in the other

jerky

turkey

They are not contained

Example Dialog 3:

Enter 2 words. I will determine if the letters of one is contained in the other

asdf

fasted

They are contained!

In: Computer Science

What is the amount of Na2HPO4 you need to add to a solution of 25mg NaH2PO4...

What is the amount of Na2HPO4 you need to add to a solution of 25mg NaH2PO4 in 100ml water
to obtain a pH=7.95?

In: Chemistry

Q) Which of the following statements is not correct? The Eastern hemisphere is defined by longitude...

Q) Which of the following statements is not correct?

The Eastern hemisphere is defined by longitude

The Prime Meridian is 0 degrees of latitude

The international date line is in the middle of the Pacific Ocean

Lines of latitude are parallel

The Arctic circle is outside of the circle of illumination on December 22nd


Q) At the equator the daylength on June 1 is...

8 hours

14 hours

12 hours

24 hours

0 hours

Q) What portion of the atmosphere does the biosphere primarily interact with?

ozonosphere

lithosphere

troposphere

Heterosphere

Q) Which of the following is not a way in which we define the atmosphere in geography?

function

temperature

height

Composition

Q) Mountain-valley breezes are caused by

valley air ascending the mountain slopes at night

warmer air descending mountain slopes during the day

gravity drainage

warm air rising upslope during the day and cooler air descending the slopes at night

Q) Which of the following is true of objects and wind moving over a distance on Earth's surface?

They are affected only by the pressure gradient and the friction force

They are apparently deflected clockwise from a straight path in the Northern hemisphere.

They are always deflected from a straight path to the west in the southern hemisphere

They are always deflected clockwise by the friction force

Q) The largest portion of fresh water today is located in

ice caps and glaciers

clouds

the major rivers and lakes of the world

groundwater resources

Q) The property that makes water 'wet' and is the cause of capillary action is:

molecular hold

hydrogen bonding

covalent bonding

atomic friction

Q) The Pacific Northwest region of the US is a moist environment because of

the effect of maritime air masses

all of the above

the predominant direction the winds blow at that latitude (45 to 50 degrees north)

the presence of mountains

Q) Which of the following lists the correct, generalized sequence of Koppen climates from the equator to the poles?

H --> B --> C --> D --> A

A --> B --> C --> D --> E

H --> D --> C --> B --> A

E --> D --> C --> B --> A

Q) The gas that is thought to be responsible for more than half of the anthropogenic warming of the atmosphere is

water vapor

carbon dioxide

methane

CFC's

In: Other

Kollar Corp.’s transactions for the year ended December 31, Year 6, included the following: Purchased real...

Kollar Corp.’s transactions for the year ended December 31, Year 6, included the following:

  1. Purchased real estate for $550,000 cash borrowed from a bank
  2. Sold available-for-sale debt securities for $500,000
  3. Paid dividends of $600,000
  4. Issued 500 shares of common stock for $250,000
  1. Purchased machinery and equipment for $125,000 cash
  2. Paid $450,000 toward a bank loan
  3. Reduced accounts receivable by $100,000
  4. Increased accounts payable by $200,000

Kollar’s net cash used in financing activities for Year 6 was

A $450,000

B $500,000

C $250,000

D $50,000

In: Accounting

MATLAB: Write a function called problem2 that takes an at most two-dimensional matrix A as its...

MATLAB:

Write a function called problem2 that takes an at most two-dimensional matrix A as its sole input. The function uses a while-loop to return the largest element of A. You are not allowed to use the built-in max function and you are also not allowed to use for-loops.

In: Computer Science

5. Opportunity cost and production possibilities Eric is a skilled toy maker who is able to...

5. Opportunity cost and production possibilities

Eric is a skilled toy maker who is able to produce both cars and drums. He has 8 hours a day to produce toys. The following table shows the daily output resulting from various possible combinations of his time.

Choice

Hours Producing

Produced

(Cars)

(Drums)

(Cars)

(Drums)

A 8 0 4 0
B 6 2 3 10
C 4 4 2 16
D 2 6 1 19
E 0 8 0 20

On the following graph, use the blue points (circle symbol) to plot Eric's initial production possibilities frontier (PPF).

Initial PPFNew PPF012345678302520151050DRUMSCARS

Suppose Eric is currently using combination D, producing one car per day. His opportunity cost of producing a second car per day is   per day.

Now, suppose Eric is currently using combination C, producing two cars per day. His opportunity cost of producing a third car per day is   per day.

From the previous analysis, you can determine that as Eric increases his production of cars, his opportunity cost of producing one more car   .

Suppose Eric buys a new tool that enables him to produce twice as many cars per hour as before, but it doesn't affect his ability to produce drums. Use the green points (triangle symbol) to plot his new PPF on the previous graph.

Because he can now make more cars per hour, Eric's opportunity cost of producing drums is   it was previously.

In: Economics

Using the Internet or your school library research the challenges associated with eCommerce payments that cross...

Using the Internet or your school library research the challenges associated with eCommerce payments that cross international borders.

  • As you research, locate information that addresses the following:
    • Do most E-Commerce firms engage in international business transactions?
    • Look up the term repudiation, and research how firms that engage in international business protect themselves from it?
    • How are online purchases impacted by exchange rates and shipping charges?

In: Economics

Questions for Security Engineering: Why is security difficult? How does it compare to other objectives like...

Questions for Security Engineering:

  • Why is security difficult?
  • How does it compare to other objectives like cost, power, performance, reliability?

In: Computer Science

1a. A ternary mixture contains 20 mol % A , 40mol % B, and 40 mol...

1a. A ternary mixture contains 20 mol % A , 40mol % B, and 40 mol % C. At a pressure of 80 atm and a temperature of 75?C the fugacity coefficient of components A ,B and C in this mixture are 0.4, 0.6 and 0.8 respectively. What is the fugacity of the mixture?

Explain the basis of the equation you use in (a).

1b. For the system ethyl ethanoate (1) /n -heptane (2) at 450K , assuming the validity of the modified raoult’s law

  1. Make a BULB P calculation for T = 450 K, x1 = 0.06
  2. Make a DEW P calculation for T = 450 K, y1 = 0.06
  3. Determine if the system is an azeotrope

Given the following data;

Iny1 = 0.95X22 ;   Iny2 = 0.95X12     P1sat 80.0 kpa ; P2sat = 41.0 kpa.

2.   a. A binary mixture consists of acetonitrile (1) and nitromethane (2) which conform closely to raoult’s law. Vapor pressures for the pure species are given by the following antoine equations;

In(P1sat ,Kpa) = 2945.5t?C+224..0

In(P2sat ,Kpa) = 2972.6t?C+209.0

Determine the bubble point pressure and vapor composition for a mixture of composition X1 = 0.6 at a temperature of 65?C.

     b. State the criteria for equilibrium for vapor -liquid composition.

     c. Given the excess Gibb’s free energy of a solution as :

GEX1RT = B( 1-X1) find the activity coefficient expression arising out of the binary solution model .

  1. Show whether these expressions satisfy the Gibb’s-Duhem equation.

At 30?C and 1 atm, the volumetric data for liquid mixtures of benzene (b) and

In: Other

Describe the basic differences between the Articles of Confederation and the U.S Constitution

Describe the basic differences between the Articles of Confederation and the U.S Constitution

In: Psychology

Two sound waves (call them X and Y) travel through the air. Wave X has a...

Two sound waves (call them X and Y) travel through the air. Wave X has a wavelength of 0.1 m and a pressure amplitude of 0.04 Pa. Wave Y has a frequency of 3430 Hz and a pressure amplitude of 4 Pa.

Fill in the following:

The intensity of Y is greater than  that of X by ............... times.

Soundwave Y is ................. dB louder than soundwave X.

In: Physics

Use the sample information x¯ = 36, σ = 7, n = 17 to calculate the...

Use the sample information x¯ = 36, σ = 7, n = 17 to calculate the following confidence intervals for μ assuming the sample is from a normal population.

(a) 90 percent confidence. (Round your answers to 4 decimal places.) The 90% confidence interval is from to

(b) 95 percent confidence. (Round your answers to 4 decimal places.) The 95% confidence interval is from to

(c) 99 percent confidence. (Round your answers to 4 decimal places.) The 99% confidence interval is from to

(d) Describe how the intervals change as you increase the confidence level.

In: Math

would the effects of exercise on blood pressure and heart rate be greater in a well...

would the effects of exercise on blood pressure and heart rate be greater in a well conditioned individual or a poorly conditioned

In: Anatomy and Physiology

At SATP, Ethanol (C2H6O) is a liquid that has a density of 0.789 g/cm3 and a...

At SATP, Ethanol (C2H6O) is a liquid that has a density of 0.789 g/cm3 and a Gibbs energy of formation Gf =-174.78 kJ.mol-1 Use this information to calculate the chemical potential of ethanol at 298 K and 10.0 bar pressure assuming that the liquid volume is pressure-independent.

show in detail

In: Chemistry

Manager do not like future uncertainty.  Most managers use forecasting, prediction, and estimation to minimize uncertainty. Suppose...

  1. Manager do not like future uncertainty.  Most managers use forecasting, prediction, and estimation to minimize uncertainty. Suppose you have a linear demand function for product X: Q = a + b•Px+c•Py+ d•M, where Q is sales of X, Pxand Pyare the price of products X and Y, and M (consumer’s income).

(a) What does the coefficient for each independent variable mean?

(b) How would you conduct inference from the regression coefficients?

(c) How should we determine the choice of forecasting technique?

In: Economics