📜  银行应用程序 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:26.735000             🧑  作者: Mango

代码示例1
static void Main(string[] args)
    {
           Account myCustAcc = new Account();
        Transaction myCustTrans = new Transaction();
        string input = "";
        string userName = "";
        int pin; 
        //Track Login Status

        //Login 

        Console.Write("\nUserName :");
        userName = Console.ReadLine();
        Console.Write("UserName :");
        Console.Write("PIN :");
        pin = Convert.ToInt32(Console.ReadLine());
       

        //Welcome Message with Name 

        //With Menu option to get balance, deposit/withdraw from account, modify customer information
        //display current balance and exit
        do
        {
            Console.WriteLine("\t\t\t Banking Application");
            Console.WriteLine("\t1> GetBalance");
            Console.WriteLine("\t2> Deposit");
            Console.WriteLine("\t3> Withdraw");
            Console.WriteLine("\t4> Modify");
            Console.WriteLine("\t5> Display");
            Console.WriteLine("\t6> Exit");
            input = Console.ReadLine();
            switch (input)
            {
                case "1":
                    break;

                case "2":
                    break;

                case "3":
                    break;

                case "4":
                    break;

                case "5":
                    break;

                case "6":

                default: Console.WriteLine("Exit the Application!!!");
                    break;
            }
            

        } while (input == "6");

        //Welcome Message with Name 

        //With Menu option to get balance, deposit/withdraw from account, modify customer information
        //display current balance and exit

        //Update avaiable cash based on deposit and withdraw from bank

        //modify user information upon user request

        //Display transaction history

        //Upon user log out - return back to the menu asking username and password

        //Track Amount of money avaiable