1 / 4

Stock Market Transactions Assignment Help

Stock Market Transactions Assignment Help Write an Android application holding the activity Main Activity to display the XML user interface the Main UI showing any greeting message of your choice to the screen. Delay the display of this message reasonably so the user can get the time to read it; and then, the Main Activity will call automatically the activity Pick Investor Act at the end of this delay

6696
Download Presentation

Stock Market Transactions Assignment Help

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Stock Market Transactions Assignment Help freeassignmenthelp.com/stock-market-transactions-assignment-help August 7, 2018 Stock Market Transactions Assignment Help Write an Android application holding the activity Main Activity to display the XML user interface Main UI showing any greeting message of your choice to the screen. Delay the display of this message reasonably so the user can get the time to read it; and then, the Main Activity will callautomatically the activity Pick Investor Act at the end of this delay to displaythe XML user interface Pick Investor UI. This interface will showsome check boxes for prompting the user to select either name Maria, Tony or both.These names identify investors that do stock market transactions on regular basis. This user interface will also show the buttons Exit and Return. Once the activity Pick 1/4

  2. Investor Actis done, user will click the button Return to return the selected names to the activity Main Activity.In this case, the user interface will show the investor names rather than the greeting message nowtogether with the buttons Exit and Continue. The user will click now the button Continue to call the activity Pick Comp Trans Act holding the user interface Pick Comp Trans UI to process the selected investors, one at a time,as follows: Initialize the individual portfolio by using the corresponding Initial Portfolio Table data below. Notice that, in addition to the given transactions and shares in the portfolio, the portfolio (initial) cash amount available for doing next transactions is $2000.00. Once the initial portfolio is set, it will eventually become the portfolio (see the Portfolio sample table below) for this investor so the application will edit it at the end of every transaction.In this regard the individual portfolio will be initialized only once per session; however, it will be updatedat the end of every transaction at runtime. Theactivity Pick Comp TransAct will display the user interface Pick Comp Trans UIusingany layout of type GridLayout of your choice showing the investor name, two groups of radio buttons together with the buttons Exit and DoTransaction to the screen. The first group of radio buttons will display this list of company names Company 1, Company 2 and Company 3. The investor willselect exactly one name from this list. The second group of radio buttons will display this list of transaction choices: (S)ell, (B)uy and (P)ortfolio.The investor will also select exactly one transaction from this list. Keep in mind thatexactly one company is selected and exactly one transaction S, B or P will apply to this company.Thereafter, the user will click the button DoTransaction to call the activity DoTransAct to display the XML user interface DoTransUI to the screen. By using this interface, the application will then process the selected transaction for this selected company, as follows: 1. If (S)ell is selected, display the Portfolioof this investor by appending an empty transaction row to this table so the user will fill it in, as follows: Type in the transaction number by incrementing the current one by 1. Enter the company name and type in the letterS as the transaction type. Any selltransaction willsell all shares of the company in the portfolio. Type in the sell price (1<=valid_sell_price <= 10) per share. Compute the totalvalue to fill in the Total column of the table using the formula total=Qty*sell_price where Qty is the quantity or total number of shares of this company in the portfolio. Validate this sell transaction. If valid, update the portfolio cash amount of money available for next transactions; and then, save this row of data to the portfolio. Otherwise, display a dialog box showing an adequate error message for helping the user to fix any mistake upon to this transaction is successfully done. 2/4

  3. 1. If (B)uy is checked, display the Portfolioof this investor by appending an empty transaction row of data to this table so the user will fill it in, as follows: Type in the transaction number by incrementing the current one by 1. Enter the company name and type in the letter B as the transaction type. Type inboth the buy quantity (20<=valid_buy_qty<=50) and the buy price (1<=valid_buy_price<= 10) per share. Compute the total value to fill in the Total column of the table using the formula total=buy_qty*buy_price. Validate the transaction. If valid (by also ensuring that there is enough money left for buying these shares), update the portfolio cash amount of money available for next transactions; and then, save this row of data to the portfolio. Otherwise, display a dialog box showing an adequate error message for helping the user to fix any mistake upon to this transaction is successfully done. 1. If (P)ortfolio is checked, display an adequate user interface showing the Portfolio of this investor similar to the Portfolio (sample table)below for Maria. Notice that, students will design this user interface using the layouts TableLayout and TableRow, first. Once the transaction is successfully done, display a dialog box prompting the user to do another transaction for the current investor. If yes, display the user interface PickCompTransUI as described on step 2 so the user can repeat this process by selecting any company together with any new transaction for the current investor. Otherwise, go to step 1 to repeat this process for the next investor, if any. If no more transactions to process for the current investor and all investors were processed successfully, the user will click the button Exit to terminate the execution of this application. In fact, any user interface showing the button Exit on this application will allow the user to click on it to terminate the execution of the application. Investor name: Tony Initial Portfolio table Transaction number Company name Transaction type Quantity Unit price Total 1 Company 1 B 80 5.00 400 2 Company 2 B 50 9.00 450 Cash amount available in portfolio 1000 Investor name: Maria Initial Portfolio table Transaction number Company name Transaction type Quantity Unit price Total 1 Company 2 B 50 9.00 450 3/4

  4. 2 Company 3 B 70 5.00 350 Cashamount available in portfolio 2000 Investor name: Maria Portfolio(sample table) Transaction number Company name Transaction type Quantity Unit price Total 1 Company 2 B 50 9.00 450 2 Company 3 B 100 5.00 500 3 Company 2 S 50 10.00 500 4 Company 1 B 50 2.00 100 Cashamount available in portfolio 1800 Grading will consider 1. (3 marks) Good programming practices including event-driven programming, user- defined Java interface, packages and classes (declaring private and protected members), multiple activities, appropriate user-interface design usingembedded layouts (including these layouts GridLayout, TableLayouts and TableRow)holding the widgets as described on these handouts. 2. (3 marks) Appropriate use of the programming language including the use of meaningful names, appropriate use of functions and methods by passing parameters, appropriate use of the conditional statements and loops, etc. Notice that students must use the given names appearing on this document in bold such as the activity names (ex: PickCompTransAct) and the XML file names (ex: PickCompTransUI). Tags: Stock Market Assignment HelpStock Market technical Analysis home tutorsStock Market Transactions Assignment HelpStock Market Transactions Assignment Help services 4/4

More Related