Question: PYTHON PROJECT FILES ARE ON https://www.cse.msu.edu/~cse231/Online/Labs/Lab08/ Lab Exercise #8 Assign This lab Python. Practice You will work with a partner on this exercise during your
PYTHON PROJECT
FILES ARE ON https://www.cse.msu.edu/~cse231/Online/Labs/Lab08/


Lab Exercise #8 Assign This lab Python. Practice You will work with a partner on this exercise during your lab sessuon. Two people should work at one computer occasionally switch the person who is typing Tal to cach other about what you are doing and why so that both of you understand each step. Renford's Law Benford's Law (sometimes called the First-Di git Law) is an observation about the distribu of first digits in many data sets: the number 1 occurs as the leading digit about 30% of the time, while larger that posi frequent ple, 9 the first digit than 5% As noted on Wikipedia: hus result has been found to de variety of dalasels, including tricity bi ls, street addresses, stock prices, population bers, death rates ngths rivers, physical and mathematical constants. and processos described by power laws (which arc very common in nature). Relative size of Pld 30.1% 2 17.6% 3 12.5% 9.7% 5 7.9% 6 67% 7 5.8% 5.1% 9 4.6% op a program wh low you to The program prompt the user for the name of file, read the contents of and count the leading digits and then an input display the results For simplicity, the prugram will assume that the data file contains integer numbers, with one value per line. bell be formatted for readability (see The program's Lab Exercise #8 Assign This lab Python. Practice You will work with a partner on this exercise during your lab sessuon. Two people should work at one computer occasionally switch the person who is typing Tal to cach other about what you are doing and why so that both of you understand each step. Renford's Law Benford's Law (sometimes called the First-Di git Law) is an observation about the distribu of first digits in many data sets: the number 1 occurs as the leading digit about 30% of the time, while larger that posi frequent ple, 9 the first digit than 5% As noted on Wikipedia: hus result has been found to de variety of dalasels, including tricity bi ls, street addresses, stock prices, population bers, death rates ngths rivers, physical and mathematical constants. and processos described by power laws (which arc very common in nature). Relative size of Pld 30.1% 2 17.6% 3 12.5% 9.7% 5 7.9% 6 67% 7 5.8% 5.1% 9 4.6% op a program wh low you to The program prompt the user for the name of file, read the contents of and count the leading digits and then an input display the results For simplicity, the prugram will assume that the data file contains integer numbers, with one value per line. bell be formatted for readability (see The program's
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
