CSC113_Tutorial7 - SavingAccount(p:SavingAccount...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011, February 21, 2011 Tutorial #7 : Interface and Abstract classes A Bank Maintains two type of accounts for the customer Service, which is saving and current account. 1. Saving Account: The saving account minimum balance is 300SR. If the balance goes less than the minimum balance than a bank will charge 5% of minimum balance as deduction for every month. 2. Current Account: The Minimum balance of this account is 500SR. This minimum balance should be maintained and the customer cannot take money. If the balance in the account is 500SR { Interface} BankCharges +bankcharge():double +display() : Void Bank #Cusid:int #Cusname:String +Bank(ids:int,sname:String) +Bank(s:Staff) +Display():void SavingAccount +SavingAccount (Cids:int,Cname:String)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: + SavingAccount (p:SavingAccount) +BankCharge:double CurrentAccount CurrentAccount (Cids:int,Cname:String) + CurrentAccount (p: CurrentAccount) +bankCharge:double King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011, February 21, 2011 Tutorial #7 : Interface and Abstract classes Write a Java Program to implement the class Bank, Savingaccount and CurrentAccount and main class. Calculation: Saving Account: If the account balance is less than 300 than less 5% every month from the account Current Account: The minimum amount is 500, if the balance is 500 than give a message u don’t have sufficient balance in your account to withdraw. Write a main class to show the calculation by calling the methods of Classes....
View Full Document

This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Page1 / 2

CSC113_Tutorial7 - SavingAccount(p:SavingAccount...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online