Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Flow chart assistance, program in C Write a program to determine the length of bursts of zero's in a list of N numbers stored in

Flow chart assistance, program in C image text in transcribed
Write a program to determine the length of bursts of zero's in a list of N numbers stored in an array. The program should record the length of the bursts of zero's in another array. The program should then print the engths of the bursts. Using this second array 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: 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 array called list. Note, you should specify the maximum size of N allowed (based on how large you declare your array). Given N and list, your program should compute the lengths of the bursts of zeros and store them in an array called Burstlengths. After computing and storing the burst lengths you should terminate your Burstlengths array with a sentinel (-1). Use a for loop in this step. 1. 2. 3. Given the Burstlengths array with a sentinel (-1), use a while loop to print the list of burst lengths Format this nicely in a table with headings. Given the Burstlengths array with a sentinel (-1), compute and then print the following information: 4. a. Average burst length b. Minimum burst length c. Maximum burst length d. Total number of zeros

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions