private string applicationName = "Bank Destroyer[tm]";
private int sourceNum = 0;
private int[] nums = { 20, 10, 5, 1 };
private float transactionFee = 1;
private int withdrawal = 0;
private string[] arrayOfNoises = {
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
void GetUserInput(string[] args)
if (args.Length > 0 && Int32.TryParse(args[0], out int resultArgs))
Console.WriteLine("I see you've already put in a predetermined amount. I'll use that instead!");
Console.Write("Amount::> ");
if (Int32.TryParse(Console.ReadLine(), out int resultUser))
throw new ArithmeticException();
Welcome to {applicationName}! We are here to ensure that you never again have to
worry about your savings!
How much of your life would you like ruined today?
Console.WriteLine(message);
return arrayOfNoises[r.Next(arrayOfNoises.Length)];
void CalculateAmount(int idx)
withdrawal = sourceNum / nums[idx];
transactionFee += sourceNum * .10f;
sourceNum -= withdrawal * nums[idx];
Console.Write($"Withdrawing {nums[idx]} bill for ");
Console.Write($"Withdrawing {nums[idx]} bills for ");
Console.WriteLine($"\nYour bank-busting amount is: {sourceNum}");
for (var idx = 0; idx < nums.Length; idx++)
Console.WriteLine($"${nums[idx]}... {noise}");
Console.WriteLine($"Transaction fee is ${transactionFee:#####.##} at 10 cents per bill.");
Console.WriteLine("\n-------------------");
Console.WriteLine($"Thank you for using {applicationName}! We hope we never see you again!");
public static void Main(string[] args)