Create a class named account with data fields

Assignment Help Programming Languages
Reference no: EM131307752

Assignment

Step 1:

Create a class named Account with data fields for an account number, payment amount and balance as well as the appropriate set and get methods. Include a constructor method that contains no arguments. Set the account number equal to 23456, payment amount to 250 and the balance to 3600. Write the appropriate comments and save the program. Compile and correct any errors.

Step 2:

Create a program named TestAccount to demonstrate that each method created in BankAccount works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.

Step 3:

Create an additional overloaded constructor for the Account class. This constructor should receive one argument for the account number and two assigned values for the payment amount and the balance. Make the three numbers different from the ones used in Step 1. Write the appropriate comments and save the program. Compile and correct any errors.

Step 4:

Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.

Step 5:

Create an additional overloaded constructor for the Account class. This constructor should receive two arguments, one for the account number and one for payment amount, and one assigned values for the balance. Make the three numbers different from the ones used in Step 3. Write the appropriate comments and save the program. Compile and correct any errors.

Step 6:

Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.

Step 7:

Create an additional overloaded constructor for the Account class. This constructor should receive three arguments for the account number, the payment amount, and the balance and no assigned values. Make the three numbers different from the ones used in Step 5. Write the appropriate comments and save the program. Compile and correct any errors.

Step 8:

Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.

An example of the output - not the blank line between sections of the output:

The account number is: 12345

The payment amount is: 150

The balance is: 3500

The account number is: 24569

The payment amount is: 250

The balance is: 4500

Additional notes:

Make sure that your comments include your name and the date created. Include comments to reflect each step above.

Be sure to compile and test the program before submission.

Reference no: EM131307752

Questions Cloud

Write the expression for the angular momentum : Classical Mechanics - show that the ellipsoid of inertia of a cube of uniform density having an edge of length a, is a sphere for a set of axes whose origin is at the cube's center. What is the magnitude of the radius?
What were the names of the original five dhs directorates : What has been the most significant result of the September 11 attacks for state and local emergency managers?- What were the names of the original five DHS Directorates? Which of these still exist today?
Does food irradiation leave the food radioactive : Does food irradiation leave the food radioactive? To what extent is the food altered chemically for low and high doses in food irradiation?
Why did secretary chertoff release the six point agenda : Why did Secretary Chertoff release the Six-Point Agenda? What was the purpose of the Agenda?- What did the Post-Katrina Emergency Management Reform Act do?
Create a class named account with data fields : Create a class named Account with data fields for an account number, payment amount and balance as well as the appropriate set and get methods. Include a constructor method that contains no arguments.
Identification of hazards and risks in the workplace : Identification of hazards and risks in the workplace; Job Hazard Analysis (JHA), Failure Modes and Effects Analysis (FMEA), or Fault Tree Analysis are to be used, or some combination of these technique
Energy equivalent of the electron''s mass : The purpose of this problem is to show in three ways that the binding energy of the electron in a hydrogen atom is negligible compared with the masses of the proton and electron.
What was the purpose of the 911 commission : What was the purpose of the 911 Commission? What did the Commission find?- How did the states respond to the terrorist threat?
What is the experience of the lead executive of the office : Is this office colocated with the office of emergency management, or is it a separate office? What is the experience of the lead executive of the office?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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