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

Can someone please help me with creating an algorithm and FLOWCHART for this pro

ID: 3706864 • Letter: C

Question

Can someone please help me with creating an algorithm and FLOWCHART for this program? C++ only, please.

images attached. Thanks so much will give a good rating.

PLS DON'T GOOGLE IT!

10. Driver's License Exam The local Driver's License Office has asked you to write a program that grades the written portion of the driver's license exam. The exam has 20 multiple-choice ques- tions. Here are the correct answers: 16. C 1. A 2. D 3.? 4, B 5. ? 6. B 7. A 8. B 9, C 10. D 12. C 13. D 14. B 15. D 18. A 19. D 20. B Your program should store the correct answers shown above in an array. It should ask the user to enter the student's answers for each of the 20 questions, and the answers should be stored in another array. After the student's answers have been entered, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions. Input Validation: Only accept the letters A, B, C, or D as answers.

Explanation / Answer

#include<iostream>
using namespace std;
int main()
{
char studans[20];
int incorr[20];
int i,j=0,k=0;
  
char actualans[20]={'A','D','B','B','C','B','A','B','C','D','A','C','D','B','D','C','C','A','D','B'};
  
cout<<" Enter the Students Answer: ";
for(i=1;i<=20;i++)
{
cout<<" Enter answer of "<<i<<" question: ";
cin>>studans[i];
if(studans[i] != 'A' && studans[i] != 'B' && studans[i] != 'C' && studans[i] != 'D')
{
cout<<" Please enter correct options [A,B,C,D]...! ";
i=i-1;
}
}
for(i=0;i<20;i++)
{
if(studans[i]==actualans[i])
{
j=j+1;
}
else
{
incorr[k]=i;
k=k+1;
}
}
if(j>15)
{
cout<<"Student has Passed the exam..!";
}
else
{
cout<<"Student has Failed the exam..!";
}
  
cout<<" Total number of correctly answered question:"<<j<<" Total number of incorrectly answered question:"<<k;
cout<<" list of incorrectly answered question: ";
for(i=1;i<=k;i++)
{
cout<<"Question:"<<incorr[i]<<" ";
}
  
return 0;
}