Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 210 Weeks Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
C# Programming.
Please help me to check all my work and complete it. Thanks
I was confused with the last two methods....
My work : Account.txt.using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Account
{
   class Account
   {
       private static int CURRENT_ACCOUNT_NUMBER;
       public string Number;
       private const int TRANSIT_NUMBER = 314;
       public double Balance { get; private set; }
       public List<string> Names { get; private set; }
       static Account()
       {
           CURRENT_ACCOUNT_NUMBER = 100000;
       }
       private Account(string number, string name, double balance)
       {
           Number = number;
           Balance = balance;
           Names = new List<string> ();
           Names.Add(name);
          Â
       }
       public void AddName(string name)
       {
           Names.Add(name);
       }
       public void Deposit(double amount)
       {
           Balance += amount;
       }
       public void Withdraw(double amount)
       {
           Balance -= amount;
       }
       public override string ToString()
       {
           string[] Names = { };
           return string.Join(",", Names);
       }
       public static Account CreateAccount(string name, double balance = 0)
       {
           CURRENT_ACCOUNT_NUMBER++;
       }
   }
}
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly