Question: Create a program in Python that reads three grades from a student and the weight of each grade and presents this student's final average. -

Create a program in Python that reads three grades from a student and the weight of each grade and presents this student's final average.
- The input is a line containing three float numbers n1, n2 and n3 which represent a student's grades.
- The second line of the input contains three integers w1, w2 and w3 which represent the weights of each note.
- The output must be a line with the student's weighted average with six decimal places.
- It is not necessary to validate that input values are within the defined types and ranges.
In the third example grade 9.1 has weight 1; grade 5.1 has weight 2; and grade 5.1 has weight 3. So, the resulting weighted average is 5.766667.
Tip! To read more than one value per line use the split() function as shown below. To read 2 or more values on the same line: x, y, z = input().split()
For example:
Create a program in Python that reads three

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!