0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
17 visualizzazioni1 pagina
Your project will use a single form. Include planning documents and comment your code. Turn in a printed copy of your code, your planning documents, and this sheet in a folder.
Your project will use a single form. Include planning documents and comment your code. Turn in a printed copy of your code, your planning documents, and this sheet in a folder.
Copyright:
Attribution Non-Commercial (BY-NC)
Formati disponibili
Scarica in formato DOC, PDF, TXT o leggi online su Scribd
Your project will use a single form. Include planning documents and comment your code. Turn in a printed copy of your code, your planning documents, and this sheet in a folder.
Copyright:
Attribution Non-Commercial (BY-NC)
Formati disponibili
Scarica in formato DOC, PDF, TXT o leggi online su Scribd
Project (17 points): ______________ Homework #8 CIS 166 – Visual Basic This exercise takes the checking account project and adds a collection. Your project will use a single form. Include planning documents and comment your code. Copy your project files in a folder to the R: drive, and turn in a printed copy of your code, your planning documents, and this sheet in a folder. Modify the Transaction class from Homework #7 by removing the shared properties (AccountBalance, Overdrawn). Create the Transactions class: This class will be a collection that manages transactions. Include methods to add, remove, and select individual Transactions in the collection. Add methods to return the AccountBalance (current balance after processing each transaction), and Overdrawn (Overdrawn is true if the account balance is negative, false if the account balance is positive or zero). Create a form with the following: • A variable for the collection. Display of the balance and all other operations related to individual transaction data should refer to the collection. • Radio buttons, labels and textboxes for entering data about each transaction. • A listbox showing all transactions. When the user clicks on an item in the list box, information about that transaction should be displayed in the appropriate controls. • Include a label for displaying the account balance. Notify the user if the account is Overdrawn (either by color, label, or messagebox). • A button to add a new transaction to the collection and the listbox, and update the account balance label. • A button to remove a transaction from the collection and the listbox, and display the revised account balance. • A button to clear textboxes and radio buttons for entering a new transaction. • A button to exit the application. Extra credit (5 points) Add the following to the collection class for file handling: • Include a read-write property FileName, to identify file location. • Include a read-only property Saved, to identify if a member in the collection has been added or removed since the file was read. • Include a FileOpen method to read the file identified by FileName into the collection. Include an argument that specifies if the contents of the new file are to replace or be added to any existing entries. • Include a FileSave method to write data from the collection to the file specified in FileName. Modify the code on your form to set a filename and read the file on form load; and write the file to disk when the form closes.