Question: hello can someone please explain this, thanks in C ++ Part A (79 points) Algorithm solution (in pseudocode): 1. Declare variable inFile to get the
hello can someone please explain this, thanks
in C ++

Part A (79 points) Algorithm solution (in pseudocode): 1. Declare variable inFile to get the data from an input file 2. Declare a named constant MAX 100 3. Declare an array of strings named name that holds up to MAX elements 4. Declare an array of whole numbers named grade that holds up to MAX elements 5. Declare variables quantity, x, avg, and sum (initialized to zero) that hold whole numbers 6. Open file indata3.txt 7. Check if the file was opened (if not opened, show an error message and stop the program) 8. Set x to 0 9. Read a name and a grade from the file and assign them to namex] and grade[x] respectively 10. While (not-end-of-file) 11. Increment x 12. Read a name and a grade from the file and assign them to name[x] and grade[x] respectively 13. Print "Enter quantity of grades to be processed (0-, x, "): " 14. Read a value from the keyboard and assign it to quantity 15. For (x-0 to quantity-1) 16. Acumulate grade[x] in sum 17. Assign to avg the value returned by average (sum, quantity) 18. Print "Average grade: ", avg 19. Print "Name", "GaComment 20 For (x 0 to quantity-1) 21. Print), name[x], grade[x] 22. If (grade[x]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
