QuestionQuestion

Write a program the meets the conditions as described below. You will need to display a menu of options that the user can choose from. Also be sure that your code included comments.

The menu can be constructed as something similar to the below example:

Welcome to Financial Program                                    
1.   Compare Loan Rates   
2.   Print Shapes

For Option 1, construct a program that lets the user enter the loan amount and loan period in number of years, and displays the monthly and total payments for each interest rate starting from 5% to 8% with an increment of 1/8. Supposed you enter the loan amount 10,000 for five years; display a table as follows:
Loan Amount: 10000
Number of years: 5
Interest Rate               Monthly Payment                      Total Payment
5%                               188.71                                           11322.74
5.125%                        189.28                                           11357.13
5.25%                         189.85                                           11391.59

7.875%                        202.17                                           12129.97
8.0%                            202.76                                           12165.84

For Option 2, display the following shapes automatically, when this option is chosen from the menu: The total max value should be entered by the user. This example max is 6
Pattern1                                                         
1                                                                                 
12                                                                                 
123                                    
1234                                 
12345                              
123456                           
Pattern 2
123456
12345
1234
123
12
1

Pattern 3
1
21
321
4321
54321
654321

Pattern 4
123456
12345
1234
123
12
1

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

public static void main(String[] args) {
      
       Scanner console = new Scanner(System.in);
       int selction = 0;
      
       System.out.println(" Welcome to Financial Program \n" + "1.   Compare Loan Rates    \n" + "2.   Print Shapes");
       System.out.print("--> ");...

By purchasing this solution you'll be able to access the following files:
Solution.java.

$22.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats