Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Activity Objectives: At the end of this activity, you should be able to: define classes and methods implement polymorphism and inheritance instantiate an object array
Activity Objectives:
At the end of this activity, you should be able to:
define classes and methods
implement polymorphism and inheritance
instantiate an object array
apply Exception to all input validations
create a Java application for multiple users
What to Prepare for the Activity:
NetBeans IDE or higher version
JDKJava Development Kit or higher version
Procedure:
Create a NetBeans project for this activity. The project name should be as follows:
Project Name: CSJavaCredit
Example: CSJavaCreditBlancoMaria
The class names to be created are the following:
o Client the main class that contains the main method and the implementation of the main menu
o Credit the class where attributes and methods are defined
All class names must be suffixed with your last name.
o Client Ex ClientBlanco
o Credit Ex CreditBlanco
Note that the object to be instantiated in the main method is an object array.
For example: CreditBlanco cb new CreditBlanco ;
Only NetBeans project will be accepted.
Java Credit Main Menu
New Credit Account
Credit Inquiry
Purchases
Payment
Close Credit Account
Exit
Program Specifications:
New Credit Account
Input the name of the client.
Input the annual income and assign the credit limit as follows:
Annual Income Credit Limit
and above but not greater than
and above but not greater than
and above
Generate and display a random fourdigit credit account number.
Display also the credit limit The credit limit is the maximum amount of credit.
An annual income below 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 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 balanceamount of purchases
Interest of credit balance
Credit balanceinterest
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 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.
Exit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started