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

Reads in the following dataitems: Last Name First Name ID # 3 Test Scores Stores

ID: 3618965 • Letter: R

Question

Reads in the following dataitems:

Last Name

First Name

ID #

3 Test Scores

Stores data in arrays and sorts thestudents alphabetically

Do not use any globalvariables, this means that you will pass information betweenfunctions using their argument and return value.

Calculates average and grade (testsare weighted equally and standard letter grades apply)

Displays

Student list including all items in1 above and grade

Table showing number of As, Bs, Cs,Ds, and Fs by test

Both displays should include headerlines

Should have functions for 1, 2, 4,5a, 5b and main

Use proper indenting, and supplycomments

ExampleOutput

Last Name First Name Id Test 1 Test 2 Test3 Grade

Ant Adam 56789 65 72 68 D

Doe Jane 67890 54 64 52 F

Mix Tom 45678 98 83 74 B

Nerd Bobby 12345 95 96 99 A

Sunday Billy 34567 75 65 82 C

Thumb Tom 23456 87 93 77 B


Frequency

Test A B C D F

1 2 1 1 1 1

2 2 1 1 2 0

3 1 1 2 1 1

Explanation / Answer

please rate - thanks #include using namespace std; int input(string[],string[],int[],int[],int[],int[]); void sort(string[],string[],int[],int[],int[],int[],int); voidprint(string[],string[],int[],int[],int[],int[],char[],int); void swap(string&,string&); void swap(int&,int&); char letter(int,int,int); char let(int); void frequency(int[],int,int); int main() {string last[20],first[20]; int id[20],t1[20],t2[20],t3[20],n,i; char grade[20]; n=input(first,last,id,t1,t2,t3); sort(first,last,id,t1,t2,t3,n); for(i=0;i