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

  Describe mutual strategy to maintain enterprise-level system

Describe mutual strategy to maintain enterprise-level system

  Data representation and logic

Representing Text and Numbers, Binary Arithmetic, Interpreting Logical Statements, Logic Puzzle, Binary and Algorithms.

  How to plan a payroll class

How to plan a PayRoll class.

  How a box of caramel delites girl scout cookies

How to a box of Caramel deLites Girl Scout cookies Every spring you looking forward to buying a box of Caramel deLites Girl Scout cookies

  Illustrate precedence graph

Illustrate precedence graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  How to write a program to check the collision

How to write a program to check the collision Write down a java program to check if they will collide or not. If they are going to collide print a message that 'The crafts will collide at (x,y)' where co-ordinates (x,y) are on Map as points of co..

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  How many address lines are needed to access memory

How many address lines are needed to access memory.

  Which method allow channel to synchronization sequence

Which method allow channel to synchronization sequence? Discuss the trade-offs between fibre optic and satellite communication in terms of costs, signal capacity, signalling method, interference, likelihood of failure and repair issues, multipoin..

  Application to computer science

Find the matrices that represent the relations.

  Problem on encryption using a one-round version of des

Problem on encryption using a one-round version of DES.

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