Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an Arrary/List, **Grades.. that takes the grade points (0-100) of all X semesters where in each semester, there are y courses each enrolled by

image text in transcribed
image text in transcribed
Create an Arrary/List, **Grades.. that takes the grade points (0-100) of all X semesters where in each semester, there are y courses each enrolled by z number of students. To do so, take X, Y, Z, and the Grades as user input. Once the data is in, do the following 1. Compute and print the class average (sub_avg) grade points for each course (Z students) 2. Compute and print the semester average (sem avg grade for each semester 3. Compute and print the overall average (ov_avg) for X semesters 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 def GradeComputer(G): ov_tot- for sem in G: sem_tot- for sub in sem: sub_tot- for std in sub: sub_tot+=Std sub_avg=sub_tot/len(sub) print("this is subject avg:", sub_avg) sem_tot+=sub_tot sem_avg=sem_tot/(ien(sem)*lensub)) print(sem_avg) ov_tot-asem_tot ov_avg-ov_tot/(len(G)*len(sem)*len(sub)) print(ov_avg) 18 Grades-[[[90,97], [80,88], [90,91]], [[85,90],[91,92],[93,94]]] + you need to get this valus as seriousing input() function 19 GradeComputer (Grades

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

Students also viewed these Databases questions