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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, sdonachy7
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
image
Computers and Technology, 22.06.2019 18:00, ladyree8721
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, MoneyMike42
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
You know the right answer?
Write a python program: assignment: a professor at hardtack university has an unusual method of grad...

Questions in other subjects: