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 n n and n which represent a student's grades.
The second line of the input contains three integers w w and w 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 has weight ; grade has weight ; and grade has weight So the resulting weighted average is
Tip! To read more than one value per line use the split function as shown below. To read or more values on the same line: x y z inputsplit
For example:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
