Menu

(Solved) : Get Help Coding Already Coded Harness Import Javautilscanner Accept Keboard Inputpublic Cl Q35494624 . . .

Can I get help coding these?

PA02 UML Class Diagrams.pdf (SECURED) - Adobe Reader File Edit View Window Help 100% Tools Fill 8 Sign Comment Sign In Export

PA02 UML Class Diagrams.pdf (SECURED) - Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In Export PDF

PA02 UML Class Diagrams.pdf (SECURED) - Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In ▼ Export PD

PA02 UML Class Diagrams.pdf (SECURED) - Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In Export PDF

フ. Expected Output.pdf (SECURED-Adobe Reader File Edit View Window Help 66796 | ▼ Tools Fill 8 Sign Comment xpected Output Si

Expected Output.pdf (SECURED) - Adobe Reader File Edit View Window Help 66796 | ▼ Tools Fill 8 Sign Comment Sign In Export PD

Already coded harness:

import java.util.scanner; // to accept keboard inputpublic class Test_security Hierarchy{ private static int limit = 8; /* * Using the limit declared above, * DECLARE AN ARRAY HERE TO HOLD CUSTOMER OBJECTS THAT YOU WILL BUILD IN THIS TEST HARNESS. * The access modifiers are alread provided for you;DO NOT CHANGE THEM! */ private static Customer custArray[] = new Customer[limit]; public static void main(String[] args) { loadArray( ); outputCustomers( ); } // end main private static void loadArray( ) { /************************************************************************************************************ * The first part of this method is simply ‘set up’ for the real work to be done later. * We will: * > Instantiate the Scanner here to accept keyboard input * > Create a ‘holding’ space for the Customer object(s) to be isntantiated * > Declare variables to hold the user responses * > Declare a variable to use in controlling the input loop ************************************************************************************************************/ Scanner input = new Scanner( System.in ); // instantiate Scanner for use; tie to keyboard Customer newCustomer; // “holding reference” for the Customer object // create prompts for use in loop String askAllInfo = “Do you have ALL the Customer information available? Y or N: “; String askCustNbr = “Enter a Customer Number as 7 digits: “; String askTIN = “Enter a 9-digit tax identifier: “; String askFirst = “Enter a first name: ” ; String askLast = “Enter a last name: “; String askMargin = “Enter a margin limit as an integer: “; String askDrip = “Does the customer want to reinvest dividends? True or False: “; String askFutures = “Is the customer eligible to trade in futures contracts? True or False: “; // declare variables to hold instance values String allInfo, custNbr, tin, first, last; int margin; boolean drip, futures; // Declare a loop control variable int countCusts = 0; /************************************************************************************************************ * The data input loop will continue until the array has been filled. * * Each prompt is offered in turn; the response from the user is stored in the appropriate variable ************************************************************************************************************/ while( countCusts < limit ) { // Prompt for the minimum required data values System.out.printf( “%s%n”, askCustNbr ); custNbr = input.next( ); System.out.printf( “%s%n”, askTIN ); tin = input.next( ); // Does the user have ALL the customer’s information? System.out.printf( “%s%n”, askAllInfo ); allInfo = input.next( ); // Are we building a full object or a partial object? if( allInfo.charAt(0) == ‘N’ ) { newCustomer = new Customer( custNbr, tin ); custArray[ countCusts ] = newCustomer; } else { // Collect the rest of the information System.out.printf( “%s%n”, askFirst ); first = input.next( ); System.out.printf( “%s%n”, askLast ); last = input.next( ); System.out.printf( “%s%n”, askMargin ); margin = input.nextInt( ); input.nextLine( ); // for clearing the ‘hanging’ end of line marker System.out.printf( “%s%n”, askDrip ); drip = input.nextBoolean( ); System.out.printf( “%s%n”, askFutures ); futures = input.nextBoolean( ); /************************************************************************************************************ * The data gathered from the user will be used to instantiate a new Customer object. * We will use the ‘holding’ reference declared at the top of the method to point to the * Customer object just created. * Then the referenct to the new Customer object is stored in the array. * The loop control counter is incremented for the next pass through the loop. ************************************************************************************************************/ newCustomer = new Customer( custNbr, tin, last, first, margin, drip, futures ); custArray[ countCusts ] = newCustomer; } countCusts += 1; } // end of loop // Reflect to user that loop has ended System.out.printf( “%nData input complete. Thank you.%n” ); } // end loadArray private static void outputCustomers( ) { /************************************************************************************************************ * An ENHANCED FOR LOOP is used to process each object in the array. * The describeCustomer method of each object is called; the return value is then output to the console. * * YOU WILL WRITE THE ENHANCED FOR LOOP BELOW. It is the ONLY code needed in this method. DO NOT alter the * method header in any way. ************************************************************************************************************/ for(int i=0; i<limit; i++) { Customer cust = custArray[i]; System.out.println(cust); } } // end outputCustomers} // end Test_CustomerPA02 UML Class Diagrams.pdf (SECURED) – Adobe Reader File Edit View Window Help 100% Tools Fill 8 Sign Comment Sign In Export PDF Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: Security (Abstract) Interface: CostBasis PA02 UML Class Diagrams-pdf private custNumber private purchDt: int A unique identifier for a customer; must be 7 digits in length; must be greater than 10000 Purchase date of Securty in Julian date format wyyddd. The value for year must be greater than 1900. The value for days must be between 1 and 365, inclusive. Purchase 1 file/442 KB ate purchPrc: double ate shares double of Secur in dollars Convert To: for should be limited to three Microsoft Word (docx) Market of rations Recognize Text in English(U.S.) Change pubic Full constructor, returns a reference to a and urity object date: int, price: double, qty double, sym. String): Securi Convert pubic toStringt): String Returns a formatted String object describing the Security object The Security belongs to Customer# custNumberi shares shares of symbol were purchased on purchDt for SpurchPrc per share – Create PDF Edit PDF Combine PDF Send Files Store Files NOTES: The interface method calcCost is not given a concrete definition here There can be nonull constructor defined for this class. 11.00x 8.50 in 3:28 AM 2/20/2019 3 O Type here to search ^ 41) PA02 UML Class Diagrams.pdf (SECURED) – Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In Export PDF MutualFund class of Sec Attributes Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: e type type of Mutual Fund market, e Administrative fee cap, expressed as Reporting pariod, expreszed as character. The valid values are: of value of funds held (eg:0.0024 or 0.031 rptPeriod: dhar A: annual a: quarteriy PA02 UML Class Diagrams-pdf 1 file/442 KB Describes whether or not the fund is true active, felse Convert To: Microsoft Word (docx) MutualFund(nbr: String, Full constructor; raturns a reference to a fully formed and functional MutualFund object date: int, price: double, qty double, sym: String sort: String cost: doubla, rpt char tyle:boolean: MututalFund Recognize Text in English(U.S.) Change Convert toStringl IString Returns a formatted String object describing the MutualFund object – Create PDF The MutualFund belongs to Custme併custNumber; shares sh res of symbol were purchased on purchot for SpurchPrc per share This is a type fund Edit PDF Combine PDF Send Files Store Files Admin costs are capped at adin Reporting cycle is s managed activaly/pasvely (1) Based on rptPeriod value. 2) Based on nget value. calcCost double Interface method: CostBasis NOTE There can be no null constructor dafined for this class 11.00x 8.50 in 3:29 AM O Type here to search d) 2/20/2019 PA02 UML Class Diagrams.pdf (SECURED) – Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In ▼ Export PDF Stock ass of Attr Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: private excha on which the stock trades (e Nikkes, etc s dvidands: true no dividands p Indicates when dividends are Dollar value of d divAmount: double share: 0 if dividends false divpate is irvalid PA02 UML Class Diagrams-pdf Operations 1 file/442 KB ic MutualFund nbr: String, constructor, returns a reference to a fuly formed and functional S object date: int, pre: double, qty: double, ym: String chg: String div: boolean, divDt: int amt: double Stock Convert To: Microsoft Word (docx) Recognize Text in English(U.S.) Change c toStrinel ): String s a formatted String object describing this Stock object This Stock is traded on the exchange Convert This stock does not pay a dividend. A dividend of Sdivamount will be payed in the divDate quarter. If dividends false – Create PDF Edit PDF Combine PDF Send Files Store Files ic cakcCostl : double NOTE: There cen be no ull constructor defined for this class. 11.00x 8.50 in 3:29 AM O Type here to search d) 2/20/2019 PA02 UML Class Diagrams.pdf (SECURED) – Adobe Reader File Edit View Window Help Tools Fill 8 Sign Comment Sign In Export PDF CostBasis (Interface) Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: Attributes no defined attributes for this interface Operations PA02 UML Class Diagrams-pdf public calcCost) double the cost basis for the security 1 file/442 KB Convert To: Microsoft Word (docx) Recognize Text in English(U.S.) Change Convert – Create PDF Edit PDF Combine PDF Send Files Store Files 11.00x 8.50 in 3:29 AM O Type here to search ^ 41) 2/20/2019 フ. Expected Output.pdf (SECURED-Adobe Reader File Edit View Window Help 66796 | ▼ Tools Fill 8 Sign Comment xpected Output Sign In Export PDF The following is sample output from the test harness Test_SecurityHierarchy. Your output wi depend on the test cases you use. Please keep in mind that I will use multiple, and different, test harnesses when grading your submmission -so test thoroughly! Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: Datฮ input complete. Thank you The Mutualfund belongs to custoner# 1111111; 25845, eee shares of AAAA were purchased on 2001001 for $1.00 per Share This is a MoneyMarket fund Expected Output.pd 1 file/388 KB Adnin costs are capped at 8.88128e Reporting cycle is Monthly The fund is managed passively Convert To: The cost basis for this investment is: $25,876.e1 Microsoft Word (docx) The MutualFund belongs to Customert 2222222; 2000.0 shares of BBB8 were purchased on 20(2002 for 500.00 per share This is a ETF fund Recognize Text in English(U.S.) Change Admin costs are capped at e.e04280 Reporting cycle 1s Annual The fund is managed actively The cost basis for this investment is: $1,e04, 2e9.ee Convert The Stock belongs to Custoners 3333333; 100.00 shares of DDDD were purchased on 2803803 for $28.86 per share This stock is traded on the NYSE exchange This stock does not pay dividends – Create PDF The cost basis for this investment is: $2,886.00 Edit PDF Combine PDF Send Files Store Files The Stock belongs to Custoner 4444444; 500.000 shares of DoDO were purchased on 2004884 for $200.88 per share This Stock is traded on the NASDAQ exchange A dividend of $1.25 will be paid in the 2 quarter The cost basis for this investment is: $99, 375.00 The stock belongs to custoner# 5555555; 1-eee shares of EEEE were purchased on 28e5ee5 for $256.31 per share This stock is traded on the CBT exchange This stock does not pay dividends The cost basis for this investment is: $255.31 The Stock belongs to Custoner 6666666; 2.000 shares of FFFF were purchased on 28e6886 for $5ee8.18 per share This stock is traded on the NYSE exchange A dividend of $25.9 wi11 be paid in the 3 quarter The cost basis for this investment is: $9,95.2e 920 PM O Type here to search Expected Output.pdf (SECURED) – Adobe Reader File Edit View Window Help 66796 | ▼ Tools Fill 8 Sign Comment Sign In Export PDF The MutualFund belongs to customer# 7777777; 125.eee shares of HHH were purchased on 2807007 for $65.ee per share This is a Bond fund Adnin costs are capped at 8.852600 Reporting cycle is Quarterly The fund is managed actively Adobe ExportPDF Convert PDF files to Word or Excel online. Select PDF File: The cost basis for this investment is: 8,547.58 Expected Output.pd The stock belongs to customer# 8888888; see. eee shares 0f 1111 were purchased on 2017980 for SS2.36 per share This stock is traded on the NASDAQ exchange 1 file/388 KB A dividend of $2.50 will be paid in the 4 quarter Convert To: Microsoft Word (docx) The cost basis for this investment 1s: $24,930.0 Recognize Text in English(U.S.) Change Convert – Create PDF Edit PDF Combine PDF Send Files Store Files 920 PM O Type here to search ^甸厒41) 2/19/2019 Show transcribed image text

Expert Answer


Answer to Get Help Coding Already Coded Harness Import Javautilscanner Accept Keboard Inputpublic Cl Q35494624 . . .

OR