Write a program to determine the length of bursts

Assignment Help Business Management
Reference no: EM132175293

Write a program to determine the length of bursts of zero's in a list of N numbers stored in an List. The program should record the length of the bursts of zero's in another List. The program should then print the lengths of the bursts.

Using this second List with the lengths of the bursts, it should also compute and print the following: the average length of the bursts, the minimum burst length, the maximum burst length, and the total number of zeros (the sum of the burst lengths). 

Your program should:

1. Prompt the user for the size of the list (N). Then it should prompt the user to enter N numbers and store them into an list called burstList. Note, you should specify the maximum size of N allowed (based on how large you declare your List).

2. Given N and list, your program should compute the lengths of the bursts of zeros and store them in an list called BurstLengths. After computing and storing the burst lengths you should terminate your BurstLengths list with a sentinel (-1). Use a for loop in this step.

3. Given the BurstLengths List with a sentinel (-1), use a while loop to print the list of burst lengths. Format this nicely in a table with headings.

4. Given the BurstLengths List with a sentinel (-1), compute and then print the following information:

a. Average burst length

b. Minimum burst length

c. Maximum burst length

d. Total number of zeros

Reference no: EM132175293

Questions Cloud

Describe what hardware is needed for virtual memory : Here's the list of Discussion Questions to choose from: Describe what hardware is needed for virtual memory to work effectively?
What would be the drawbacks and benefits of this approach : What measures can schools and educators adopt to encourage a higher number of female students in these subjects?
Are there any underlying or indirect forms of harassment : Although school policies may provide safeguards for gay and lesbian students, are there any underlying or indirect forms of harassment?
Describe factors that contribute to team dynamics : Describe factors that contribute to team dynamics. Explain how team dynamics can affect the productivity and effectiveness of a team.
Write a program to determine the length of bursts : The program should record the length of the bursts of zero's in another List. The program should then print the lengths of the bursts.
Describe the problem clearly and specifically : The purpose of this assignment is to identify and apply Logistics and Supply Chain Management concepts/tools to solve operational problems.
Why do the different types of bonds get different rates : Understanding how to properly value a vanilla bond (a plain bond) is essential for finance. Using the following Web site, find 3 different funding structures.
Was it technology that drove this change or was it business : Answer the following: Information technology has changed business as companies compete globally and are pressured to provide quality, speed, and customer
Determining the emergency operations : A major hurricane has struck the area where your company has its central data center. There are offsite backups and hardware at three other centers around.

Reviews

Write a Review

Business Management Questions & Answers

  What is establishments wacc

What is Establishment's WACC and write out a market-value balance sheet assuming Establishment has no debt.

  Example of how your personality and values

1. Watch the video titled "Making decisions" (4 min 4 s). (Link is in attached document) Next, provide an example of how your personality and values have influenced your actions and / or decisions in your current or past organization. Be specific ..

  Explain what is meant by term contingent workforce

Explain what is meant by term contingent workforce also discuss pros also cons for both employer also employee.

  Write letter to elizabeth neil leisure world travel agency

Write your letter to Elizabeth Neil, Leisure World Travel Agency, 636 South Michigan Avenue, Chicago, IL 60605. Send her a schedule for spring and summer Caribbean cruises.

  Examine the significant values of conducting an ethics audit

Examine the significant values of conducting an ethics audit in an organization. Select five (5) areas that you would focus on if you have to conduct an ethics audit, and provide a rationale for your selections

  Why did organic valley need an enterprise system

What factors contributed to the successful implementation and outcomes? Explain their importance - Why did Organic Valley need an enterprise system

  Us economy and american business

1. Explain the symbiotic relationship between the U.S. economy and American business. Be specific in identifying how one influences the other.

  How would you argue for notion

Response for the following statement: 'There is only one best way to manage'.

  Domestic companies can lose their comparative advantage

(TCO 3) One disadvantage of free trade is _____. Domestic companies can lose their comparative advantage uninterrupted flow of capital provides for lower interest rates workers will be given across-the-board pay increases a company's productivity gro..

  Pmi practice standard for work breakdown structures

If there are 10 different project managers in a room, there are probably 10 different ideas on what a good WBS should look like. Go to the source, the PMI Practice Standard for Work Breakdown Structures, and review the established quality standard..

  Organizatinal theory taxonomywill you provide an example of

organizatinal theory taxonomywill you provide an example of a taxonomy table of at least 10 theories approaches or

  Goodstone rubber companies whose factories

The Fireyear and Goodstone rubber companies whose factories produce finished rubber and sell it in tothe highly competitive world market at a fixed price of $60 per ton. The process of producing a ton ofrubber produces a ton of air pollution that ..

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