subject

Scenario: You are to build a Java application that will implement the daily business of a small loan company, Midwest Loan. This company makes loans to individuals and allows those individuals to pay off those loans with monthly payments. They offer low-interest rates but do not allow early loan re-payment (i. e., each month’s loan payment will be the same).

Overall Program Usage Requirements:
• Your program will use a Menu system. The user will be a Loan company employee (you will not need a login, etc.). Using the menu system, the employee should be able to do the following major tasks all from a main menu:

1) Add a loan customer. This is a new customer who has taken out a new loan. Your application should be able to create as many new customers as the employee using the system wants.
2) Print the loan amortization table for any user stored in the system. Once this menu item is selected, the employee will see a list of all customers, then be prompted to enter a UserID to print the table for.
3) Exit the application.

Detailed requirements for each menu option:
Adding a Loan Customer:
• Your application should allow the employee to create as many new customers as needed. Remember that loan customers will NOT be using this system, only employees.
• Each new customer should have a unique ID number. Use an int to accomplish this.
• You will store the customer ID number, first name, last name, address, cell phone number, and age in a two-dim String array.
• You will store the customer ID number, loan amount, and loan interest rate (as a #.# number), and desired monthly payment amount in a two-dim double array.
o Notice that the idea here is that these two arrays "sync" up. The first customer in the information array corresponds to the first customer in the loan info array, and etc. HINT: Matching the String version of the customer ID and the double version in the loan array will take a little thought!
• You will have to collect this information from the console when the employee chooses to create a new customer.

Print the loan amortization table for any user stored in the system:
• You will print to the screen the customer IDs and Customer Name of each customer stored in the system if this menu option is used. The employee can then type in a number and hit enter, and the full loan amortization table will print for that customer. The application will then return to the main menu.
• After the employee enters a customer ID your code should behave in the following order:
1) First, you will invoke a method that you will create called loanLength( ). This loan will return back an int representing the number of months of the life of the loan. For example, some loans principals and monthly payments mean they will be done in 60 months, some in 72 months, etc. Your method will loop and simulate the loan and the monthly payments, counting the months until the balance reaches 0, then returns back that number of months of the life of the loan. You will need to pass some data to the method through its parameters for the user chosen so it can do this! I will let you decide what and how this data is passed.
2) Once you have the "life" of the loan in the number of months, create a new two-dim array who number of rows is the number of months in the loan. Populate/fill the columns of the two-dim array with each month’s information: Balance, interest on that balance for that month, monthly payment, new balance. The company calculates the new ending balance for that month as:

(current balance + interest accumulated) – monthly payment You are basically saving the amortization table into the two-dim array!

3) Once you have the two-dim array populated, pass it as a reference to a method called printAmortTable( ). The method will have a void return type. The method’s purpose is to print a professional looking amortization table using the information in the two-dim double array you pass to the method through its parameter. Use your .printf().
4) Once the overall printing is done, the program returns to the main menu.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 24.06.2019 18:50
Write a program that reads in a series of lines of input character by character (using the library function the first line of the input contains an integer which specifies the number of remaining lines of input, each of which contains a floating point number. the integer value on the first line can be read with (the library function) but all of the following lines can only be read with each line, after the first, contains a single floating point value, with up to four digits before the decimal point, and up to four digits following the decimal point, but there is not necessarily a decimal point in each number; i.e., it may appear to be an integer, but the digits should be read by your program, and the number should be converted to a corresponding floating point number. for instance, suppose the following input: 5 3.1255 20.25 0.875 1921.50 31 the required output is: − each of the input floating point values, printed on a separate line with four digits of precision, using printf(); − on the last line of the output, the string “total: ” followed by the sum of the input values, printed with printf() to 4 digits of precision. for example, the total of the sample input given above is 1976.7505, so the required output for this input would be: 3.1255 20.2500 0.8750 1921.5000 31.0000 total: 1976.7505 do not concern yourself with small differences in the total due to rounding, as the grader will not deduct points for this. constraints: − you are not allowed to use arrays on this portion of the lab assignment. − there is no maximum number of lines allowable. it all depends upon the first value of input. since you aren’t saving anything, it doesn’t matter. − you can assume that input will not contain more than 4 digits before or after the decimal point. you do not need to error check for this condition. -you must use getchar() to read in the floating point values one character at a time (i.e. do not use -you must declare and use your floating point values as a double to minimize rounding errors. -only use printf() to output the floating point numbers and the total (do not use − be sure your directions to the user are clear so they are sure to enter the input data correctly.
Answers: 1
You know the right answer?
Scenario: You are to build a Java application that will implement the daily business of a small loan...
Questions
question
Health, 26.01.2021 18:50
question
History, 26.01.2021 18:50
question
Mathematics, 26.01.2021 18:50
question
Mathematics, 26.01.2021 18:50
question
Mathematics, 26.01.2021 18:50
question
Mathematics, 26.01.2021 18:50
Questions on the website: 13722367