Trying to create a Raptor flowchart.
A finance company provides loans for motorcycles at differentrates depending on how much the total loan amount is and how manypayments will be made on the loan. Using the information in thetable below, write a program that will calculate the monthlypayment based on user inputs of loan amount and number of monthlypayments. The user will NOT input the percentage rate, as this willbe determined by the program code based on user input of loanamount and number of payments. The output will display the loanamount, number of payments, monthly payments and the interest rateof the loan. Use a loop to allow users to enter as many sets ofdata as desired. At the end of each loop, ask the user if he or shewould like to Continue the program (Y for Yes or N for No). If yes,clear the variables and repeat the input, processing and outputloop. If no, exit the program. NEVER call “main” from inside yourprogram. Use a loop that keeps your program running. ProblemStatement Amount of Loan # of Payments Interest Rate Applied $500 -$ 2,500 6-12 8% 13-36 10% 37-48 12% $2,501 – $10,000 6-12 7% 13-368% 37-48 9% $10,001 or above 6-12 5% 13-36 6% 37-48 7% If the userenters data that is “out of bounds” (loan amount/number of paymentsbelow or above minimum/maximum in table), display an error messageexplaining the situation to the user and ask for the loan amount ornumber of payments (whichever one was out of bounds) again. MessageExample: “We do not finance loans below $500.” You MUST use ModularProgramming techniques by using Sub Modules (Sub Charts in RAPTOR)in your program. Your “main” module should not be very large.Again, NEVER call “main” from inside your program. Also, do not use”recursion” in this program (submodules that call themselves). Youare only allowed to use looping techniques to repeat sections ofyour submodules.