I need help with C++ homework. Could you keep it really basic due to me being very new to this. Thank you in advance!
Description In your program, you will have the user enter what percentage improvement in rocket speeds (up to but not exceeding light speed) each year. Your program will then ask the user the maximum number of years that they are willing to wait on earth before they leave. Use while loops in this step to implement simple error checking by asking the user repeatedly until they give a valid input. Percentage must be somewhere between 0 and 100 and the years waiting must be a positive integer Next, your program will generate a table using a for loop. That table will have four columns with one row for leaving immediately followed by one row for each year the user is willing to wait. The first column will contain the departure year The second column contains the rocket speed that rockets will be able to achieve that year. The new rocket speed each year is calculated with this equation: improvement velocity = velocity + (lightspeed-velocity) * The third column will contain what year it will be on Earth when you arrive on the distant planet if you were to leave at the start of the current year. The last column has the perceived year that you will arrive on the distant planet using the Lorentz factor that takes into account the fact that, since it was traveling so quickly, less time has passed on the rocket. While making these calculations, be sure to keep in mind that the Lorentz equation you implemented in assignment one uses km/s while this program outputs times in years. All columns besides the first should display to two decimal aces Finally, you will need to output a message letting the user know what year they should leave in to arrive on the distant planet as early as possible. This message also lets the user know what time they will arrive as well as what time it will be on earth when they arrive. In order to accomplish this you will need to extend the table generating code so that it also stores and updates variables to keep track of smallest (soonest) perceived year and its associated departure year