subject

1. the program must provide following functions to extract some statistics. note that the data_list parameter specified in these functions may be the same for all functions or different for different functions—that is your choice. a skeleton file is provided on mirmir. a) open_file()prompts the user to enter a year number for the data file. the program will check whether the year is between 1990 and 2015 (both inclusive). if year number is valid, the program will try to open data file with file name ‘year. txt’, where is the year. appropriate error message should be shown if the data file cannot be opened or if the year number is invalid. this function will loop until it receives proper input and successfully opens the file. it returns a file pointer and year. i. hint: use string concatenation to construct the file name b) read_file(fp)has one parameter, a file pointer read. this function returns a list of your choosing containing data you need for other parts of this project. c) find_average(data_list) takes a list of data (of some organization of your choosing) and returns the average salary. the function does not print anything. hints: i. this is not the average of the last column of data. it is not mathematically valid to find an average by finding the average of averages—for example, in this case there are many more in the lowest category than in the highest category. ii. how many wage earners are considered in finding the average (denominator)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:50
Which are steps taken to diagnose a computer problem? a) reproducing the problem and using error codes b) reproducing the problem and troubleshooting c) using error codes and troubleshooting d) using error codes and stepping functions
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Your friend alice is a full-time college student, earned $4,000 working at the campus bookstore over two semesters last calendar year, and also got a part-time job as a cashier in february, earning $9,500. alice knows that you have been learning about taxes in your personal finance lessons and asks you, “do i need to file taxes this year? if i do, what is the process like? ” determine if alice needs to file taxes this year and explain your reasoning. if you conclude that alice does need to pay taxes, explain what forms she will need, what the deadlines are, and what method you recommend she use to file her taxes.
Answers: 3
You know the right answer?
1. the program must provide following functions to extract some statistics. note that the data_list...
Questions
question
Biology, 07.01.2021 14:00
question
Mathematics, 07.01.2021 14:00
question
English, 07.01.2021 14:00
question
Mathematics, 07.01.2021 14:00
question
English, 07.01.2021 14:00
question
Mathematics, 07.01.2021 14:00
question
Spanish, 07.01.2021 14:00
question
Computers and Technology, 07.01.2021 14:00
question
Mathematics, 07.01.2021 14:00
question
Physics, 07.01.2021 14:00
question
Computers and Technology, 07.01.2021 14:00
Questions on the website: 13995981