Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ispit
- {
- class Operations
- {
- public static double Deposite(double InitAmmt)
- {
- Console.Write("Enter an ammount you wish to deposite: ");
- double AddAmmt = Convert.ToDouble(Console.ReadLine());
- return AddAmmt;
- }
- public static double Withdraw (double InitAmmt)
- {
- Console.Write("Enter an ammount you wish to withdraw: ");
- double SubAmmt = Convert.ToDouble(Console.ReadLine());
- return SubAmmt;
- }
- public static int ChangePassword ()
- {
- Console.WriteLine("Enter your new password: ");
- int NewPw = Convert.ToInt32(Console.ReadLine());
- while (true)
- {
- Console.WriteLine("Confirm your new password: ");
- int NewPw1 = Convert.ToInt32(Console.ReadLine());
- if (NewPw == NewPw1)
- {
- return NewPw;
- }
- else
- {
- Console.WriteLine("Passwords do not match. Try again!");
- }
- }
- }
- public static void Print(Customers print)
- {
- Console.WriteLine(print.Name);
- Console.WriteLine(print.Address);
- Console.WriteLine(print.Phone);
- Console.WriteLine(print.AccountNumber);
- Console.WriteLine(print.InitialAmmount);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement