Problem:
Question 1- Write code in C++ that lets the user enter a number. The number should be multiplied by 2 and printed until the number exceeds 50. Use a while loop.
Question 2- Create a class called TestScores that encapsulates a vector of floating point numbers that represents a list of student scores. Provide the following: A default constructor An overloaded constructor that accepts an array of floating point numbers and an integer size (of the array). The array will contain a list of scores that TestScores will copy to its underlying vector. This constructor should make use of the addScore method that is defined below. A method called addScore that accepts a floating point score that will be added to the vector. Make this method throw a custom NegativeScore exception. Define NegativeScore within TestScores. A method called getAverage that returns the average of all the scores in the vector. A method called getLetterGrade that returns the class average in letter form.
Show the code, demonstrate it works properly and describe what it is doing.