subject

Write a python program: assignment: a professor at hardtack university has an unusual method of grading. the students may or may not all take the same number of tests. the individual tests are weighted, and these weights are used to compute the student's average. important: the weights for all of the tests for a given student must add to 100. assuming that w1 wn are the weights, and g1 gn are the grades, the average is computed by the formula: ((w1 * g1) + (w2 * g2) + + (wn * gn)) / 100the names of the students and their grades, with weights, are stored in a text file in the format firstname lastname w1 g1 w2 g2 wn gnwrite the program weightedaverage. py. ask the user to enter the name of a file of grades. compute and print each student's average, using the formula given above. then compute and print the class average, an average of the individual averages. format all averages to one decimal place. note the weights for each student will always add up to 100.for example, if the text file contains: billy bother 20 89 30 94 50 82hermione heffalump 40 93 60 97kurt kidd 20 88 30 82 40 76 10 99then the output might look like this: billy bother's average: 87.0hermione heffalump's average: 95.4kurt kidd's average: 82.5class average: 88.3

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
Write a program that reads the file, then displays the average number of steps taken for each month. (the data is from a year that was not a leap year, so february has 28 days.) your program needs to use at least 3 functions not counting main and display the information in a neat well formatted fashion.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
Write a python program: assignment: a professor at hardtack university has an unusual method of grad...
Questions
question
Mathematics, 08.03.2021 21:30
question
World Languages, 08.03.2021 21:30
question
Chemistry, 08.03.2021 21:30
Questions on the website: 13722367