Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

***** UML Diagrams**** ***** SAMPLE OUTPUT***** Thank you in advance for your help!!!! To be coded in Java Security Create the Security class according to

image text in transcribedimage text in transcribed

*****UML Diagrams****

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

***** SAMPLE OUTPUT*****

image text in transcribedimage text in transcribed

Thank you in advance for your help!!!! To be coded in Java

Security Create the Security class according to the requirements in the UML Class Diagram. Note that the UML Class Diagram provided does not include required standard methods-these should be included at all times as defaults. Naming for such methods MUST follow standard naming conventions. All classes in the Security hierarchy must implement the CostBasis interface. MutualFund Create the MutualFund class according to the requirements in the UML Class Diagram. Note that the UML Class Diagram provided does not include required standard methods-these should be included at all times as defaults. Naming for such methods MUSI follow standard naming conventions. The MutualFund class must provide concrete instructions for implementation of the CostBasis interface. Stock Create the Stock class according to the requirements in the UML Class Diagram. Note that the UML Class Diagram provided does not include required standard methods -these should be included at all times as defaults. Naming for such methods MUST follow standard naming conventions. The Stock class must provide concrete instructions for implementation of the CostBasis interface. MutualFund (subclass of Attributes ldentifies general type of Mutual Fund: bonds, money market, exchange, etc Administrative fee c Reporting period, expressed as character. The valid values are: private type: String te admin: double of value of funds held (e.g:0.0024 or 0.03 private rptPeriod: char A: annual Q: quarterly M: month private mgmt: boolean Describes whether or not the fund is" true active; false passive mana ons public MutualFundl nbr: String. Full constructor; returns a reference to a fully formed and functional MutualFund object date: int, price: double, qty: double, sym: String sort: String, cost: double, rpt char : boolean: MututalFund public toStringl1String Returns a formatted String object describing the MutualFund object: The MutualFund belongs to customer custNumber; shares shares of symbol were purchased on purchDt for SpurchPrc per share. This is a type fund. Admin costs are capped at adwin Reporting cycle is A The fund is managed actively/passively (1) Based on rptPeriod value. (2) Based on mgmt value. public calcCost : double Interface method: CostBasis Cost is calculated as sharespurchPrc1admin NOTE: There can be no null constructor defined for this class. Stock (sublcass of s Attributes rivate rivate dividends: boolean ivate divDate: int rivate divAmount: double The exchange on which the stock trades (e.g.: NA Indicates whether or not the stock Indicates when dividends a Dollar value of dividen e: Strin Nikkei, etc dvidends: true dividends paid; false no dividends paid uarter: allowed value aid 0 if dividendsfalse and/or divDate is invalid Operations public MutualFund( nbr: String Full constructor; returns a reference to a fully formed and functional Stock object date: int, prc double, qty: double, sym: String xchg: String, div: boolean, divDt: int, amt: double: Stock public toString:String Returns a formatted String object describing this Stock object This Stock is traded on the exchange This stock does not pay a dividend. A dividend of SdivAmount will be payed in the divDate quarter. (1) If dividends false 2) If dividends-true Interface method: CostBasis Cost is calculated as: shares (purchPrc public calcCost):double divAmount NOTE: There can be no null constructor defined for this class

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

Step: 3

blur-text-image

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

Students also viewed these Databases questions

Question

3. Give examples of four fair disciplinary practices.

Answered: 1 week ago

Question

Should people buy nissan stock and why?

Answered: 1 week ago