This is a c++ code please follow all the instructions and constraints
Your friend has asked you to help them with a project. He needs to calculate his grades, but is finding it difficult to operate a calculator (too hard). Create a program which will accept an unlimited num- ber of scores and calculates the average score. You will also need to prompt for the total points possible.
Use a dynamically allocated array to handle an unlimited number of test scores.
Create a Grade class which holds the test score and the letter grade. Use an assert to protect the letter grade by not allowing negative scores.
Create a simple menu: 1 – help, 2 – enter grade, 3 – quit. Use char user_menu; for menu input. If incorrect value entered, display the value in the error message (ie, 4 is not a valid input).
When quitting, display the sorted list of scores and average with appropriate headings.
Constraints.
Comment your code with the constraint number above the bulk of the code implementing the constraint – so I can find it. Like this:
// Constraint 1 – No negative numbers.
Just comment the bulk of the code if code for that constraint ap-
pears in several places.
1. Do not accept negative numbers for test scores.
2. Use new() and delete() to properly handle your array. 3. Write a text file containing the grade summary.
4. Use Object Oriented Programming techniques.
5. Don’t forget the constraints from homework 1.