Question: Using Account4 project from chapter 4 examples of the Deitels text book , do the following: 1. Convert the Console project to Windows Form project

Using Account4 project from chapter 4 examples of the Deitels text book , do the following:
1. Convert the Console project to Windows Form project
2. When you click on button1, you
a. create an object named account1 initialized with the name from textBox1 labeled Name and with initial balance from textbox labeled Initial Balance
b. Display a message box showing that the creation was successful and the values of name and initial balance
c. Deposit the amount in text box labeled Deposit Amount
d. Withdraw the amount in text box labeled Withdraw Amount
e. When you click on Display Account , display a message box showing that the call to deposit/Withdraw method was successful and the values of name and balance
f. Modify your class to include an account number that is filled automatically (by the constructor). It should also be inaccessible and unchangeable by anyone/anything. Display the account number in the new text box under Account Number and modify the messagebox to show the account number in addition to name and balance.
 Using Account4 project from chapter 4 examples of the Deitels text
book , do the following: 1. Convert the Console project to Windows

Formi X Name Initial Balance Account - Object - Number Create Account Display Account Deposit Amount Depost Withdraw Amount Withdraw * 1 // Fig. 4.1: AccountTest.es 2 // Creating and manipulating an Account object. 3 using System; 4 5 class Account Test static void Main() { // create an Account object and assign it to myAccount Account myAccount = new AccountO; // display myAccount's initial name (there isn't one yet) Console.WriteLine($"Initial name is: {myAccount. GetName(}"); 7/ prompt for and read the name, then put the name in the object Console.Write("Enter the name: "); // prompt string theName Console.ReadLine(); // read the name myAccount.SetName(theName); // put theName in the myAccount object 17/ display the name stored in the myAccount object Console.WriteLine("myAccount's name is: {myAccount. GetName(}'); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!