Question: 2. [10 points] Write a program using functions which will do the file compression task to the following input and gives the below mentioned output:
![2. [10 points] Write a program using functions which will do](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f9352ca922f_10866f9352c47b7f.jpg)
2. [10 points] Write a program using functions which will do the file compression task to the following input and gives the below mentioned output: Input Output: 15 20 5 33 Hint: You need to input the string of Os and 1s from the user and pass the string to a function which will do the file compression task. The return type of the function is vmoid and all file compression task
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
