Stann

14.BankAccount

Nov 5th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. using System;
  2.  
  3. class BankAccount
  4. {
  5. static void Main()
  6. {
  7. /*A bank account has a holder name (first name, middle name and last name),
  8. * available amount of money (balance), bank name, IBAN, BIC code and 3 credit card numbers
  9. * associated with the account. Declare the variables needed to keep the information for a single bank account
  10. * using the appropriate data types and descriptive names.*/
  11.  
  12. Console.WriteLine("Enter first name:");
  13. string firstName = string.Concat(Console.ReadLine());
  14. Console.WriteLine("Enter middle name:");
  15. string middleName = string.Concat(Console.ReadLine());
  16. Console.WriteLine("Enter last name:");
  17. string lastName = string.Concat(Console.ReadLine());
  18. decimal balance = 1.75297249m;
  19. string bankName = "West Bank";
  20. string iban = "WBUS190734662837903";
  21. string bicCode = "WBCOUS23WAS";
  22. ulong creditCard1= 3450969503025605;
  23. ulong creditCard2 =9583474954834732;
  24. ulong crediCard3 = 7532949403456965;
  25.  
  26. Console.WriteLine("===========================BANK ACCOUNT INFORMATION=============================");
  27. Console.WriteLine("Balance:" + "" + balance);
  28. Console.WriteLine("Bank Name:" + "" + bankName);
  29. Console.WriteLine("IBAN:" + "" + iban);
  30. Console.WriteLine("BIC Code:" + "" + bicCode);
  31. Console.WriteLine("1.Credit Card Number:" + "" + creditCard1);
  32. Console.WriteLine("2.Credit Card Number:" + "" + creditCard2);
  33. Console.WriteLine("3.Credit Card Number:" + "" + crediCard3);
  34.  
  35. }
  36. }
Add Comment
Please, Sign In to add comment