In Python, Complete the extraCreditTotal() function to take a list of grades as a parameter and return the total number points above 100.
Examples:
extraCreditTotal( [101, 83, 107, 90] ) returns 8 (because 1 + 0 + 7 + 0 is 8)
extraCreditTotal( [89, 113, 95] ) returns 13
extraCreditTotal( [89, 73, 96, 97, 99, 100] ) returns 0
PYTHON Code:
def extraCreditTotal(list):
total = 0
for i in range(len(list)):
if list[i]>100:
total += (list[i]-100)
return total
print("extraCreditTotal( [101, 83, 107, 90] )
:",extraCreditTotal( [101, 83, 107, 90] ))
print("extraCreditTotal( [89, 113, 95] ) :",extraCreditTotal( [89,
113, 95] ))
print("extraCreditTotal( [89, 73, 96, 97, 99, 100] )
:",extraCreditTotal( [89, 73, 96, 97, 99, 100] ))
![def extraCredit Total (list): total = 0 for i in range (len (list)): if list[i]>100: total += (list[i]-100) return total prin](http://img.homeworklib.com/questions/e22890c0-a12d-11ea-8998-bd7eed1331eb.png?x-oss-process=image/resize,w_560)
Output:
![extraCreditTotal( [101, 83, 107, 90] ) : 8 extraCreditTotal( [89, 113, 95] ) : 13 extraCreditTotal( [89, 73, 96, 97, 99, 100)](http://img.homeworklib.com/questions/e2ae92e0-a12d-11ea-8a3a-a3217fe96530.png?x-oss-process=image/resize,w_560)
In Python, Complete the extraCreditTotal() function to take a list of grades as a parameter and...
In Python Complete the function powersOf5(). Have the function take a parameter n and return a list of the first n powers of 5. One way to calculate powers of 5 is by starting with 1 and then multiplying the previous number by 5. Examples: powersOf5( 1 ) returns [1] powersOf5( 2 ) returns [1, 5] powersOf5( 3 ) returns [1, 5, 25] powersOf5( 6 ) returns [1, 5, 25, 125, 625, 3125] powersOf5( 10 ) returns [1, 5, 25,...
Microsoft Excel Question.
I'm having trouble using the vlookup function, I have calculated
a final numerical grade for a hypothetical course, and and trying
to use a set of numerical grades with their corresponding letter
grades to get a vlookup function to return the letter grade from
the numerical grade.
However the function for some reason only returns the lowest
value out of the set grades, not the closest match.
Projects Classwork Teamwork/Integrity 100 100 A+ 98 A+ 97 A...
2. Assume that the first set of scores below represents the IQ scores of children who have been participating in a school lunch program and the second set of scores represent the IQs of a similar group of children who have not participated in the program. a. Prepare appropriate graphical representations of the frequency and relative frequency distributions. b. Compare the two distributions by placing them on the same graph. Be sure to have equivalent intervals, if grouped....
write a program that uses a function to read in the grades for four classes and then uses a function to calculate the average grade in each of the classes. input the grades for one student. we will name her Beverly. output how Beverly's grade differs from each classe average. Make sure that your output is very clear. Below is your data: English 90 70 85 45 95 95 82 97 99 65 History 63 94 60 76 83 98...
1. For each set below, using Excel, construct a. a frequency distribution, b. a relative frequency distribution, and c. a cumulative relative frequency distribution. Consider whether or not you should group your data. Describe how you determined your bin width, if you grouped the data in intervals. Set 1 75 95 103 100 93 91 90 92 89 105 86 85 81 96 103 99 94 95 91 97 92 107...
FOR PYTHON: Write a function findMinRow() that
takes a two-dimensional list of numbers as a parameter. It
returns the index of the minimum row in the list.
The minimum row is the row with the smallest sum of elements. If
the list has multiple rows that achieve the minimum value, the last
such row should be returned. If the list is empty the function
should return -1. The following shows several sample runs of the
function:
Python 3.4.1 Shell File...
Please help me with this program.You are to write a C++ program that will read in up to 15 students with student information and grades. Your program will compute an average and print out certain reports. Format: The information for each student is on separate lines of input. The first data will be the student�s ID number, next line is the students name, next the students classification, and the last line are the 10 grades where the last grade is...
Python 3 Create a function that takes an array and an integer v, and returns the number of v occurrences in the array. Add a variable Nsteps to count how many times the loops have executed and display that information in a message The main program must take an array / list 2D, call the function, and display the result. >>>l3 = [52, 14, 14, 8, 85, 69, 1, 77, 94, 96, 51, 65, 35, 32, 87, 92, 74, 47,...
The Computer Science Instructor has just completed compiling all the grades for the C++ Programming class. The grades were downloaded into a file titled ‘studentGrades.txt’ (attached). Write a C++ Program that reads this file and calculates the following as described : The final semester numeric and letter grade (using 10 point scale) Calculated as follows: Labs 1-6 (worth 50% of final grade) Lab 7 is extra credit (worth 2 % of final grade OR replaces lowest lab grade – Select...
An article of the American Journal of Clinical Pathology, by Metz et al. (A-4) published the comparison of three methods to determine the percentage of dysmorphic erythrocytes in the urine. They obtained the following results when using the A (X) and B (Y) methods in 75 urine samples. Draw a scatter diagram and obtain the regression equation and graph it on the diagram. X Y X Y X Y X Y 0 0 20 16 65 55 89 81 0 ...