C++ code please asap QUESTIONS Write the test main function as described next. This function is…

C++
code please asap

QUESTIONS Write the test main function as described next. This function is NOT a member function of either of the two classes above. It is located in separate source file. Create an array of type Flight and size 10 1. Prompt the user to enter values for speed, name, and id for all 10 objects. You must use the overloaded input stream operator of class Flight. 1. Write the value of the name variable of all Flight objects to a binary file called flights.bin. Hint: name is a string therefore, you will need to write the length of the string before writing the characters of name