During this COVID-19 pandemic, doctors have advised that a person can check the health of his/her lungs by holding breath for some period of time. To confirm this, a group of youths would like to carry out a “hold your breath challenge”. A C program is required to perform the following tasks; • Capture the period of holding breath and the corresponding frequency from the experiment. The table below provides a sample of the values to be captured by the program. Your program is not restricted to capturing these very values but mind about the type. Frequency(f)[4,2,1,4,6,3] Period of holding breath (x)[12.1,12.4,12.5,12.7,13.0,13.1] (a)Print out a frequency table for the values captured as follows Period(x). Frequency (f) ............ ............ ............. ............. (b) Calculate and print out the mean period of holding the breath from this experiment.
During this COVID-19 pandemic, doctors have advised that a person can check the health of
his/her lungs by holding breath for some period of time. To confirm this, a group of youths
would like to carry out a “hold your breath challenge”. A C
the following tasks;
• Capture the period of holding breath and the corresponding frequency from
the experiment. The table below provides a sample of the values to be
captured by the program. Your program is not restricted to capturing these
very values but mind about the type.
Frequency(f)[4,2,1,4,6,3]
Period of holding breath (x)[12.1,12.4,12.5,12.7,13.0,13.1]
(a)Print out a frequency table for the values captured as follows
Period(x). Frequency (f)
............ ............
............. .............
(b) Calculate and print out the mean period of holding the breath from this experiment.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)