# For this project, you are going to write a program that calculates #the GPA for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
# For this project, you are going to write a program that calculates #the GPA for every student in a list. There will be a list of students. # Each item in the list will itself be a list that includes the students #numeric grades. The first item in every sublist will be the student's name. # You will need to calculate the GPA for each student and store it in the #list with the student's grades. The GPA should be stored with the name in # the first element of the list. You should use a tuple to store the name and # GPA. Your program should conform to the following specifications. # 1. No names should be deleted from the lists. # 2. Before you start calculating the GPA, all numeric grades should be converted to letter grades. These letters should overwrite the number. # 3. You should create/use functions for converting a number to a letter 023- # # and for calculating the GPA of a single student. #4. GPAS should be rounded to 3 digits. # 5. Names and GPAS should be stored as a 2-item tuple that replaces the 13 name in each sublist. The tuple should be name first, GPA second, 1.e., (name, GPA) # For this project, you are going to write a program that calculates #the GPA for every student in a list. There will be a list of students. # Each item in the list will itself be a list that includes the students #numeric grades. The first item in every sublist will be the student's name. # You will need to calculate the GPA for each student and store it in the #list with the student's grades. The GPA should be stored with the name in # the first element of the list. You should use a tuple to store the name and # GPA. Your program should conform to the following specifications. # 1. No names should be deleted from the lists. # 2. Before you start calculating the GPA, all numeric grades should be converted to letter grades. These letters should overwrite the number. # 3. You should create/use functions for converting a number to a letter 023- # # and for calculating the GPA of a single student. #4. GPAS should be rounded to 3 digits. # 5. Names and GPAS should be stored as a 2-item tuple that replaces the 13 name in each sublist. The tuple should be name first, GPA second, 1.e., (name, GPA)
Expert Answer:
Answer rating: 100% (QA)
Python program that calculates the GPA for each student in a list def calculategpagrades gradedict A ... View the full answer
Related Book For
Business Analytics Communicating With Numbers
ISBN: 9781260785005
1st Edition
Authors: Sanjiv Jaggia, Alison Kelly, Kevin Lertwachara, Leida Chen
Posted Date:
Students also viewed these programming questions
-
Find the slope-intercept form of the line with the given slope and y-intercept. 9 3 Slope = 2 y-intercept = 5 What is the equation of the line? (Simplify your answer. Type your answer in...
-
Briefly identify and describe the client populations that you would like to serve and in what setting. Identify two employers you would like to work for and share with the class what populations the...
-
Create an array of 4 customers, each customer is an object, with the following 3 properties and 1 function. properties: firstName: string, customer's first name lastName: string, customer's last name...
-
Joshua Tree Inc. reported that at the end of 2012 net accounts receivable of 2,050 (the net value at the end of 2011 was 1,090). Their allowance for doubtful accounts at the end of 2012 was 150 (the...
-
Calculate the following specific volumes a. R-134a: 50C, 80% quality b. Water 4 MPa, 90% quality c. Nitrogen 120 K, 60% quality
-
Bob Leno, a business student, is working on a case for one of his classes. The company in the case needs to raise cash to market a new product it has developed. His roommate Saul Cain, an engineering...
-
Outline the effects on the market rate of interest and the welfare implications for borrowers and savers of (a) an increase in desired savings and (b) an increase in desired investment.
-
Martin Company has a line of credit with Federal Bank. Martin can borrow up to $600,000 at any time over the course of the 2013 calendar year. The following table shows the prime rate expressed as an...
-
The bars AB and AC are joined by a pin at A and a horizontal cable. The vertical cable carrying the 200 kg mass is attached to the pin at A. Determine the tension in the horizontal cable. Neglect the...
-
1. Bare cost and total cost (incl. O&P) of formwork for spread footings (20 pts, specify which lines (or index) in RSMeans data are used) 2. Bare cost and total cost of reinforcement for spread...
-
File Browser /home/ali Name Name A B Workspace Filter clc Class double double 5x Command Window * G Di 3x. Command History Filter # Octave 5.2.0, Fri Feb 26 00:43:48 20 >> A = [2 4 6 8;1 2 3...
-
David and Lilly Fernandez have determined their tax liability on their joint tax return to be $ 3 , 1 0 0 . They have made prepayments of $ 1 , 8 6 5 and also have a child tax credit of $ 2 , 0 0 0 ....
-
According to the given Information: a) Find r(t) b) Find: r(t) * (t) = a cos(q sin wt) * + a sin(q sin wt) 9
-
Blossom Company began the year with stockholders' equity of $ 1 0 7 7 0 0 . During the year, Blossom issued stock for $ 1 4 7 8 0 0 , recorded expenses of $ 4 1 2 0 0 0 , and paid dividends of $ 2 7...
-
The activity (row) - input/output (column) incidence matrix presented next is a high level product development model. 1 2 3 4 5 6 7 8 9 10 ABCDEFGH 10 0 H - 1 10 a) Decompose the process...
-
An ion channel in a cell membrane carries 2.0 pA when it's open, but it's open only 40 % of the time. If the channel opens for 1.2ms , how many singly ionized ions pass through it in this time?
-
(2x+3y-z = -12 Ex. Solve the system of equations using Cramer's Rule, if applicable. x-y-z = -4 -4x + 3y + z = 14
-
An 8.0 kg crate is pulled 5.0 m up a 30 incline by a rope angled 18 above the incline. The tension in the rope is 120 N, and the crates coefficient of kinetic friction on the incline is 0.25. a. How...
-
Refer to Exercise 13 for a description of the data set. a. Create a boosting ensemble classification tree model. What are the overall accuracy rate, sensitivity, and specificity of the model on the...
-
A financial analyst wants to compare the performance of the stocks of two Internet companies, Amazon (AMZN) and Google (GOOG). She records the average closing prices of the two stocks for the years...
-
Beza Gordon-Smith is a high school senior in northern California who loves watching football. She keeps track of football results and statistics of the quarterbacks of each high school team. The...
-
Try to identify the class in the stable design pattern for culture.
-
Try to connect those classes together to form a class diagram.
-
Consider a scenario where your laptop has stopped working and you take it to a repair center. The vendor asks for a huge sum of money, but you negotiate with him the price for repair. Create a class...
Study smarter with the SolutionInn App