Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read Carefully: 1) This is an individual project; you must solve it by yourself. Any form of plagiarism will result in receiving 0 in the

Read Carefully: 1) This is an individual project; you must solve it by yourself. Any form of plagiarism will result in receiving 0 in the project. 2) Late submission will not be accepted. Any project submitted after the cutoff time will receive zero. 3) This project has to be submitted online via the Blackboard, The subject line of your email message should be as the following form: StudentName_StudentID_COS102 You will be given 10 minutes to demonstrate your project. College of Applied Computer Science, King Saud University COS 102 Project Objective Learn how to use and implement the concept of Inheritance (which supports reuse) interface, abstract classes, composition, exception and File I/O. Program Description The purpose of this project is to design a simulation of Bank website. The Bank website is used by the users of the bank branch. Each branch has users. Each user also has one account only, a user name, balance (default value 0.0), number and a personal identification number (PIN). In this simulation, the user will need to type the PIN as identifier. There are three types of users: User has an open normal account: can withdraw and deposit any amount of money; and can inquire about the balance User has a controlled account: can withdraw maximum 2000 SR per day and deposit any amount of money User has a restricted account: can withdraw maximum 500 SR per day and deposit any amount of money Note: In any case you cannot withdraw if the balance less than the amount of withdraw. You must display the following menu to the user: ------------------------------------------------------------------------------------------------------------ Welcome To the bank website ------------------------------------------------------------------------------------------------------ ----- 1. Create account 2. Exit from website Enter Your Choice:

College of Applied Computer Science, King Saud University COS 102 Project According to user type, show all possible operations 1. Deposit 2. Withdraw 3. Balance 4. Transfer 5. Return to main menu Enter Your Choice: You must have the following in your program: (a) Abstract user contains balance, abstract withdraw method and constructors. (b) Interface FreeDepositAndInquiry contains void method deposit (double) , void Transfer(double) and double getBalance(). (c) Interface LimitedDeposit contains void method deposit(double) class (d) Class NormalAccount: is a subclass from user implements the interface FreeDepositAndInquiry. This class represents the user that has an open normal account. (e) Class ControlledAccount: is a subclass from user implements the interface LimitedDeposit. This class represents the user that has a Controlled account. (f) Class RestricteAccount: is a subclass from user. This class represents the user that has a restricted account. (g) The program must provide a way for saving user and account information and history in text file.

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions