Provide the whole above code in a proper box then explain what u did in the above code and recheck all the code for any error or bugs if there fix them then give corrected code