C# Assignment Question

C# Assignment Help, C# Homework Help, C# Programming Help

C# Assignment Question -

1.

Please help me with this assignment question

18. (a) Assume I want to write a class to represent a person. I want to store the person's integer age in a private object. Write one line of code to declare an object to store the age value.

(b). Write a default constructor that will assign this age value zero .

(c). Write the two lines of code required to declare an event by the name of AgeChanged for the person class .

(d). Write a Property for this class where the user of the class can either use or change the age value. Call your property AGE. If the value of the age changes the event AgeChaned must be executed .

2.

This exercise takes the checking account project and applies lists. Your project will use a single form. Prepare planning documents that describe the work to be performed. Zip your project folder and files and upload the zip file and your planning document to Canvas. Create a new project, and add the Transaction Class from Homework #6, making any corrections identified in class or your homework feedback. Create a new class named TransactionList to manage the entered transactions, using a list to store the values. Include the following capabilities in TransactionList: The ability to add a transaction as an object; The ability to remove a transaction from the list; . The ability to refer to a single transaction in the list by index; . The number of transactions in the list; . The account balance Whether the balance is negative (overdrawn). Create a form with the following: . A variable based on the TransactionList class to store data entered. Radio buttons, labels and textboxes for entering data about each transaction (radio buttons for transaction type) 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 textboxes and option buttons .Include a label for displaying the account balance. Notify the user if the account balance is less than zero (either by color, label, or messagebox). Refer to the TransactionList variable for these values. A button to add a new transaction to the listbox and update the account balance label. A button to remove a transaction from the listbox and display the revised account balance. A button to clear textboxes and radio buttons for entering new transaction details. . A button to exit the application

Answer Detail

Get This Answer

Invite Tutor