Question: As you may know, we don't have your DS2000 grade stored on Canvas, because Laney hates it, but you can figure it out anytime

As you may know, we don't have your DS2000 grade stored on

 Canvas, because Laney hates it, but you can figure it out anytime

As you may know, we don't have your DS2000 grade stored on Canvas, because Laney hates it, but you can figure it out anytime you like and that's what we'll do for this homework! The input data file has the following format: Assignment Type (HW, Quiz, or Viz) Grade on that assignment Using a while loop, read in the contents of the file, and compute three things: Average HW score Average Quiz score Overall DS2000 number grade (a weighted average where homework is worth 75%, quizzes are worth 20%, and mini-viz is 5%) Print out each of these things to the user, rounded to 2 digits past the decimal place. For full documentation credit, write one test case in a comment at the top of your file using the format shown below (but with your own example.) Test case: HW grades 90, 85, 95. Avg = 90 Quiz grades - 100, 90. Avg = 95 Viz grade = 90 Overall average = (.75) (90)+(.20) (95) + (.05) (90) = 91 Assume that there could be any number of homeworks, any number of quizzes, but only one Viz grade. The input data file has some made-up data in it. But we encourage you to also use your code to figure out your own current average! HW 98.5 HW 92.4 Quiz 100 Quiz 90 Viz 95 HW 87 HW 91 Quiz 98 ds2000_grades.txt

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It appears youre describing a programming task where you need to read data from a file compute avera... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!