Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that asks users for their quiz scores, homework scores, midterm

ID: 3643964 • Letter: W

Question

Write a program that asks users for their quiz scores, homework scores, midterm scores, lab scores, and if they choose to, their final exam score From this the program calculates their class grade. If the user does not wish to include a final exam score then the total will be out of 80%. The program will read the number of tests, assignments, labs, and quizzes as command line inputs and then read the specific number of grades for each by prompting the user for the correct number of items. The user can supply these grades in any order. There are 5 quizzes, 8 homework assignments, 10 labs, and 2 midterms. The user may also choose to input their final exam score. The program should determine the average based on the following weights for each item which should be declared as constants.
Labs = 10%
Quizzes = 15%
Assignments = 25%
Exams = 30%
Final = 20%

Explanation / Answer

#include /*Assuming that all the test scores are out of 100 , if they arent please change 100 to that respective number and everything will work fine , but in evaluating the average you have to calculate the waited mean */ /* the grades obtained in each test depends on the system followed in granting grades for a particular score so the grades cud be given by taking that criteria into considering (sum/max) an example for grade distribution is followed in this program */ int main(){ double final = 0.0, gpa = 0.0 ,sumq =0.0 ,maxq = 0.0,avgq=0.0 ,quiz[5] , suml =0.0 ,maxl = 0.0 ,avgl=0.0, lab[10] , suma =0.0 ,maxa = 0.0 ,avga=0.0, assgn[8] , summ =0.0 ,maxm = 0.0 ,avgm=0.0,midterm[2] ; int i =0,check=9999 ; //taking scores from students printf(" please Enter your 5 Quiz Scores in order "); //printf(" please Enter Max. Quiz Score "); //scanf("%d",maxq); for(i=0 ; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote