Please explain each and the output and make a program on: Java program with the following specifications The class names to... Java program with the following specifications The class names to be created are the following: Client (the main class that contains the main method and the implementation of the main menu) Credit (the class where attributes and methods are defined) *Note that the object to be instantiated in the main method is an object array. For example: Credit [ ] cb = new Credit [100]; New Credit Account Input the name of the client. Input the annual income and assign the credit limit as follows: 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,00 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. 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. 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. 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 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. If the account has been closed, the credit account should not exist anymore. All input values must be validated and must be required for re-entry of data when invalid. The use of Exception for all input validations is required. Java Credit Main Menu [1] New Credit Account [2] Credit Inquiry [3] Purchases [4] Payment [5] Close Credit Account [6] Exit

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Please explain each and the output and make a program on: Java program with the following specifications The class names to... Java program with the following specifications The class names to be created are the following: Client (the main class that contains the main method and the implementation of the main menu) Credit (the class where attributes and methods are defined) *Note that the object to be instantiated in the main method is an object array. For example: Credit [ ] cb = new Credit [100]; New Credit Account Input the name of the client. Input the annual income and assign the credit limit as follows: 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,00 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. 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. 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. 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 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. If the account has been closed, the credit account should not exist anymore. All input values must be validated and must be required for re-entry of data when invalid. The use of Exception for all input validations is required. Java Credit Main Menu [1] New Credit Account [2] Credit Inquiry [3] Purchases [4] Payment [5] Close Credit Account [6] Exit
Expert Solution
steps

Step by step

Solved in 5 steps with 7 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education