Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help on my assignment. The main menu should look like this: Java Credit Main Menu [1] New Credit Account [2] Credit Inquiry [3] Purchases

Please help on my assignment. The main menu should look like this: 
Java Credit Main Menu  [1] New Credit Account  [2] Credit Inquiry  [3] Purchases  [4] Payment  [5] Close Credit Account  [7] Exit


Below are the specifications:

  1. New Credit Account
    • Input the name of the client.
    • Input the annual income and assign the credit limit as follows: Annual Income Credit Limit 200,000 and above but not greater than 300,000 30,000 300,000 and above but not greater than 500,000 50,000 500,000 and above 100,000
    • Generate and display a random four-digit credit account number.
    • Display also the credit limit. The credit limit is the maximum amount of credit.
    • An annual income below 200,000 is not eligible for the credit.
  2. Credit Inquiry
    • Input the credit account number and validate.
    • If the credit account number is valid, display the credit account number, credit account name, credit limit and credit balance.
    • The credit balance is the outstanding balance or the total amount due.
  3. Purchases
    • Input the credit account number and validate
    • If the credit account number is valid, input the amount of purchases of not less than Php 1 and not greater than the credit limit and the allowable purchase amount.
    • Compute and update the credit balance and allowable purchase amount as follows:

Credit balance+=amount of purchases Interest=3% of credit balance Credit balance+=interest Allowable purchase amount = credit limit - credit balance

  • The allowable purchase amount is the difference between the credit limit and the credit balance. The credit balance should not exceed the credit limit.

4. Payment

  • Input the credit account number and validate
  • If the credit account number is valid, input the amount of payment of not less than Php 1 and not greater than the credit balance
  • Compute and update the credit balance as follows: Credit balance - = amount of payment

5. Close Credit Account

  • Input the credit account number and validate
  • If the credit account number is valid, confirm if the user wants to close the account.
  • If confirmed by the user, he should be required to pay all the credit balance before closing the account.
  • Otherwise, go back to the main menu.
  • It the account has been closed, the credit account should not exist anymore.

6. Exit

  • Terminates the program

7. All input values must be validated and must be required for re-entry of data when invalid.

8. The use of Exception for all input validations is required.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

1 New Credit Account For this option the program should prompt the user to input the clients name and annual income Validate the annual income to ensu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

What are some signs of dental disease?

Answered: 1 week ago