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

  Explain what a sequential access file is.

What are the advantages and disadvantages of using sequential access data files?

  Discuss why web services are important to web development

Discuss why Web services are important to Web development - find a Web service that you find interesting. Summarize and present it to the class

  Program compares the number entered to the previous number

The program compares the number entered to the previous number. In the event that it is a duplicate number, the user will be prompted to enter a different number. Display the number to the screen as long as it is not a duplicate.

  Determine single vs double compartment model

The following plasma concentrations (in ug/ml) of a new drug were recorded in a patient. Is this data best fit by a single or double compartment model?

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Write web application that will give report of balance

Write the web application that will give a report of the balance held in a visitor's account during past several months.

  Write a program a to program to compute the area

Write a program a to program to compute the area A of a triangle with base b and height h. Write a program to a program to compute the volume V of a sphere of radius r.

  Determining whether it is possible to reuse code

You are a project manager and have been told that you need to reuse some given code in your new development effort. How would you go about determining whether it is possible to reuse code for this effort?

  User-s ability to navigate the web site correctly

This can paralyze a user's ability to navigate the Web site correctly. Examples include opening new browser windows or using meta-refresh to force a page.

  Develop logic for program to allow to enter household size

Develop the logic for a program that allows a user to enter each household size and determine the mean and median household size in marengo.

  Write the sentence in symbolic form

Identify the primitive statements in the sentence "Plate tectonics explains mountain building and continental drift." Assign variable names to the primitive statements, and then write the sentence in symbolic form. (There is more than one primitiv..

  Show the graphics simulation of drinks machine

When a coin is clicked on with the mouse it is placed into the slot, it then operates the coin sensor IP0. This should operate OP0 (coin hold solenoid), which will hold the coin in place. At this point either a drink is selected or the coin rejected.

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