Programmin

FratBro23
Category:
Programming
Price: $5 USD

Question description

Supporting Activity: “is-a”

Using an example from your work or daily life, describe an "is-a" relationship. Why is an "is-a" relationship important when designing an inheritance between classes?  What are the differences between "is-a" and "has-a" relationship?

Supporting Activity: Savings Account

You are a bank manager and you are helping a new bank teller understand the kind of accounts the bank offers. If a customer comes in asking to open a new savings account, the teller needs to ask what kind of account--passbook savings or certificate of deposit--the customer would like to open. Remind the customer that all accounts with our bank are insured by the FDIC. You should explain that all accounts earn some interest; a savings account's interest is compounded monthly. You should assign a unique account number after accepting the customer's initial deposit. If the customer chooses to receive statements electronically, the system will send an e-mail with a monthly statement; if the customer chooses not to, then a paper statement will be sent by mail quarterly.

If savings account is a class, give an example of each of the following as it relates to that savings account. Explain your reasoning behind your example.

  • Superclass
  • Subclass

Individual Assignment:

  • Compare Total Compensation. You will compare the total annual compensation of at least two sales persons. That means that it MUST be able to compare two, three or more sales persons.
  • Calculate Extra Sales. It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. NOTE that you are computing the extra sales required to achieve the same compensation. Sales and compensation are related but different.
  • Sales Person's Name. The application should ask for the name of each salesperson being compared. Note that in Java, an object represents an entity. The sales person's name goes with the data about the sales person's annual sales, base salary, commission rate, etc.
  • The Java™ application should also meet these technical requirements:
    • The application should have at least one class, in addition to the application's controlling class. THAT means TWO CLASSES or more.
    • The source code must demonstrate the use of Array or ArrayList.
    • There should be proper documentation in the source code.

Modify the Week Three Java application using NetBeans IDE to meet these additional and changed business requirements:

  • The application will now compare the total annual compensation of at least two salespersons.
  • It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.
  • The application should ask for the name of each salesperson being compared.

The Java application should also meet these technical requirements:

  • The application should have at least one class, in addition to the application's controlling class.
  • The source code must demonstrate the use of Array or ArrayList.
  • There should be proper documentation in the source code.

Results from Week 2:

<p><b>Grade: 90%</b> </p><p><b>Comments:</b></p><p><b>Runs with correct answer but the design is not OO. In fact, The main class simply pushes all logic to the second class. In effect, elminating any benefit of having two classes.</b></p><b>Hint: As discussed in class, a class/object usually represents an

entity (e.g., an Animal, a Car, etc.) What is the best candidate for

this in this assignment? The SalesPerson. A method of this class should

take a total sales amount and return total compensation.</b><hr>


Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors