Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 6 Write your own design and code Your supervisor asked you to review the Bank system containing the class CustomerAccount with the following requirement:
Question 6 Write your own design and code Your supervisor asked you to review the Bank system containing the class CustomerAccount with the following requirement: - One integer data member accNum with private access modifier - One double data member balance with private access modifier - One constant named HIGH_CREDIT_LIMIT =80000.00 To enhance the module, your team needs to include the robustness element in this module such as: a. Write a user-defined exception, HighBalanceException that extends Exception. Its constructor contains a single statement that passes a description of an error to the parent Exception constructor. This String would be retrieved if you called the getMessage() method with a HighBalanceException object. 5m b. Create a method named customerAccount (int num, double bal) that will throw HighBalanceException if user balance exceeds than the high credit limit. 10m Based on the requirement above, you need to 1. Design your forms 2. Write your code
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