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

  Financial reporting and analysis

Finance is about Gunns Ltd, a company in dealing with forestry products in Australia. The company has also been listed in Australian Stock Exchange. As many companies producing forestry products, even Gunns Ltd is facing various problems. Due to the ..

  A report on financial accounting

This report is specific for a core understanding for Financial Accounting and its relevant factors.

  Describe the types of financial ratios

Describe the types of financial ratios and other financial performance measures that are used during venture's successful life cycle.

  Differences between sole proprietorship and corporation

Briefly describe the major differences between a sole proprietorship and a corporation

  Prepare a cash budget statement

Calculate the expected value of the apartment in 20 years' time. What is the mortgage loan repayment at the beginning of each month

  What are the implied interest rates

What are the implied interest rates in Europe and the U.S.?

  State pricing theory and no-arbitrage pricing theory

State pricing theory and no-arbitrage pricing theory

  Small business administration

Identify the likely stage for each venture and describe the type of financing each venture is likely to be seeking and identify potential sources for that financing.

  Effect of financial leverage

The Effect of Financial Leverage and working capital management

  Evaluate the basis for the payment to the lender

Evaluate the basis for the payment to the lender and basis for the payment to the company-counterparty.

  Importance of opps, ipps, mpfs and dmepos

Research and discuss the differences and importance of : OPPS, IPPS, MPFS and DMEPOS.

  Time value of money

Time Value of Money project

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