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

Question : Create a C++ Program using array to come up with this output shown in

ID: 3732120 • Letter: Q

Question

Question:

Create a C++ Program using array to come up with this output shown in the fingure.

1.You must type in your score for each assignment, must be read into an array.

2. You must calculate a grade for each assignment, below is example of how output should look like.

3. You must create a total line at the bottom with your total score, total points, and calculate your overall general grade for the class.

This is how output should look like:

Please No HARDCODING please USE ONLY ARRYS, IF,ELSE AND STRING FUNCTIONS.

hdr Assignment Your Score Total Score Letter Grade 20 10 30 30 50 100 100 50 390 20 10 15 uiz 1 uiz 2-etc Lab 1 Lab 2-etc Midterm 1 Midterm 2 Final 1 Final 2 Total 0 0 0 45 Ftr Eof

Explanation / Answer

#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main() {
  
    int i,j,a[8],b[8],z=0,f=0,total=0,total2=0;
    char c[8],g;
    for(i=0;i<8;i++)
    {
        cin>>a[i];
        total=total+a[i];
    }
    for(i=0;i<8;i++)
    {
        cin>>b[i];
        total2=total2+b[i];
    }
    for(i=0;i<8;i++)
    {
        if(a[i]>(b[i]/2))
        {
            c[i]='A';
            z++;
          
        }
        else
        {
            c[i]='F';
            f++;
        }
    }
    if(z>f)
    {
        g='A';
    }
    else
    {
        g='F';
    }
  
    printf("|ASSIGNMENT | your-score| total-score | letter-grade | ");
    printf("___________________________________________________________________ ");
    for(i=0;i<8;i++)
    {
        printf("|    TEST%d    |    %d    |    %d    |    %c    | ",i,a[i],b[i],c[i]);
        printf("___________________________________________________________________ ");
    }
  
     printf("| total    |    %d       | %d    |    %c    | ",total,total2,g);
  
   // your code goes here
   return 0;
}

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