Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is week 3's discussion requirement: In this Discussion, you will practice creating a test plan for a Java class. Assume you are working for

This is week 3's discussion requirement:

In this Discussion, you will practice creating a test plan for a Java class. Assume you are working for ABC Bank Corporation and have been assigned a project to design a Java class that represents one of the following: a BankCustomer, a BankEmployee, or a BankAtmMachine.

For this Discussion, you will develop a test plan for one of the following Java classes: (1) a class representing a bank customer; (2) a class representing a bank employee; or (3) a class representing a bank ATM machine.

Note that you are not writing the Java code yet. Your goal is to determine what methods and attributes the selected class should have, and then you will describe the purpose and functionality of the included methods.

Prepare an initial post with the following:

  • A properly named class that follows the standard Java naming conventions
  • Four properly named attributes of the selected class (each attribute must store a different type of data, including: integer, Boolean, floating-point, and char) Note: Be sure to identify which attribute is stored using which data type.
  • Three properly named methods that will be included in the selected class
  • Describe each methods functionality as follows:
    • One method that will accept a parameter that may be passed into the method; specify its data type
    • One method that will return a value to be used in the rest of the program; specify its data type
    • One method of your own choosing and data type
  • Provide examples of three objects that may be instantiated by the selected class, and explain how those objects may differ.

Note that a class defines the object type, and each object can have only the attributes and methods included in the class. For example, an ATM machine class can instantiate ATM machine objects but not a BankEmployee object or a BankCustomer object.

I wrote a test plan for BankEmployee. I need to satisfy the requirements below

For this Discussion, return to the Week 3 Discussion class you selected (e.g., BankCustomer, BankEmployee, or BankAtmMachine) and the methods and properties you specified in your Week 3 Discussion response. Using any of these methods, or a new method of your choosing that fits the Week 3 Discussion class you selected, write Java code (not a pseudocode) that implements that method and includes the following: A method accepts at least two parameters that are passed into the method, including one that is a numeric parameter A method with at least one numeric value that will be returned by the method A variable that is legally declared twice (with the same name both times) within the method Following the instructions above, add the method created to a simple Java test application with the main method, and call the created method from that main method to show that your methods code works. Compile the test application to make sure that there are no syntax errors in the method you have created. Prepare an initial post with the following: The Java code of your test application A screenshot of a successful run of the test application Explain the function of each parameter and variable you included in your selected method.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions