Question: The semester average is calculated based on the following weights: quizzes 30%, assignments 40%, exams 30%. The variables are declared as follows: double weightedAverage, quizzes

The semester average is calculated based on the following weights: quizzes 30%, assignments 40%, exams 30%. The variables are declared as follows: double weightedAverage, quizzes = 90.3, assignments = 80.5, exams = 75;

a. Write a C# statement that calculate the weighted average

b. Write a C# statement to display the weighted average with one decimal.

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 Databases Questions!