Problem:
Question 1: Write the necessary c++ code segment to declare an array size 50 to store objects of type rectangleType and prompt user to enter 50 rectangle dimensions and store them in the array.
Question 2: Write the necessary c++ code segment to declare a vector to store objects of type rectangleType and prompt user to enter 10 rectangle dimensions and store them in the array.
Please describe the code of the program with comments.