I am suppose to create a program to compute a students weighted course grade but I am not getting the results I want and the the program to display how I want it to. Below is the intstructions for the project along with how it is suppose to output when ran but when I debug my code and run it it does not compute the overall average how I want it. when I use the numbers given in the example to test the program it outputs an overall grade of 94.4 instead of the average 80.93. I also for some reason can't get the percent sign to show. I am missing a step but not sure where..I knwo that 101/150 is 67 which is the number needed to get 80.93 . which tells me that I have to get the scorees divded by the maximum points on test but no matter how many different timesI write it it does not out put what I want or perform that action.
Write a program to compute a student's weighted course score. There are three tests in the class. The user should enter the maximum points for each test (they do not have to be the same) (integer), the student's score on each test (integer), and the weight of each test (as a percent of 1.0 (0.4 = 40%)) (floating-point value). Your code should output the student's weighted course grade.
Example 1:
Weight of first test: 30
Maximum on first test: 100
Score on first test: 93
Weight of second test: 30
Maximum on second test: 100
Score on second test: 87
Weight of third test: 40
Maximum on third test: 150
Score on third test: 101