Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Project1__Billinator_
  8. {
  9. class CustomerAccount
  10. {
  11. static void Main(string[] args)
  12. {
  13. Account myAccount = new Account();
  14.  
  15. Console.Write("Enter customer's account number: ");
  16. string theName = Console.ReadLine();
  17. myAccount.SetName(theName);
  18.  
  19.  
  20. Console.Write($"Enter the number of Goodness units Customer {myAccount.GetName()} ");
  21. Console.Write("consumed: ");
  22. int theUnits = int.Parse(Console.ReadLine());
  23. myAccount.SetUnits(theUnits);
  24.  
  25.  
  26.  
  27. Console.WriteLine(" \n --------------------------------------------------");
  28.  
  29. Console.WriteLine($" \n Goodness Billing Statement \n Customer {myAccount.GetName()} \n \n Goodness Units consumed this period: {myAccount.GetUnits()}");
  30.  
  31.  
  32.  
  33. Console.Write($"Applicable Rate: {myAccount.GetApplicableRates():C}");
  34.  
  35.  
  36.  
  37.  
  38.  
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement