Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.30 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7.  
  8. namespace BankConsole
  9. {
  10.     class Program
  11.     {
  12.         class Account
  13.         {
  14.             private int routingnum = 132749866;
  15.             public int accountnum;
  16.             public int statementday;
  17.             public double balance;
  18.             public string username;
  19.             public string password;
  20.             public string secquestion;
  21.             public string secanswer;
  22.         }
  23.  
  24.         static Account Chains = new Account()
  25.         {
  26.             accountnum = 49120739,
  27.             statementday = 23,
  28.             balance = 635347.40,
  29.             username = "chains",
  30.             password = "gettthefuckup",
  31.             secquestion = "What is Jimmy's favorite substance?",
  32.             secanswer = "cocaine",
  33.         };
  34.         static void WriteDelay(string input)
  35.         {
  36.             String[] output = input.Split(' ');
  37.             foreach (string print in output)
  38.             {
  39.                 Thread.Sleep(50);
  40.                 Console.Write(print + ' ');
  41.             }
  42.         }
  43.         static void ForgotPass()
  44.         {
  45.             WriteDelay("Please answer your security question:" + Chains.secquestion);
  46.         }
  47.         static void Main(string[] args)
  48.         {
  49.             //Begin Program
  50.             WriteDelay("Connecting . . . . . . . . . .");
  51.             Console.Clear();
  52.             WriteDelay("Connection Sucessful.");
  53.             Thread.Sleep(1000);
  54.             Console.Clear();
  55.             WriteDelay("Welcome to First World Bank, Nicolas!");
  56.             WriteDelay("\nWe have detected it has been a while since your last login.");
  57.             WriteDelay("\nFor security purposes, please re-enter your password for account 'chains'");
  58.             WriteDelay("\nIf you no longer remember your password, please enter 'forgot'\nInput:");
  59.             string input = Console.ReadLine();
  60.             if (input == "forgot")
  61.             {
  62.                 WriteDelay("Your password is '" + Chains.password + "'");
  63.             }
  64.             else if (input == "getthefuckup")
  65.             {
  66.                 WriteDelay("Thank you for verifying your password.");
  67.             }
  68.             Console.ReadKey();
  69.         }
  70.     }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement