PART 1 : Create a class named StudentGrade. Include fields for student ID number, last name, numeric test score, possible points and letter grade. Create a constructor that requires the student ID, name and test score and allows a fouth parameter that holds possible test points. If a value for a possible points is not passed to the constructor, the possible points valve defaults to 100. ( if a 0 value is passed for possible points, force possible points to be 1 so that you do not divide by 0 when calling calculate grade). The constructor calculates the student's percentage (divides score by possible points) and assigns a letter based on : 90% and above (A) , 89% to 80%(B),79% to 70%(C),69% to 60%(D),and 59% to 0% (F). Create a main() program that instantiates and displays enough StudentGrade objects to test a variety of scores and possible point values.
PART 2: Write a C++ program, which has an interger array of 24 elements . The program will call a function init, which will then call a function calc, which will find the largest value of that array and exhange it with the first element. Lastly, main () will print out the array. Both functions will have two parameters, the array itself and the number of elements in the array.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
Please use MS V C++