In the US Higher Education sector, a degree is classified using a Grade Point Average (GPA). The grades ‘A’, ‘B’, ‘C’, ‘D’ or ‘F’ are called academic grades. Each ‘A’ is worth 4 points, each ‘B’ is worth 3 points, each ‘C’ is worth 2 points, each ‘D’ is worth 1 point and each ‘F’ is worth 0 points. The GPA is found by calculating the number of points and then dividing by the number of academic grades. A student may also have a non-academic grade of ‘W’ (for withdrew) which is not counted at all in the calculation. You can assume that the student will have at least one academic grade in their list of grades. There are many ways of calculating a GPA from a list of grades, but you must follow the algorithm given by this top-level decomposition: > Find GPA. >> Input a list of academic and non-academic grades. >> Create a new list that consists of the number of points for each academic grade in the input list. >> Add up the values in the new list and divide by the number of values in the new list. >> Print the result rounded to 2 decimal places. One of the tests for your completed program will consist of the input list [‘D’, ‘A’, ‘B’, ‘B’, ‘C’, ‘D’, ‘B’, ‘F’, ‘W’, ‘B’, ‘W’, ‘C’, ‘?’] Where the final grade, represented here by ‘?’ should be replaced by a grade determined from the first digit in your PI number. [Your PI number is the long number that starts with a letter, followed by either seven digits or six digits and an X]. If the first number in your Id number is 0, the missing grade should be ‘A’. If the first number in your Id number is a non-zero even number, the missing grade should be ‘B’. If the first number in your Id number is odd, it should be ‘C’. The first task in the top-level decomposition is to produce a list that contains the points for each academic grade. So, for example, for the list shown above, output should be [1, 4, 3, 3, 2, 1, 3, 0, 3, 2, ?] Where the ? is a 4, 3 or 2, depending on the grade determined from your Id number. In this part you will consider only this part of the top-level algorithm: >> Input a list of academic and non-academic grades. >> Create a new list that consists of the number of points for each academic grade in the input list. Id number is 1272875 1, Specify one further test in addition to the list you have created using your Id number. Make sure that you state the input and output and include a brief explanation of why you selected this test.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In the US Higher Education sector, a degree is classified using a Grade Point Average (GPA).

The grades ‘A’, ‘B’, ‘C’, ‘D’ or ‘F’ are called academic grades. Each ‘A’ is worth 4 points, each ‘B’ is worth 3 points, each ‘C’ is worth 2 points, each ‘D’ is worth 1 point and each ‘F’ is worth 0 points. The GPA is found by calculating the number of points and then dividing by the number of academic grades. A student may also have a non-academic grade of ‘W’ (for withdrew) which is not counted at all in the calculation.

You can assume that the student will have at least one academic grade in their list of grades.

There are many ways of calculating a GPA from a list of grades, but you must follow the algorithm given by this top-level decomposition:

> Find GPA.

>> Input a list of academic and non-academic grades.

>> Create a new list that consists of the number of points for each academic grade in the input list.

>> Add up the values in the new list and divide by the number of values in the new list.

>> Print the result rounded to 2 decimal places.

One of the tests for your completed program will consist of the input list

[‘D’, ‘A’, ‘B’, ‘B’, ‘C’, ‘D’, ‘B’, ‘F’, ‘W’, ‘B’, ‘W’, ‘C’, ‘?’]

Where the final grade, represented here by ‘?’ should be replaced by a grade determined from the first digit in your PI number. [Your PI number is the long number that starts with a letter, followed by either seven digits or six digits and an X].

If the first number in your Id number is 0, the missing grade should be ‘A’.

If the first number in your Id number is a non-zero even number, the missing grade should be ‘B’.

If the first number in your Id number is odd, it should be ‘C’.

The first task in the top-level decomposition is to produce a list that contains the points for each academic grade. So, for example, for the list shown above, output should be

[1, 4, 3, 3, 2, 1, 3, 0, 3, 2, ?]

Where the ? is a 4, 3 or 2, depending on the grade determined from your Id number.

In this part you will consider only this part of the top-level algorithm:

>> Input a list of academic and non-academic grades.

>> Create a new list that consists of the number of points for each academic grade in the input list.

 Id number is 1272875

 

1, Specify one further test in addition to the list you have created using your Id number. Make sure that you state the input and output and include a brief explanation of why you selected this test.

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

not done with my id no and doesn't work

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

no fully answered

 

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY