Write down an account class

Assignment Help Computer Engineering
Reference no: EM132480

Question

Write down an Account Class which represents a Saint Anselm College bank account with basic service such as deposits, interests and withdrawal. Each account will have a name, account number (randomly generated 4 digit number) and a balance. The program will have an interest rate of 1 percent. A person can open an account with some first deposit or no deposit.

Also, write down a driver program to test your Account Class. In driver program, make an account for yourself and two of your friends at Saint Anselm College. Store up each account in an array. The driver program has an interactive menu.

Interactive menu has six choices:

1. show all accounts

2. Create a deposit of $100 in your account

3. Create a Withdrawal of 20000 from your account (When you make a withdrawal check that the account has money. If there is no money print "Sorry your balance is less "+balance.)

4. Add Interest to your friend's account

5. Exit (use the command System.exit(0); )

 

 

Reference no: EM132480

Questions Cloud

Program on wireless connection technology : Program on wireless connection technology.
Explain why lumbar belts are not very effective : Briefly describe a good handling technique that could be adopted by a person required to lift a load from the ground Explain why lumbar belts are not very effective in preventing back injuries at work
Purpose the cash flows from the operating activities : Purpose the cash flows from the operating activities
Determine payout ratio and the return on common stock equity : Determine the payout ratio and the return on common stock equity.
Write down an account class : Write down an Account Class.
Outline work-related musculoskeletal risks : Outline four of the tools used in assessing work-related musculoskeletal risks
What is the balance in cartwrights capital account : What is the balance in Cartwright's capital account at the end of that year?
Utilize server manager to install dns role : Utilize Server Manager to install DNS role
Evaluate the npv of the given case study : Evaluate the NPV of the given case study

Reviews

Write a Review

Computer Engineering Questions & Answers

  Design a data structure which supports two operations

Design a data structure which supports two operations 1. Insert(S, x) inserts x into S. 2. Remove-Duplicates(S) removes from S all duplicated values.

  Examine the importance and purpose of of n-tier systems

Examine the importance and purpose of of n-tier systems

  Write down an assembly language program

Write down an assembly language program The product number from one to five (3 characters wide, right justified)

  Describe mutual strategy to maintain enterprise-level system

Describe mutual strategy to maintain enterprise-level system

  How to produce a wired and wireless network plan

How to produce a wired and wireless network plan

  How to create the clients by service rep report

How to create the clients by service rep report create mailing label for client table

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

  Find minimal cover and identify all possible candidate keys

Find minimal cover and identify all possible candidate keys - Functional Dependencies

  How to generate paper for pair of public or private rsa key

How to generate paper for a pair of public or private RSA keys? The high-class reporter for foreign affairs learned about asymmetric cryptography, and proposed to security team at the paper to generate for a pair of public or private RSA keys.

  How to expand class linkedlisttype

Expand class linkedListType. Write down a function that returns the info of the kth element of the linked list. If no such factor exists, output an appropriate message.

  Calculate average time in a linear search

Calculate average time in a linear search

  Create a white paper based on knowledge

Create a white paper based on knowledge

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd