Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSI 124 Programming III . Using the following data how to constract and display in the given list box using wpf window. Last Name Starting

CSI 124 Programming III . Using the following data how to constract and display in the given list box using wpf window.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Last Name Starting Balanc Saving Chacking Interest Rate Account Class Fields string id string firstName string lastName decimal balance Constructor Account(firstName, lastName, balance) Use random to generate a unique id between 100000 and 1000000 in the constructor Properties Id { get; } CustomerName \{get; set; } Balance { get; protected set; \} Methods public virtual void Withdraw(decimal); - withdraws the amount from balance - Validate if amount is a postive number public virtual void Deposit(decimal); - Deposits the amount in balance. - Validate amount is a positive number override ToString() return a string that shows the type of account ( using GetType()) the fulle name and balance of the account Format the balance with the ToString("c") formatter Field decimal interest Constructor SavingAccounts(firstName, lastName, balance, interest) Properties Interest { get; set; } Methods public void Addlnterest(): - When called, adds interest amount to balance Field decimal overdraftFee Constructor CheckingAccount(firstName, lastName, balance, overdraftFee) Properties overdraftFee { get; set; } Methods public override void Withdraw(decimal) - Validate for negative amount - Validate if amount is more than in the balance - If the amount is more than the balance, don't withdraw the money. Instead remove the overdraft fee

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

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

=+ What skills and competencies will enable someone

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago