Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Project1__Billinator_
- {
- class CustomerAccount
- {
- static void Main(string[] args)
- {
- Account myAccount = new Account();
- Console.Write("Enter customer's account number: ");
- string theName = Console.ReadLine();
- myAccount.SetName(theName);
- Console.Write($"Enter the number of Goodness units Customer {myAccount.GetName()} ");
- Console.Write("consumed: ");
- int theUnits = int.Parse(Console.ReadLine());
- myAccount.SetUnits(theUnits);
- Console.WriteLine(" \n --------------------------------------------------");
- Console.WriteLine($" \n Goodness Billing Statement \n Customer {myAccount.GetName()} \n \n Goodness Units consumed this period: {myAccount.GetUnits()}");
- Console.Write($"Applicable Rate: {myAccount.GetApplicableRates():C}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement