Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming C plz help Determine the weighted average values of two students A and B in Intro to Computing coursework. Quizzes, midterms, exams, and projects

Programming C plz help

image text in transcribed

Determine the weighted average values of two students A and B in Intro to Computing coursework. Quizzes, midterms, exams, and projects play a critical role. Assume the weights for quizzes, midterm, exams, and projects are 0.15, 0.2, 0.3, and 0.35 respectively. Prompt the user to enter the grades of students, A and B, in quizzes, midterm, exams, and projects (Range between 1-100). Multiply the grade that student A obtained in each category by the weight of that category, and then add all the resulting numbers up. The final result will give you the weighted average of that student. Repeat the same procedure for student The calculation is illustrated below. The grade obtained by a student in quiz multiplied by the weight of the quiz (0.15) = a, The grade obtained by a student in midterm multiplied by the weight of the midterm (0.2) = b, The grade obtained by a student in exams multiplied by the weight of the exam (0.3) = = C, The grade obtained by a student in project multiplied by the weight of the project (0.35) = d, Weighted Average = a + b +c+d Format all output in columns. Align columns (L) using width in the printf function. DO NOT USE THE TAB. Note your calculation may have a round-off error. Example of the output: Weighted Avg Student B Quiz 84 76 Midterm 98 56 Exams 67 80 Projects 78 64 XXXXX XXXXX

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions