Write a method called playlistbuilder

Assignment Help Finance Basics
Reference no: EM13884710

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

Reference no: EM13884710

Questions Cloud

Preparing a table that compares actual and budgeted values : Honey Bear Confections is a small company dedicated to making bear-shaped sweets with honey as a sugar substitute. The problem related to Basic Accounting and it this problem preparing a table that compares actual and budgeted values of production a..
A university has the following dormitories : A university has the following dormitories: Allen Hall $1,500 persemester Pike Hall $1,600 persemester
Differential method of analysis : Explain the Integral and Differential method of analysis for finding the rate of reaction.(May-2005)2.For the elementary reaction in series Ak1Rk2S if k1= k2and at t = 0, CA= CAoandCRo= CSo= 0, find the maximum concentration of R.
Calculation or a calendar of some activity. : 1. Provide Java code for a simple class of your choice. Be sure to include at least one constructor, two methods and two fields. The fields should be private.Create a test class to construct and call the methods of your class. Describe your class and..
Write a method called playlistbuilder : 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 li..
Prepare a written report concerning your business : Based on the readings for this week and your outside research, determine the type of business entity you will use (corporation, LLC, sole proprietorship, partnership, LLP, etc.). You should consider issues such as ease of formation, liability, tax..
What is a healthcare war room? : What is a healthcare war room?
What is the flexible budget formula for factory overhead : What is the flexible budget formula for factory overhead? As a HR manager, how might you make use of this information in the decisions being made about employee headcount - including hiring and staffing choices
What is humes attack against causation : What is Humes attack against causation - why does the version of Consequentialism, Ethical Egoism, not meet the Moral Criteria of Adequacy?

Reviews

Write a Review

Finance Basics Questions & Answers

  Forward contracts questions

1.  Which of the following is most accurate regarding derivatives?

  Consider a finance company with the following type of

consider a finance company with the following type of business. the firm provides small corporations with short-term

  You have a choice of buying 1000 face value of a 10-year

you have a choice of buying 1000 face value of a 10-year zero-coupon bond at a semiannually compounded yield to

  What will its dividend payout ratio be

If the company follows the residual dividend model, how much income must it earn, and what will its dividend payout ratio be?

  Determine the equilibrium market value

Jason Corporation had after-tax income of $15,000 with 10,000 stock shares outstanding. The 2 owners are trying to determine the equilibrium market value for the stock prior to going public.

  What are the common stockholders residual claims to earning

Diploma Mills has $38 million in earnings, pays $4.80 million in interest to bondholders, and $2.90 million in dividends to preferred stockholders.

  The after-tax yield on companys bonds is 6 find the waccs

suppose your company has decided to use a divisional wacc approach to analyze projects. the firm currently has 2

  Marriott has developed a leed volume program

Marriott has developed a LEED Volume Program

  Compute the value of the firm

Compute (i) the value of the firm, (ii) the price per share, and (iii) the number of shares outstanding after the capital structure change.

  In situations where knightian or fundamental uncertainty

1 if you assume that the risk world in which your company operates is ergodic when in fact it is non-ergodic what

  An investor has a long call option on the index at a

the spot price of the market index is 900. after 3 months the market index is priced at 920. an investor has a long

  The finance industry and financial reports

The Finance Industry and Financial Reports

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd