Home /
Expert Answers /
Computer Science /
what-are-the-codes-dor-total-debt-nbsp-riley-certainly-found-some-great-investorsl-these-investors-pa460
(Solved): what are the codes dor total debt? Riley certainly found some great investorsl These investors ...
what are the codes dor total debt?
Riley certainly found some great investorsl These investors have vision, and they have the financial resources to make a difference. Some of Riley's investors are very problematic from a risk perspectivel Too often these problematic investors are excited about Riley's business but simply don't have the financial resources to be a serious investor. Some of them simply don't have enough assets. Some of them just have too much debt. While others don't have enough income. There may even be investors with both debt and income issues. Riley determined that she needs a tool to qualify these investors. This tool needs to determine if they have enough of the financial resources to be a serious investor. The requirements Riley identified include the following: Investors must have enough assets; Investors will need to have low enough debt; Investors will need to have income to be a serious investor. Riley would like you to develop this tool. This program will be similar to the other programs that you have written for this class, the main program and the function declarations are provided. Your job will be to write the code inside the functions to solve the problem (you will need to write three functions). These three functions are: totalAssets() - The totalAssets() function will not bi. passed any parameters. It will prompt the user for the number of assets that the user has (i.e., bank accounts, investment accounts, etc.) and will then use a "for" loop to prompt the user for the value of each of these assets will keep a running total of these assets. The function will return the total value of all assets. Make sure that your loop prompts users for at least their top three assets; however, we wouldn't recommend asking for more than five assets. totalDebt() - The totalDebt() function will not be passed any parameters. Unlike the totalAssets() function, totalDebt() will not use a "for" loop. totalDebt() will prompt the user for the value of each debt the user has and will continue asking for the value of the next debt until the user enters a value of " 0 ". totalDebt() will keep a running total of debt and when the user enters a debt of " 0 " the function will return the total debt. calculatelnvestorRanking(investmentAmount, annualincome, assets, debts) - calculatelnvestor Ranking() is passed four parameters. These four parameters are: investmentAmount-Represents the amount of the proposed investment. For smaller investment, the investor will not need the same type of financial resources as for larger investments. This is provided in the main program. annualincome - Represents the annual income of the prospective investor. This is provided in the main program.
II Insert your code between here and the next conment block. Do not alter II II any code in any other part of this file. let totatvalue0fbebt \( =0 \) tet debtcounted \( =1 \) white \( 1 \uparrow \) totatvatue0 roebt = totatvatueordebt + IndividuatoebtVatue individualusbetvalue \( = \) parseint(prompt('What is the vatue of debt ' \( + \) debtcounted+ \( + \) ' 7 ')) 2 3 return.