Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace BankConsole
- {
- class Program
- {
- class Account
- {
- private int routingnum = 132749866;
- public int accountnum;
- public int statementday;
- public double balance;
- public string username;
- public string password;
- public string secquestion;
- public string secanswer;
- }
- static Account Chains = new Account()
- {
- accountnum = 49120739,
- statementday = 23,
- balance = 635347.40,
- username = "chains",
- password = "gettthefuckup",
- secquestion = "What is Jimmy's favorite substance?",
- secanswer = "cocaine",
- };
- static void WriteDelay(string input)
- {
- String[] output = input.Split(' ');
- foreach (string print in output)
- {
- Thread.Sleep(50);
- Console.Write(print + ' ');
- }
- }
- static void ForgotPass()
- {
- WriteDelay("Please answer your security question:" + Chains.secquestion);
- }
- static void Main(string[] args)
- {
- //Begin Program
- WriteDelay("Connecting . . . . . . . . . .");
- Console.Clear();
- WriteDelay("Connection Sucessful.");
- Thread.Sleep(1000);
- Console.Clear();
- WriteDelay("Welcome to First World Bank, Nicolas!");
- WriteDelay("\nWe have detected it has been a while since your last login.");
- WriteDelay("\nFor security purposes, please re-enter your password for account 'chains'");
- WriteDelay("\nIf you no longer remember your password, please enter 'forgot'\nInput:");
- string input = Console.ReadLine();
- if (input == "forgot")
- {
- WriteDelay("Your password is '" + Chains.password + "'");
- }
- else if (input == "getthefuckup")
- {
- WriteDelay("Thank you for verifying your password.");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement