Write a program for the following: 1. Define a two-dimensional list object that contains the following...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program for the following: 1. Define a two-dimensional list object that contains the following data 346 -258 9-15 7-21 893 2. Add values in each row and display 3. Add the values in each column and display 4. Display the third and fourth records (or rows) 5. Display the middle column 6. Define a tuple of tuples using the data in (1) 8. 7. Read the records in the file stdGrades.txt and assign to a two-dimensional list object. Each line contains student's name, all completed courses with number of credits and letter grades Calculate the GPAs of students and assign to a list object. Note that 'A' is 4 points, 'B' is 3 points, 'C' is 2 points, 'D' is 1 point and 'F' is 0 point. GPA is calculated by summing the products of the course credits and grade points and dividing by total credits. 9. Write students' names and GPAS to a file gPAs.txt 10. Calculate and display the overall average GPA Write a program for the following: 1. Define a two-dimensional list object that contains the following data 346 -258 9-15 7-21 893 2. Add values in each row and display 3. Add the values in each column and display 4. Display the third and fourth records (or rows) 5. Display the middle column 6. Define a tuple of tuples using the data in (1) 8. 7. Read the records in the file stdGrades.txt and assign to a two-dimensional list object. Each line contains student's name, all completed courses with number of credits and letter grades Calculate the GPAs of students and assign to a list object. Note that 'A' is 4 points, 'B' is 3 points, 'C' is 2 points, 'D' is 1 point and 'F' is 0 point. GPA is calculated by summing the products of the course credits and grade points and dividing by total credits. 9. Write students' names and GPAS to a file gPAs.txt 10. Calculate and display the overall average GPA
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that accomplishes the tasks youve described python Task 1 data 346 258 9 15 7 ... View the full answer
Related Book For
College Algebra With Modeling And Visualization
ISBN: 9780134418049
6th Edition
Authors: Gary Rockswold
Posted Date:
Students also viewed these programming questions
-
Refer to Exercise 13 in Lesson 4.6. The original data is shown at right. Instead of adding the same number to each score, one of the judges suggests that perhaps they should multiply the original...
-
What does this function do/calculate? Use "math coprocessor" FP STACK for the explanation. f: push ebp mov ebp, esp fld [ebp+8] fld [ebp+12] fmul st1 ffree stl fldl fadd stl ffree st 1 mov esp, ebp...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
In Exercises 8194, begin by graphing the absolute value function, f(x) = |x| . Then use transformations of this graph to graph the given function. h(x) = x +31-2
-
A certain crude oil has an index of refraction of 1.25. A ship dumps 1.00 m3 of this oil into the ocean, and the oil spreads into a thin uniform slick. If the film produces a first-order maximum of...
-
Standard direct labor hours budgeted by Witherspoon Company for April production were 1,200, with factory overhead at that level budgeted at $16,800, of which $4,800 is variable and $12,000 is fixed....
-
In Exercise 11, compare your answer to part (a) with your answer to part (b). How do outliers affect the range of a data set? Data from Exercises 11 The altitudes (in kilometers) of atmosphere at...
-
Multiply Choice 1. Sequential access means that a. Data are stored on magnetic tape. b. The address of the location of data is found through the use of either an algorithm or an index. c. To read any...
-
5. Find the derivative of the following. a. y = 2x+3 x-2 b. y = In (cos(2x-1)) c. y = ex arc sin (2x+3) d. 4x+2xy + y = 0 e. Find the partial derivative with respect to x of the function xy - 5y + 6...
-
bring this packet with you to every class as this is an ongoing problem. Chart of Accounts 11. Cash 31. Jolene Upton, Capital 12. Accounts receivable 14. Supplies 15. Prepaid rent 16 Prepaid...
-
Suppose there is a policy debate regarding the United States imposing trade restrictions on imported steel rods: Domestic producers of steel rods send a lobbyist to the U.S. government to request...
-
Summarize the article titled "Supply chain integration and novelty-centered business model design: An organizational learning perspective" Authors: Taiwen Feng, Shan Yang, Hongyan Sheng. And also...
-
The standard output of production EXE is 25 units per hour in a manufacturing department of a company employing 100 workers. The standard wage rate per labour hour is Rs.6. In a 42 hours week, the...
-
1. A stock is expected to pay a dividend of $1 per share in two months and in five months. The stock price is currently traded at $50 per share, and the risk-free rate is 3% per annum with continuous...
-
During the audit of the revenue accounts for BlackWater Inc., a provider of specialty scuba gear and other underwater apparatus, it has been noted by the auditing firm, Johnson CPAs, that the...
-
Why is it important to develop a strategy for an organization?
-
Enjin Vroom Sdn Bhd operates a factory at the Senawang Industrial Zone that manufacture micron filter for diesel engine. The data given below are for costs in year 2018 for producing and selling 2200...
-
Extend Algorithms 3.4 and 3.5 to include as output the first and second derivatives of the spline at the nodes.
-
If possible, write the given general equation of a circle in standard form by completing the square, and identify the center and radius. Graph the circle. x + 8x + y 6y + 16 = 0
-
A driver of a car is initially 50 miles south of home, driving 60 miles per hour south. Write a function f that models the distance between the driver and home.
-
The figure shows the graph of f(x) = ax 2 + bx + c. (a) State whether a > 0 or a (b) Solve the equation ax 2 + bx + c = 0. (c) Is the discriminant positive, negative, or zero? -3-2-1 -3 2 y = f(x)
-
What factors is a judge likely to consider when determining best interest?
-
What is the best interest standard?
-
What criticisms are commonly made about the best interest standard?
Study smarter with the SolutionInn App