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

Question utilizing the concepts learned throughout the

Question: Utilizing the concepts learned throughout the course, write a Final Paper on one of the following scenarios: • Option One: You are a consultant with 10 years experience in the health care insurance industry. A ...

Discussion your initial discussion thread is due on day 3

Discussion: Your initial discussion thread is due on Day 3 (Thursday) and you have until Day 7 (Monday) to respond to your classmates. Your grade will reflect both the quality of your initial post and the depth of your r ...

Question financial ratios analysis and comparison

Question: Financial Ratios Analysis and Comparison Paper Prior to completing this assignment, review Chapter 10 and 12 in your course text. You are a mid-level manager in a health care organization and you have been aske ...

Grant technologies needs 300000 to pay its supplier grants

Grant Technologies needs $300,000 to pay its supplier. Grant's bank is offering a 210-day simple interest loan with a quoted interest rate of 11 percent and a 20 percent compensating balance requirement. Assuming there a ...

Franks is looking at a new sausage system with an installed

Franks is looking at a new sausage system with an installed cost of $375,000. This cost will be depreciated straight-line to zero over the project's five-year life, at the end of which the sausage system can be scrapped ...

Market-value ratios garret industries has a priceearnings

(?Market-value ratios?) Garret Industries has a? price/earnings ratio of 19.46X a. If? Garret's earnings per share is ?$1.65?, what is the price per share of? Garret's stock? b. Using the price per share you found in par ...

You are planning to make annual deposits of 4440 into a

You are planning to make annual deposits of $4,440 into a retirement account that pays 9 percent interest compounded monthly. How large will your account balance be in 32 years?  (Do not round intermediate calculations a ...

One year ago you bought a put option on 125000 euros with

One year ago, you bought a put option on 125,000 euros with an expiration date of one year. You paid a premium on the put option of $.05 per unit. The exercise price was $1.36. Assume that one year ago, the spot rate of ...

Common stock versus warrant investment tom baldwin can

Common stock versus warrant investment Tom Baldwin can invest $6,300 in the common stock or the warrants of Lexington Life Insurance. The common stock is currently selling for $30 per share. Its warrants, which provide f ...

Call optionnbspcarol krebs is considering buying 100 shares

Call option  Carol Krebs is considering buying 100 shares of Sooner Products, Inc., at $62 per share. Because she has read that the firm will probably soon receive certain large orders from abroad, she expects the price ...

  • 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