Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python, you will implement a program which asks the user to enter scores of different courses in different semesters. The program should read the

In python, you will implement a program which asks the user to enter scores of different courses in different semesters. The program should read the input and output some simple statistics.

An example input string by the user is given below.

Info from different semesters are separated by a ;, courses in each semester are separated by a ,, and score and corresponding course is separated by a :, information of each courses is followed by a - after the semester name.

Write python program that accept the input string from the user and prints out the following:

Average score made by the student in each semester.

Letter grade for each course for each semester, average GPA for the student in each semester and average GPA for the student across all the semesters.

In each semester, print the course (along with the score) in which the student got the highest score. Assume in each semester, the student doesnt get the same score in two courses.

Here, you are encouraged to solve the problem by implementing different functions. The type of functions to be implemented are left to your discretion.

Letter grade criteria:

Letter grade

Score criteria

A

>= 90

B

>=80 and < 90

C

>=70 and < 80

D

>=60 and < 70

F

< 60

GPA calculation:

Letter grade

GPA

A

4.0

B

3.0

C

2.0

D

1.0

F

0.0

Sample input output is given below: (only the bolded is users input in one single line)

Enter the scores of a student for different semesters

Fall 2016-course1:82,course2:90,course3:85;Spring 2017-course4:67;Fall 2017-course5:85,course6:90,course7:78

Average score made by the student in each semester:

Fall 2016: 85.67

Spring 2017: 67.00

Fall 2017: 84.33

Letter grade for each course for each semester:

Fall 2016: course1 B, course2 A, course3 B

Spring 2017: course4 D

Fall 2017: course5 B, course6 A, course7 C

GPA for the student:

Fall 2016: 3.33

Spring 2017: 1.00

Fall 2017: 3.00

Average GPA 2.86

Maximum score in each semester:

Fall 2016: course2 90 points

Spring 2017: course4 67 points

Fall 2017: course6 90 points

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago