Write python program that reads from an input file “scores.txt” student test scores in the range 0 – 100 and store these scores in a list. Your program should determine the number of students having scores in each of the following ranges: 0-59, 60-79, 80-89, and 90-100. Display the score ranges and the number of students. (Hint: store the ranges as a list). If you run your program with the following data: 76, 89, 100, 95, 90, 100, 76, 100, 50, 67, 78, 89, 77, 89, 98 Your output should be as follows: Number of students: 15 0-59 60-79 80-89 90-100 ===== ===== ===== ====== 1 5 3 6 Your program should have at least these 3 functions: 1. main(): displays the ranges and the number of students in each range 2. readData(): reads data from input file into a list 3. splitIntoRanges(): takes a list of scores and determines the number of students in each score range
ثxercise 3: Write python program that reads from an input file “scores.txt” student test scores in
the range 0 – 100 and store these scores in a list. Your program should determine the number
of students having scores in each of the following ranges: 0-59, 60-79, 80-89, and 90-100.
Display the score ranges and the number of students. (Hint: store the ranges as a list). If you
run your program with the following data:
76, 89, 100, 95, 90, 100, 76, 100, 50, 67, 78, 89, 77, 89, 98
Your output should be as follows:
Number of students: 15
0-59 60-79 80-89 90-100
===== ===== ===== ======
1 5 3 6
Your program should have at least these 3 functions:
1. main(): displays the ranges and the number of students in each range
2. readData(): reads data from input file into a list
3. splitIntoRanges(): takes a list of scores and determines the number of students
in each score range
![Exercise 3: Write a program that reads from an input file "scores.txt" student test scores in
the range 0-100 and store these scores in a list. Your program should determine the number
of students having scores in each of the following ranges: 0-59, 60-79, 80-89, and 90-100.
Display the score ranges and the number of students. (Hint: store the ranges as a list). If you
run your program with the following data:
76, 89, 100, 95, 90, 100, 76, 100, 50, 67, 78, 89, 77, 89, 98
Your output should be as follows:
Number of students: 15
0-59
60-79
80-89
90-100
====%3D
=====
=====
1
3
Your
program
should have at least these 3 functions:
1. main(): displays the ranges and the number of students in each range
2. readData(): reads data from input file into a list
3. splitIntoRanges (): takes a list of scores and determines the number of students
in each score range](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd661d176-819c-436a-b373-68a4053e0f39%2F720a0941-abf2-4735-befd-71fefc48faf6%2Fm4781n_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)