Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

More Books

Students also viewed these Databases questions

Question

Pollution

Answered: 1 week ago

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago

Question

Explain the testing process of accounting 2?

Answered: 1 week ago