Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Basic Finance Expert

Call each of the four from the Unit6Quiz.java main method.

Problems:

1. Write a method called playListBuilder that takes no parameters and returns an ArrayList of Strings.

In the method body, declare an ArrayList of Strings called playList and populate it with songs (Strings) using input from the user at the command line.

The user can enter as many songs as they like. Use a sentinel to allow the user to indicate when they are finished.

Don't forget to include a prompt.

 

2. Write a method called searchPlayList that takes an ArrayList of Strings as a parameter (the playList) and returns an integer.

In the method body, prompt the user to enter a search term (a String), then count how many times the search term appears

in the playlist ArrayList. (Hint: use the String.contains() method to check each String in the playList)

The method returns the count. Note the next two methods are unrelated to the playList methods above.

 

3. Write a method called getVitalSigns The method takes no parameters and returns an array of three ints. Call this array vitals.

The method gets three values from the user: heart rate, systolic blood pressure, and respirations.

Prompt for each of them. The three values are

stored in positions 0, 1, and 2 of the vitals array. 

4. Write a method called checkVitals that takes an array of ints (the vitals array from #3 above)

as a parameter and has no return value.

The method uses the vitals array and the following table of rules to make an

assessment of the patient's condition (these are simplifications). Remember that heart rate, systolic blood pressure,

and respirations are stored in positions 0, 1, and 2 of the vitals array. 

Normal RangeLow ConditionHigh Condition

Heart Rate 60-100 BradycardiaTachycardia

Systolic Blood Pressure90-120 HypotensionHypertension

Respirations 12-20 BradypneaTachypnea

After using the vitals array values to decide each of the conditions,

output the condition statements to the command line as in this example:

Heart Rate: NormalBlood Pressure: HypertensionRespirations: Normal

5. Call each of the four methods above from the main method in Unit6Quiz.java

Basic Finance, Finance

  • Category:- Basic Finance
  • Reference No.:- M91558852
  • Price:- $20

Guranteed 24 Hours Delivery, In Price:- $20

Have any Question?


Related Questions in Basic Finance

Zero-coupon bonds with a par value of 1000000 have a

Zero-coupon bonds with a par value of $1,000,000 have a maturity of 10 years and a required rate of return of 9 percent. What is the current price?

Suppose you bought a five-year zero-coupon treasury bond

Suppose you bought a five-year zero-coupon Treasury bond with $ 1000 face value for $800. Answer the following questions: (a) What is the yield to maturity on the bond? (b) Assume the yield to maturity on comparable bond ...

Bob katz would like to save 300000 over the next 20 years

Bob Katz would like to save $300,000 over the next 20 years. If Bob knows today that he will be given $100,000 in 15 years as part of an inheritance, how much would Bob still need to save annually over the next 20 years ...

On january 11998 the total assets of the mccue company were

On January 1,1998, the total assets of the McCue company were $270 million. The first present capital structure, which follows, is considered optimal. Assume that they have no short-term debt. Long-term debt              ...

How can businesses use technology and relationships to

How can businesses use technology and relationships to reduce their environmental impact?

Assume that the current yield on a one-year security is 60

Assume that the current yield on a one-year security is 6.0 percent and that the yield on a two-year security is 7.2 percent. For this question, assume that there is a liquidity premium on a two-year security of 0.4 perc ...

An insurance company is selling a perpetuity contract that

An insurance company is selling a perpetuity contract that pays $2,00 monthly. The contract currently sells for $100,000. (a) What is the monthly return on this investment vehicle? (b) if instead the amount of monthly in ...

The problem to solve is an employee is promised a bonus of

The problem to solve is an employee is promised a bonus of $10,000 in five years if he is still with the company at that time. If the opportunity cost is 10% per year what is the value of his bonus today?

A plaintiff is suing the city for injuries sustained after

A plaintiff is suing the city for injuries sustained after a freak street sweeper accident. In the trial, doctors testified that it will be five years before the plaintiff is able to return to work. The jury has already ...

The following data have been acquired for the sampp 500 and

The following data have been acquired for the S&P 500 and an index of Russian stocks: Year Market Return Russia 1998 27% 25% 1997 12% 5% 1996 -3% -5% 1995 12% 15% 1994 -3% -10% 1993 27% 30% Does it make sense to add an i ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As