Please find attached the assignment. As a student, Python is completely new for me so please answer in not a very complicated format. What's important is that the assignment should be solved with functions and the given file I should put my answer in, is already written: import sys for line in sys.stdin.readlines(): Also, there are two txt. files we should redirect from the Run Configurations. These txt files consists of: Piet van Gogh___5 6 7 4 5 6 5=20=22=10=2=0=0=1=0=1;Vincent Appel,Johannes Mondriaan Karel van Rijn___7 8 6 6 2=30=15=8=4=3=2=0=0=0; Herman Vermeer_4 4 2 4 5 6 6 9=10=10=5=1=1=0=0=0=1;Johannes Brood Johannes Brood__1 12=22=12=0=2=0=0=0=1=0;Herman Vermeer and: Christiaan Huygens___10 10 10 10 10 30=30=32=30=32=30=30=31=30=31;Isaac Newton,Albert Einstein Antoni van Leeuwenhoek___9 8 9 9 2=1=15=8=4=3=1=0=30=0; Hendrik Lorentz_10 10 10 9 10 10 9=10=40=5=1=1=0=0=0=40;Albert Einstein Baruch Spinoza___1 12=22=12=0=2=0=0=0=1=0;Herman Vermeer Jacobus van ’t Hoff___9 8 10 12=22=12=0=2=0=0=50=1=50;Desiderius Erasmus,Johannes van der Waals Finally, this assignment will be tested. Thank you!
Please find attached the assignment. As a student, Python is completely new for me so please answer in not a very complicated format. What's important is that the assignment should be solved with functions and the given file I should put my answer in, is already written:
import sys
for line in sys.stdin.readlines():
Also, there are two txt. files we should redirect from the Run Configurations. These txt files consists of:
Piet van Gogh___5 6 7 4 5 6
5=20=22=10=2=0=0=1=0=1;Vincent Appel,Johannes Mondriaan
Karel van Rijn___7 8 6 6
2=30=15=8=4=3=2=0=0=0;
Herman Vermeer_4 4 2 4 5 6 6
9=10=10=5=1=1=0=0=0=1;Johannes Brood
Johannes Brood__1
12=22=12=0=2=0=0=0=1=0;Herman Vermeer
and:
Christiaan Huygens___10 10 10 10 10
30=30=32=30=32=30=30=31=30=31;Isaac Newton,Albert Einstein
Antoni van Leeuwenhoek___9 8 9 9
2=1=15=8=4=3=1=0=30=0;
Hendrik Lorentz_10 10 10 9 10 10
9=10=40=5=1=1=0=0=0=40;Albert Einstein
Baruch Spinoza___1
12=22=12=0=2=0=0=0=1=0;Herman Vermeer
Jacobus van ’t Hoff___9 8 10
12=22=12=0=2=0=0=50=1=50;Desiderius Erasmus,Johannes van der Waals
Finally, this assignment will be tested. Thank you!
![4 - Administration
For the end of year administration of Programming for History of Arts students you are to write a program that can do 2 things:
1. calculate a fınal grade
2. print a small graph of similarity scores and, if applicable, list the students under investigation
The input is structured as follows:
Piet van Gogh___5 6 7 4 5 6
5=20=22=10=2=0=0=1=0=1;Vincent Appel,Johannes Mondriaan
Karel van Rijn___7 8 6 6
2=30=15=8=4=3=2=0=0=0;
The first line should be interpreted as follows:
You have to calculate the final grade of the student. All grades have the same weight. The final grade is rounded as follows:
a grade that is >= 5.5 AND < 6 should be noted as a "6-"
• otherwise, a grade will be rounded to the nearest half
The second line should be interpreted as follows:
<10 numbers separated by '='>;<zero or more names separated by ','>
The first 10 numbers are the similarity scores. These scores represent the number of programs matching a certain percentage of the current program in
steps of 10%. This means the fırst numbers indicates the matches from 1%-10% and the last number indicates the matches from 91%-100%.
Since this is not very readable, the professor would like a simple graph according to these rules:
if there are zero matches, display an underscore:
if there are less than 20 matches, display a minus sign: -
if there are 20 or more matches, display a caret: A
The names of the students after the semicolon are the names of the students with matches in the final 3 categories. The names of these students should be
printed under the graph. If there are no matches, the program should print "No matches found".
The output for the aforementioned input should be:
Piet van Gogh has an average of 6-
-AA--
Vincent Appel
Johannes Mondriaan
Karel van Rijn has an average of 7.0
-A-
No matches found
Put your program in administration.py](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5927fb2e-9a27-40a0-8271-84ceeb33c548%2F11333915-d58f-475e-9397-f2c7df2ce964%2Fjsps8xa_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 7 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)