The meteorological station monitors air humidity. The result of one measurement is an integer from 0 to 100

The meteorological station monitors air humidity. The result of one measurement is an integer from 0 to 100 percent, which is written using the fewest possible bits. The station made 80 measurements. Determine the information volume of observation results in bytes.

First, you need to decide on the minimum possible number of bits to record the percentage of air humidity. Let’s take the maximum possible (according to the conditions of the problem) number and compare it with powers of two (since a bit is encoded in a binary code):
2 ^ 6 <100 <2 ^ 7 (100 is the maximum moisture percentage, 2 ^ 6 = 64, 2 ^ 7 = 128). If we take 6 bits, then we will not be able to write down all the numbers we need, so we take 7 bits for each number.

7 bits are multiplied by 80 measurements and we get 7 * 80 = 560 bits.

Because we need to indicate the answer in bytes, then we divide 560 by 8 (since 8 bits = 1 byte).

Answer: 70 bytes.




One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.

function wpcourses_disable_feed() {wp_redirect(get_option('siteurl'));} add_action('do_feed', 'wpcourses_disable_feed', 1); add_action('do_feed_rdf', 'wpcourses_disable_feed', 1); add_action('do_feed_rss', 'wpcourses_disable_feed', 1); add_action('do_feed_rss2', 'wpcourses_disable_feed', 1); add_action('do_feed_atom', 'wpcourses_disable_feed', 1); remove_action( 'wp_head', 'feed_links_extra', 3 ); remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'rsd_link' );