Question: Python Python A Manually create a text file named studs_grades.txt and store the below, which is a list of students, their section, and their grades:

Python Python
Python Python A Manually create a text file named studs_grades.txt and store
the below, which is a list of students, their section, and their
grades: The best row is the colmeadings for the data which is

A Manually create a text file named studs_grades.txt and store the below, which is a list of students, their section, and their grades: The best row is the colmeadings for the data which is separated by semi-colon. STUDENT SECTION:GRADE Abordo;BSITAA:2.25 Agustin;BSITA:1.75 Asiatico:BSITAA: 3.00 Asilo:BSITAA:2.75 Bernabe;BSIT4A: 2.25 Borja:BSIT4A:2.00 Botabara;BSITA: 3.00 Cagoco;BSITAA: 3.00 Carino;BSITAA: 3.00 Cruz;BSIT4A:3.00 Dapatnapo;BSITAA: 3.00 Darupan;BSITA: 2.25 Delos Reyes;BSIT4A;3.00 Ono:BSIT4A: 3.00 Torres:BSITAA:2.50 Ugale:BSIT4A: 2.25 Elpedes:BSIT48;3.00 Endozo;BSIT48:2.50 Estrada;BSIT4B;3.00 Evangelista:BSIT48:2.75 Fernandez;BSIT48:3.00 Flores;BSIT4B:3.00 Gayeta;BSIT4B:2.25 Gernale:BSIT4B;2.25 Guarino:BSIT48:2.50 Lecaros;BSIT4B: 3.00 Legarda;BSIT48;2.50 Longcop:BSIT4B, 2.75 Mabansag;8SIT4B:2.75 Malaluan;BSIT4B:2.50 Manaba;BSIT4B;2.25 Hanarin:BSIT48:3.66 Mengol:BSIT4B:3.00 Opriasa;BSIT48:2.50 Pangan;BSIT48:1.75 Cortez;BSIT40;3.00 Pantilag;BSIT4C:2.25 Penuliar;BSIT4C:3.00 Relojo;BSIT4C:3.00 Reyes:BSIT4C:2.75 Salazar:BSIT40:3.00 Santiago:BSIT4C;2.25 Seberre;BSIT4C:3.00 Suayan;BSIT4C:3.00 Sulit;BSIT4C:3.00 Tejada;BSIT4C:2.50 Tura;BSIT4C:2.25 Tuvieron;8SIT40:1.75 Vicente:BSIT4C;2.25 Yacub:BSIT4C:2.75 B. Next, detine a class named Student Grades. The class constructor requires a string argument which is the file studs_grades.txt and read the data and store in an instance variable named studs dict with the data structure as shown below E'STUDENT: "Abordo. Agustin'... *SECTION: [BSIT4A, "BSITAA..... GRADE 12.25. 1.75....1 C. Next, modify the class StudentGrades and add an instance method named print_grades_count to print a formatted display of the number of students per grade, in ascending order of grades, as shown below Grade Student Count 1.75 2.00 1 2.25 11 2.50 7 2.75 6 3.00 22 D. Next, modify the class Student Grades and add an instance method named list_students(self, paran_data) that requires a paran data as argument. The method will be used later to make a formatted display of a list of students (sorted alphabetically). with their section and grade, as stated below. Student Section Grade Evangelista Gayeta Gernale BSIT4B BSIT4B BSIT4B 2.75 2.25 2.25 Guarino BSITE 2.50 E Next.modity the class StudentGrades and add an instance method named print_grades_above_two that uses the items of studs_dict and the method list_students to display the wiphabetical first of students with grades higher than 2.00 means between 10 and 1.75), as shown in sample below Student Section Grade Agustin Pangan BSITAA BSIT4B 1.75 1.75 Ne, modify the class StudentGrades and add an instance method named print_grades_below_two that uses the items of studs_dict and the method list students to display the alphabetical list of students with grades between 2.00 and 2.75 include 2.00 and 2.75), as shown in sample below Student Section Grade Abordo BSITAA 2.25 Asilo BSITAA 2.75 Bernabe BSITAA 2.25 Vicente BSIT4C 2.25 Yacut BSIT4C 2.75 G. Next, modify the class StudentGrades and add an instance method named print_grades_equal_three that uses the items of studs_dict and the method list_students to display the alphabetical fist of students with grades equal to 30, as shown in sample below Student Section Grade Asiatico Botabara Cagoco BSITAA BSIT4A BSITAA 3.00 3.00 3.00 Suayan Sulit BSIT4C BSIT4C 3.00 3.00 H. Finally, modify the class StudentGrades and add an instance method named print_grades_of_bsit4a that uses the items of studs_dict and the method list_students to display the alphabetical list of students who belong to BSIT4A, as shown in sample below: Student Section Grade Abordo Agustin BSIT4A BSIT4A 2.25 1.75 Asiatico BSITYA 3.00 Torres BSITUA 2.50 Ugale BSITAA 2.25 1. Create an object named sg_obj of the class StudentGrades and call the print... methods, as shown in sample below: sg_obj = StudentGrades ('studs_grades.txt') sg_obj.print_grades_count() sg_obj.print_grades_above_two() sg_obj.print grades below two() sg_obj.print_grades equal_three() sg_obj.print_grades_of_bsit4a()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!