AnitaN

02.PrimitiveDataTypesVariables/12.BankAccountData

Mar 11th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.37 KB | None | 0 0
  1. //Problem 12.   Bank Account Data
  2. //A bank account has a holder name (first name, middle name and last name), available amount of money (balance), bank name, IBAN, 3 credit card numbers associated with the account. Declare the variables needed to keep the information for a single bank account using the appropriate data types and descriptive names.
  3.  
  4. using System;
  5.  
  6. class BankAccountData
  7. {
  8.     static void Main()
  9.     {
  10.         string firstName = "Ivan";
  11.         string middleName = "Ivanov";
  12.         string lastName = "Petrov";
  13.         decimal balance = 5000;
  14.         string bankName = "PIR";
  15.         string iban = "BG13PIRB12345678912345";
  16.         string bic = "PIRBBGSF";
  17.         ulong creditCard1 = 1234567891011124;
  18.         ulong creditCard2 = 2345678912344567;
  19.         ulong creditCard3 = 6789345623456789;
  20.         Console.WriteLine("First Name: {0}", firstName);
  21.         Console.WriteLine("Middle Name: {0}", middleName);
  22.         Console.WriteLine("Last Name: {0}", lastName);
  23.         Console.WriteLine("Balance: {0}", balance);
  24.         Console.WriteLine("Bank Name: {0}", bankName);
  25.         Console.WriteLine("IBAN: {0}", iban);
  26.         Console.WriteLine("BIC: {0}", bic);
  27.         Console.WriteLine("Credit Card 1: {0}", creditCard1);
  28.         Console.WriteLine("Credit Card 2: {0}", creditCard2);
  29.         Console.WriteLine("Credit Card 3: {0}", creditCard3);
  30.     }
  31. }
Add Comment
Please, Sign In to add comment