Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Requirement:
- A private int data field named accountNum for the account (default 0).
- A private string data field named accountName for the account (default "none").
- A private double data field named balance for the account (default 0).
- A private int data field named numTransactions that will count the number of deposit and withdraw transactions made to an account.
- A private Date data field named dateCreated that stores the date when the account was created.
- A no-arg constructor that creates a default account.
- A constructor that creates an account with the specified account number and name.
- The accessor and mutator methods for account number, name.
- The accessor method for balance and dateCreated.
- A method named withdraw that withdraws a specified amount from the account.
- A method named deposit that deposits a specified amount to the account.
- A method named displayAccountInfo that displays all the information in the Account object.
- A method named combine that takes another Account object as an argument and adds up balances and number of transactions to current Account object.
"Test.java" and below output is expected:
Account num: 1122
Account name: my checking account
Balance: 1100.0 USD
4 transactions since created at Thu Jul 06 12:55:20 PDT 2023
Account num: 1133
Account name: my savings account
Balance: 12000.0 USD
2 transactions since created at Thu Jul 06 12:55:21 PDT 2023
Account num: 1190
Account name: my all money at the bank
Balance: 13100.0 USD
6 transactions since created at Thu Jul 06 12:55:20 PDT 2023
Account name: my checking account
Balance: 1100.0 USD
4 transactions since created at Thu Jul 06 12:55:20 PDT 2023
Account num: 1133
Account name: my savings account
Balance: 12000.0 USD
2 transactions since created at Thu Jul 06 12:55:21 PDT 2023
Account num: 1190
Account name: my all money at the bank
Balance: 13100.0 USD
6 transactions since created at Thu Jul 06 12:55:20 PDT 2023
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Create a module for username validation. This module must meet the following acceptance criteria: • The username must contain a minimum of 6 characters and a maximum of 12. • The username must be alphanumeric . • Username with less than 6 characters, returns the message "Username must contain at least 6 characters". • Username with more than 12 characters, returns the message "Username cannot contain more than 12 characters". • Username with non-alphanumeric characters, returns the message "Username can contain only letters and numbers". • Valid username returns True.arrow_forward3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)arrow_forwardA web form includes a field with the id numberGuests into which the user is instructed to enter a number between 20 and 200. If the checkValidity() method returns false when called on this field, _____. a. you should check the values of thevalidity.rangeOverflow,validity.rangeUnderflow, andvalidity.typeMismatchproperties for the field to determine why it is invalid b. you should check the values of the validity.tooLong, validity.tooShort, and validity.stepMismatch properties for the field to determine why it is invalid c. then you know that the validity.valid property for this field will evaluate to true d. this means that it is not necessary to perform further validation on the fieldarrow_forward
- Write a statement that declares a procedure-level Employee variable named hourly. The statement should also instantiate an Employee object, storing it in the hourly variable.arrow_forward$1:Automated tracking of changes made to data, associating the change with a specific user is an input control.S2:Comparison of individual transactions to previously recorded transactions to previously recorded transactions to match fields is a processing control. A. Both Statements are trueB. Only the first statement is trueC. Only the second statement is trueD. None of the statements are truearrow_forwardUsing pictue below use the requirements to code and make the brick breaker game: 1. Score needs to visible and updated as the game plays. 2. Your rows of bricks need to be different colors. 3. Your game play (ball speed, scoring, paddle, etc.) needs to change as the game gets longer or the score gets higher 4. Once all bricks are gone, Game over 5. If ball goes past paddle, you losearrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education