Question: I need help refactoring this code. I need to take the parts that are all under main and make separate functions. PLEASE use call-by-reference when

I need help refactoring this code. I need to take the parts that are all under main and make separate functions. PLEASE use call-by-reference when possible! Here is a list of the different functions: menu, type of flight, route, wind speed, and final display. After refactored I need to add a random number generator using srand and have it be displayed as the flight ID: this number must be five digits long from 00001-99999. All of the leading zeros must be printed. Thanks  I need help refactoring this code. I need to take the
parts that are all under main and make separate functions. PLEASE use
call-by-reference when possible! Here is a list of the different functions: menu,
type of flight, route, wind speed, and final display. After refactored I

.projectluseOldcpp X|man.cpp include #include domanip> using namespace std: int main) Variables int speed 0, wind = 0, flight , hour 0 minute 0 float distance = o.oof, time 0.00f; string destination: // User Input cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!