Reference no: EM132184081
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
Focusing on host intrusion detection system
: Focusing on Host Intrusion Detection System, Intrusion Prevention Systems (HIDS) or AntiVirus Systems.
|
Improving old and outdated equipment
: What a improved skilled work force will help with are Improving a old and outdated equipment, Improve the lack of innovative design
|
What are the pros and cons of this strategy
: Executive Leadership: Industry knowledge and experience, vision about where the industry is heading, and strategy execution.
|
Researching and monitoring the company macroenvironment
: Which exclusively publishes textbooks for Colorado public schools, you are responsible for researching and monitoring the company's macroenvironment
|
Write a program to determine the length of bursts of zero
: 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
|
Three skills connect with different levels of management
: Define technical skills, human skills, and conceptual skills. How do these three skills connect with the different levels of management?
|
Was it technology that drove this change or was it business
: Information technology has changed business as companies compete globally and are pressured to provide quality, speed, and customer service.
|
Identify business leader who you admire in your community
: Not every great business leader is a big talker, but most are excellent communicators. Identify a business leader who you admire in your community.
|
Define a function datetonum
: Define a function dateToNum(..) which receives as parameter a string representing a date in the format:
|